Changeset 51011 for trunk/src/wp-admin/includes/template.php
- Timestamp:
- 05/25/2021 08:13:02 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/template.php
r50795 r51011 1149 1149 if ( empty( $plugins['classic-editor/classic-editor.php'] ) ) { 1150 1150 if ( current_user_can( 'install_plugins' ) ) { 1151 $install_url = wp_nonce_url( 1152 self_admin_url( 'plugin-install.php?tab=favorites&user=wordpressdotorg&save=0' ), 1153 'save_wporg_username_' . get_current_user_id() 1154 ); 1155 1151 1156 echo '<p>'; 1152 printf( 1153 /* translators: %s: A link to install the Classic Editor plugin. */ 1154 __( 'Please install the <a href="%s">Classic Editor plugin</a> to use this meta box.' ), 1155 esc_url( wp_nonce_url( self_admin_url( 'plugin-install.php?tab=favorites&user=wordpressdotorg&save=0' ), 'save_wporg_username_' . get_current_user_id() ) ) 1156 ); 1157 /* translators: %s: A link to install the Classic Editor plugin. */ 1158 printf( __( 'Please install the <a href="%s">Classic Editor plugin</a> to use this meta box.' ), esc_url( $install_url ) ); 1157 1159 echo '</p>'; 1158 1160 } 1159 1161 } elseif ( is_plugin_inactive( 'classic-editor/classic-editor.php' ) ) { 1160 1162 if ( current_user_can( 'activate_plugins' ) ) { 1161 $activate_url = wp_nonce_url( self_admin_url( 'plugins.php?action=activate&plugin=classic-editor/classic-editor.php' ), 'activate-plugin_classic-editor/classic-editor.php' ); 1163 $activate_url = wp_nonce_url( 1164 self_admin_url( 'plugins.php?action=activate&plugin=classic-editor/classic-editor.php' ), 1165 'activate-plugin_classic-editor/classic-editor.php' 1166 ); 1167 1162 1168 echo '<p>'; 1163 1169 /* translators: %s: A link to activate the Classic Editor plugin. */
Note: See TracChangeset
for help on using the changeset viewer.