|
@@ 145-150 (lines=6) @@
|
| 142 |
|
$hide_review_notice = get_user_meta( $current_user->ID, 'auto_load_next_post_hide_review_notice', true ); |
| 143 |
|
|
| 144 |
|
// Check if we need to display the review plugin notice. |
| 145 |
|
if ( current_user_can( 'install_plugins' ) && empty( $hide_review_notice ) ) { |
| 146 |
|
// If it has been a week or more since activating the plugin then display the review notice. |
| 147 |
|
if ( ( intval( time() - self::$install_date ) ) > WEEK_IN_SECONDS ) { |
| 148 |
|
add_action( 'admin_notices', array( $this, 'plugin_review_notice' ) ); |
| 149 |
|
} |
| 150 |
|
} |
| 151 |
|
|
| 152 |
|
// Is admin welcome notice hidden? |
| 153 |
|
$hide_welcome_notice = get_user_meta( $current_user->ID, 'auto_load_next_post_hide_welcome_notice', true ); |
|
@@ 158-160 (lines=3) @@
|
| 155 |
|
// Check if we need to display the welcome notice. |
| 156 |
|
if ( current_user_can( 'install_plugins' ) && empty( $hide_welcome_notice ) ) { |
| 157 |
|
// If the user has just installed the plugin for the first time then welcome the user. |
| 158 |
|
if ( ( intval( time() - strtotime( self::$install_date ) ) / WEEK_IN_SECONDS ) % 52 <= 2 ) { |
| 159 |
|
add_action( 'admin_notices', array( $this, 'welcome_notice' ) ); |
| 160 |
|
} |
| 161 |
|
} |
| 162 |
|
|
| 163 |
|
// Is this version of Auto Load Next Post a beta release? |