Changeset 45453
- Timestamp:
- 05/27/2019 02:39:46 AM (5 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/list-table.php
r45448 r45453 23 23 $core_classes = array( 24 24 //Site Admin 25 'WP_Posts_List_Table' => 'posts',26 'WP_Media_List_Table' => 'media',27 'WP_Terms_List_Table' => 'terms',28 'WP_Users_List_Table' => 'users',29 'WP_Comments_List_Table' => 'comments',30 'WP_Post_Comments_List_Table' => array( 'comments', 'post-comments' ),31 'WP_Links_List_Table' => 'links',32 'WP_Plugin_Install_List_Table' => 'plugin-install',33 'WP_Themes_List_Table' => 'themes',34 'WP_Theme_Install_List_Table' => array( 'themes', 'theme-install' ),35 'WP_Plugins_List_Table' => 'plugins',25 'WP_Posts_List_Table' => 'posts', 26 'WP_Media_List_Table' => 'media', 27 'WP_Terms_List_Table' => 'terms', 28 'WP_Users_List_Table' => 'users', 29 'WP_Comments_List_Table' => 'comments', 30 'WP_Post_Comments_List_Table' => array( 'comments', 'post-comments' ), 31 'WP_Links_List_Table' => 'links', 32 'WP_Plugin_Install_List_Table' => 'plugin-install', 33 'WP_Themes_List_Table' => 'themes', 34 'WP_Theme_Install_List_Table' => array( 'themes', 'theme-install' ), 35 'WP_Plugins_List_Table' => 'plugins', 36 36 37 37 // Network Admin 38 'WP_MS_Sites_List_Table' => 'ms-sites',39 'WP_MS_Users_List_Table' => 'ms-users',40 'WP_MS_Themes_List_Table' => 'ms-themes',38 'WP_MS_Sites_List_Table' => 'ms-sites', 39 'WP_MS_Users_List_Table' => 'ms-users', 40 'WP_MS_Themes_List_Table' => 'ms-themes', 41 41 42 42 // Privacy requests tables -
trunk/src/wp-admin/includes/update-core.php
r45365 r45453 537 537 'wp-admin/images/screenshots/twitter-embed-2.png', 538 538 'wp-admin/js/utils.js', 539 'wp-admin/options-privacy.php',540 539 'wp-app.php', 541 540 'wp-includes/class-wp-atom-server.php', -
trunk/src/wp-admin/options-privacy.php
r45448 r45453 146 146 147 147 $view_href = get_permalink( $privacy_policy_page_id ); 148 149 148 ?> 150 149 <p class="tools-privacy-edit"><strong> 151 150 <?php 152 153 151 if ( 'publish' === get_post_status( $privacy_policy_page_id ) ) { 154 152 printf( … … 166 164 ); 167 165 } 168 169 166 ?> 170 167 </strong></p> … … 174 171 <p> 175 172 <?php 176 177 173 printf( 178 174 /* translators: 1: Privacy Policy guide URL, 2: additional link attributes, 3: accessibility text */ … … 182 178 '' 183 179 ); 184 185 180 ?> 186 181 </p> … … 202 197 <td> 203 198 <?php 204 205 199 $has_pages = (bool) get_posts( 206 200 array( … … 219 213 <input type="hidden" name="action" value="set-privacy-page" /> 220 214 <?php 221 222 215 wp_dropdown_pages( 223 216 array( -
trunk/src/wp-admin/tools.php
r45448 r45453 61 61 <?php 62 62 63 64 65 66 67 68 <div class="card">69 <h2 class="title"><?php _e( 'Categories and Tags Converter' ); ?></h2>70 <p><?php printf( __( 'If you want to convert your categories to tags (or vice versa), use the <a href="%s">Categories and Tags Converter</a> available from the Import screen.' ), 'import.php' ); ?></p>71 </div>72 63 if ( current_user_can( 'import' ) ) : 64 $cats = get_taxonomy( 'category' ); 65 $tags = get_taxonomy( 'post_tag' ); 66 if ( current_user_can( $cats->cap->manage_terms ) || current_user_can( $tags->cap->manage_terms ) ) : 67 ?> 68 <div class="card"> 69 <h2 class="title"><?php _e( 'Categories and Tags Converter' ); ?></h2> 70 <p><?php printf( __( 'If you want to convert your categories to tags (or vice versa), use the <a href="%s">Categories and Tags Converter</a> available from the Import screen.' ), 'import.php' ); ?></p> 71 </div> 72 <?php 73 73 endif; 74 74 endif; 75 75 76 77 78 79 80 81 76 /** 77 * Fires at the end of the Tools Administration screen. 78 * 79 * @since 2.8.0 80 */ 81 do_action( 'tool_box' ); 82 82 83 83 ?>
Note: See TracChangeset
for help on using the changeset viewer.