equal
deleted
inserted
replaced
114 $is_dev_version = preg_match( '/alpha|beta|RC/', $wp_version ); |
114 $is_dev_version = preg_match( '/alpha|beta|RC/', $wp_version ); |
115 |
115 |
116 if ( ! $is_dev_version ) { |
116 if ( ! $is_dev_version ) { |
117 $version_url = sprintf( |
117 $version_url = sprintf( |
118 /* translators: %s: WordPress version. */ |
118 /* translators: %s: WordPress version. */ |
119 esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ), |
119 esc_url( __( 'https://wordpress.org/documentation/wordpress-version/version-%s/' ) ), |
120 sanitize_title( $wp_version ) |
120 sanitize_title( $wp_version ) |
121 ); |
121 ); |
122 |
122 |
123 $wp_version_text = sprintf( |
123 $wp_version_text = sprintf( |
124 '<a href="%1$s">%2$s</a>', |
124 '<a href="%1$s">%2$s</a>', |
127 ); |
127 ); |
128 } |
128 } |
129 |
129 |
130 $screen->set_help_sidebar( |
130 $screen->set_help_sidebar( |
131 '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
131 '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . |
132 '<p>' . __( '<a href="https://wordpress.org/support/article/dashboard-screen/">Documentation on Dashboard</a>' ) . '</p>' . |
132 '<p>' . __( '<a href="https://wordpress.org/documentation/article/dashboard-screen/">Documentation on Dashboard</a>' ) . '</p>' . |
133 '<p>' . __( '<a href="https://wordpress.org/support/">Support</a>' ) . '</p>' . |
133 '<p>' . __( '<a href="https://wordpress.org/support/forums/">Support forums</a>' ) . '</p>' . |
134 '<p>' . $wp_version_text . '</p>' |
134 '<p>' . $wp_version_text . '</p>' |
135 ); |
135 ); |
136 |
136 |
137 require_once ABSPATH . 'wp-admin/admin-header.php'; |
137 require_once ABSPATH . 'wp-admin/admin-header.php'; |
138 ?> |
138 ?> |
152 */ |
152 */ |
153 $time_passed = time() - ( $postponed_time - $remind_interval ); |
153 $time_passed = time() - ( $postponed_time - $remind_interval ); |
154 |
154 |
155 // Only show the dashboard notice if it's been less than a minute since the message was postponed. |
155 // Only show the dashboard notice if it's been less than a minute since the message was postponed. |
156 if ( $time_passed < MINUTE_IN_SECONDS ) : |
156 if ( $time_passed < MINUTE_IN_SECONDS ) : |
157 ?> |
157 $message = sprintf( |
158 <div class="notice notice-success is-dismissible"> |
158 /* translators: %s: Human-readable time interval. */ |
159 <p> |
159 __( 'The admin email verification page will reappear after %s.' ), |
160 <?php |
160 human_time_diff( time() + $remind_interval ) |
161 printf( |
161 ); |
162 /* translators: %s: Human-readable time interval. */ |
162 wp_admin_notice( |
163 __( 'The admin email verification page will reappear after %s.' ), |
163 $message, |
164 human_time_diff( time() + $remind_interval ) |
164 array( |
165 ); |
165 'type' => 'success', |
166 ?> |
166 'dismissible' => true, |
167 </p> |
167 ) |
168 </div> |
168 ); |
169 <?php endif; ?> |
169 endif; |
170 <?php endif; ?> |
170 endif; |
|
171 ?> |
171 |
172 |
172 <?php |
173 <?php |
173 if ( has_action( 'welcome_panel' ) && current_user_can( 'edit_theme_options' ) ) : |
174 if ( has_action( 'welcome_panel' ) && current_user_can( 'edit_theme_options' ) ) : |
174 $classes = 'welcome-panel'; |
175 $classes = 'welcome-panel'; |
175 |
176 |
184 <div id="welcome-panel" class="<?php echo esc_attr( $classes ); ?>"> |
185 <div id="welcome-panel" class="<?php echo esc_attr( $classes ); ?>"> |
185 <?php wp_nonce_field( 'welcome-panel-nonce', 'welcomepanelnonce', false ); ?> |
186 <?php wp_nonce_field( 'welcome-panel-nonce', 'welcomepanelnonce', false ); ?> |
186 <a class="welcome-panel-close" href="<?php echo esc_url( admin_url( '?welcome=0' ) ); ?>" aria-label="<?php esc_attr_e( 'Dismiss the welcome panel' ); ?>"><?php _e( 'Dismiss' ); ?></a> |
187 <a class="welcome-panel-close" href="<?php echo esc_url( admin_url( '?welcome=0' ) ); ?>" aria-label="<?php esc_attr_e( 'Dismiss the welcome panel' ); ?>"><?php _e( 'Dismiss' ); ?></a> |
187 <?php |
188 <?php |
188 /** |
189 /** |
189 * Add content to the welcome panel on the admin dashboard. |
190 * Fires when adding content to the welcome panel on the admin dashboard. |
190 * |
191 * |
191 * To remove the default welcome panel, use remove_action(): |
192 * To remove the default welcome panel, use remove_action(): |
192 * |
193 * |
193 * remove_action( 'welcome_panel', 'wp_welcome_panel' ); |
194 * remove_action( 'welcome_panel', 'wp_welcome_panel' ); |
194 * |
195 * |