Ticket #26601: 26601.9.patch
File 26601.9.patch, 23.5 KB (added by , 6 years ago) |
---|
-
wp-admin/css/common.css
583 583 584 584 .wrap h1, 585 585 .wrap h2 { 586 display: inline-block; 586 587 font-size: 23px; 587 588 font-weight: 400; 588 589 padding: 9px 15px 4px 0; -
wp-admin/css/themes.css
13 13 } 14 14 15 15 .themes-php .wrap h1 { 16 float: left;16 display: inline-block; 17 17 margin-bottom: 15px; 18 18 } 19 19 -
wp-admin/edit-comments.php
140 140 ?> 141 141 142 142 <div class="wrap"> 143 <h1><?php 144 if ( $post_id ) 145 echo sprintf( __( 'Comments on “%s”' ), 146 sprintf( '<a href="%s">%s</a>', 147 get_edit_post_link( $post_id ), 148 wp_html_excerpt( _draft_or_post_title( $post_id ), 50, '…' ) 149 ) 150 ); 151 else 152 _e( 'Comments' ); 153 154 if ( isset($_REQUEST['s']) && $_REQUEST['s'] ) 155 echo '<span class="subtitle">' . sprintf( __( 'Search results for “%s”' ), wp_html_excerpt( esc_html( wp_unslash( $_REQUEST['s'] ) ), 50, '…' ) ) . '</span>'; ?> 156 </h1> 157 143 <div class="header"> 144 <h1><?php 145 if ( $post_id ) 146 echo sprintf( __( 'Comments on “%s”' ), 147 sprintf( '<a href="%s">%s</a>', 148 get_edit_post_link( $post_id ), 149 wp_html_excerpt( _draft_or_post_title( $post_id ), 50, '…' ) 150 ) 151 ); 152 else 153 _e( 'Comments' );?> 154 </h1> 155 </div> 158 156 <?php 157 if ( isset($_REQUEST['s']) && $_REQUEST['s'] ) 158 echo '<span class="subtitle">' . sprintf( __( 'Search results for “%s”' ), wp_html_excerpt( esc_html( wp_unslash( $_REQUEST['s'] ) ), 50, '…' ) ) . '</span>'; ?> 159 <?php 159 160 if ( isset( $_REQUEST['error'] ) ) { 160 161 $error = (int) $_REQUEST['error']; 161 162 $error_msg = ''; -
wp-admin/edit-form-advanced.php
414 414 ?> 415 415 416 416 <div class="wrap"> 417 <h1><?php 418 echo esc_html( $title ); 419 if ( isset( $post_new_file ) && current_user_can( $post_type_object->cap->create_posts ) ) 420 echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="add-new-h2">' . esc_html( $post_type_object->labels->add_new ) . '</a>'; 421 ?></h1> 417 <div class="header"> 418 <h1><?php echo esc_html( $title );?></h1> 419 <?php if ( isset( $post_new_file ) && current_user_can( $post_type_object->cap->create_posts ) ) 420 echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="add-new-h2">' . esc_html( $post_type_object->labels->add_new ) . '</a>'; 421 ?> 422 </div> 423 422 424 <?php if ( $notice ) : ?> 423 425 <div id="notice" class="notice notice-warning"><p id="has-newer-autosave"><?php echo $notice ?></p></div> 424 426 <?php endif; ?> -
wp-admin/edit.php
283 283 require_once( ABSPATH . 'wp-admin/admin-header.php' ); 284 284 ?> 285 285 <div class="wrap"> 286 <h1><?php 287 echo esc_html( $post_type_object->labels->name ); 288 if ( current_user_can( $post_type_object->cap->create_posts ) ) 289 echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="add-new-h2">' . esc_html( $post_type_object->labels->add_new ) . '</a>'; 290 if ( ! empty( $_REQUEST['s'] ) ) 291 printf( ' <span class="subtitle">' . __('Search results for “%s”') . '</span>', get_search_query() ); 292 ?></h1> 286 <div class="header"> 287 <h1><?php echo esc_html( $post_type_object->labels->name );?></h1> 288 <?php 289 if ( current_user_can( $post_type_object->cap->create_posts ) ) 290 echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="add-new-h2">' . esc_html( $post_type_object->labels->add_new ) . '</a>'; 291 if ( ! empty( $_REQUEST['s'] ) ) 292 printf( ' <span class="subtitle">' . __('Search results for “%s”') . '</span>', get_search_query() ); 293 ?> 294 </div> 293 295 294 296 <?php 295 297 // If we have a bulk message to issue: -
wp-admin/js/theme.js
84 84 }, 85 85 86 86 // Defines search element container 87 searchContainer: $( '#wpbody h1:first' ),87 searchContainer: $( '#wpbody .header' ), 88 88 89 89 // Search input and view 90 90 // for current theme collection -
wp-admin/nav-menus.php
558 558 require_once( ABSPATH . 'wp-admin/admin-header.php' ); 559 559 ?> 560 560 <div class="wrap"> 561 <h1 class="nav-tab-wrapper"> 562 <a href="<?php echo admin_url( 'nav-menus.php' ); ?>" class="nav-tab<?php if ( ! isset( $_GET['action'] ) || isset( $_GET['action'] ) && 'locations' != $_GET['action'] ) echo ' nav-tab-active'; ?>"><?php esc_html_e( 'Edit Menus' ); ?></a> 563 <?php if ( $num_locations && $menu_count ) : ?> 564 <a href="<?php echo esc_url( add_query_arg( array( 'action' => 'locations' ), admin_url( 'nav-menus.php' ) ) ); ?>" class="nav-tab<?php if ( $locations_screen ) echo ' nav-tab-active'; ?>"><?php esc_html_e( 'Manage Locations' ); ?></a> 565 <?php endif; ?> 566 <?php 567 if ( current_user_can( 'customize' ) ) { 568 printf( 569 ' <a class="add-new-h2 hide-if-no-customize" href="%1$s">%2$s</a>', 570 esc_url( add_query_arg( 571 array( 572 array( 'autofocus' => array( 'panel' => 'menus' ) ), 573 'return' => urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ) 574 ), 575 admin_url( 'customize.php' ) 576 ) ), 577 __( 'Manage in Customizer' ) 578 ); 579 } 580 ?> 581 </h1> 561 <div class="header"> 562 <h1 class="nav-tab-wrapper"> 563 <a href="<?php echo admin_url( 'nav-menus.php' ); ?>" class="nav-tab<?php if ( ! isset( $_GET['action'] ) || isset( $_GET['action'] ) && 'locations' != $_GET['action'] ) echo ' nav-tab-active'; ?>"><?php esc_html_e( 'Edit Menus' ); ?></a> 564 <?php if ( $num_locations && $menu_count ) : ?> 565 <a href="<?php echo esc_url( add_query_arg( array( 'action' => 'locations' ), admin_url( 'nav-menus.php' ) ) ); ?>" class="nav-tab<?php if ( $locations_screen ) echo ' nav-tab-active'; ?>"><?php esc_html_e( 'Manage Locations' ); ?></a> 566 <?php endif; ?> 567 <?php 568 if ( current_user_can( 'customize' ) ) { 569 printf( 570 ' <a class="add-new-h2 hide-if-no-customize" href="%1$s">%2$s</a>', 571 esc_url( add_query_arg( 572 array( 573 array( 'autofocus' => array( 'panel' => 'menus' ) ), 574 'return' => urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ) 575 ), 576 admin_url( 'customize.php' ) 577 ) ), 578 __( 'Manage in Customizer' ) 579 ); 580 } 581 ?> 582 </h1> 583 </div> 582 584 <?php 583 585 foreach( $messages as $message ) : 584 586 echo $message . "\n"; -
wp-admin/plugin-install.php
94 94 include(ABSPATH . 'wp-admin/admin-header.php'); 95 95 ?> 96 96 <div class="wrap"> 97 <h1> 98 <?php 99 echo esc_html( $title ); 100 if ( ! empty( $tabs['upload'] ) && current_user_can( 'upload_plugins' ) ) { 101 if ( $tab === 'upload' ) { 102 $href = self_admin_url( 'plugin-install.php' ); 103 $text = _x( 'Browse', 'plugins' ); 104 } else { 105 $href = self_admin_url( 'plugin-install.php?tab=upload' ); 106 $text = __( 'Upload Plugin' ); 97 <div class="header"> 98 <h1><?php echo esc_html( $title );?></h1> 99 <?php 100 if ( ! empty( $tabs['upload'] ) && current_user_can( 'upload_plugins' ) ) { 101 if ( $tab === 'upload' ) { 102 $href = self_admin_url( 'plugin-install.php' ); 103 $text = _x( 'Browse', 'plugins' ); 104 } else { 105 $href = self_admin_url( 'plugin-install.php?tab=upload' ); 106 $text = __( 'Upload Plugin' ); 107 } 108 echo ' <a href="' . $href . '" class="upload add-new-h2">' . $text . '</a>'; 107 109 } 108 echo ' <a href="' . $href . '" class="upload add-new-h2">' . $text . '</a>'; 109 } 110 ?> 111 </h1> 110 ?> 111 </div> 112 112 113 113 <?php 114 114 if ( $tab !== 'upload' ) { -
wp-admin/plugins.php
446 446 <?php endif; ?> 447 447 448 448 <div class="wrap"> 449 <h1><?php echo esc_html( $title ); 450 if ( ( ! is_multisite() || is_network_admin() ) && current_user_can('install_plugins') ) { ?> 451 <a href="<?php echo self_admin_url( 'plugin-install.php' ); ?>" class="add-new-h2"><?php echo esc_html_x('Add New', 'plugin'); ?></a> 449 <div class="header"> 450 <h1><?php echo esc_html( $title );?></h1> 451 <?php 452 if ( ( ! is_multisite() || is_network_admin() ) && current_user_can('install_plugins') ) { ?> 453 <a href="<?php echo self_admin_url( 'plugin-install.php' ); ?>" class="add-new-h2"><?php echo esc_html_x('Add New', 'plugin'); ?></a> 454 </div> 452 455 <?php } 453 456 if ( $s ) 454 457 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( $s ) ); ?> 455 </h1>456 458 459 457 460 <?php 458 461 /** 459 462 * Fires before the plugins list table is rendered. -
wp-admin/theme-editor.php
131 131 $description .= ' <span>(' . $file_show . ')</span>'; 132 132 ?> 133 133 <div class="wrap"> 134 <h1><?php echo esc_html( $title ); ?></h1> 134 <div class="header"> 135 <h1><?php echo esc_html( $title ); ?></h1> 136 </div> 135 137 136 138 <div class="fileedit-sub"> 137 139 <div class="alignleft"> -
wp-admin/theme-install.php
102 102 103 103 ?> 104 104 <div class="wrap"> 105 <h1><?php 106 echo esc_html( $title ); 105 <div class="header"> 106 <h1><?php echo esc_html( $title );?></h1> 107 <?php 108 /** 109 * Filter the tabs shown on the Add Themes screen. 110 * 111 * This filter is for backwards compatibility only, for the suppression 112 * of the upload tab. 113 * 114 * @since 2.8.0 115 * 116 * @param array $tabs The tabs shown on the Add Themes screen. Default is 'upload'. 117 */ 118 $tabs = apply_filters( 'install_themes_tabs', array( 'upload' => __( 'Upload Theme' ) ) ); 119 if ( ! empty( $tabs['upload'] ) && current_user_can( 'upload_themes' ) ) { 120 echo ' <a href="#" class="upload add-new-h2">' . __( 'Upload Theme' ) . '</a>'; 121 echo ' <a href="#" class="browse-themes add-new-h2">' . _x( 'Browse', 'themes' ) . '</a>'; 122 } 123 ?> 124 </div> 107 125 108 /**109 * Filter the tabs shown on the Add Themes screen.110 *111 * This filter is for backwards compatibility only, for the suppression112 * of the upload tab.113 *114 * @since 2.8.0115 *116 * @param array $tabs The tabs shown on the Add Themes screen. Default is 'upload'.117 */118 $tabs = apply_filters( 'install_themes_tabs', array( 'upload' => __( 'Upload Theme' ) ) );119 if ( ! empty( $tabs['upload'] ) && current_user_can( 'upload_themes' ) ) {120 echo ' <a href="#" class="upload add-new-h2">' . __( 'Upload Theme' ) . '</a>';121 echo ' <a href="#" class="browse-themes add-new-h2">' . _x( 'Browse', 'themes' ) . '</a>';122 }123 ?></h1>124 125 126 <div class="upload-theme"> 126 127 <?php install_themes_upload(); ?> 127 128 </div> -
wp-admin/themes.php
124 124 ?> 125 125 126 126 <div class="wrap"> 127 <h1><?php esc_html_e( 'Themes' ); ?> 128 <span class="title-count theme-count"><?php echo count( $themes ); ?></span> 129 <?php if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?> 130 <a href="<?php echo admin_url( 'theme-install.php' ); ?>" class="hide-if-no-js add-new-h2"><?php echo esc_html_x( 'Add New', 'Add new theme' ); ?></a> 131 <?php endif; ?> 132 </h1> 133 <?php 134 if ( ! validate_current_theme() || isset( $_GET['broken'] ) ) : ?> 135 <div id="message1" class="updated notice is-dismissible"><p><?php _e('The active theme is broken. Reverting to the default theme.'); ?></p></div> 136 <?php elseif ( isset($_GET['activated']) ) : 137 if ( isset( $_GET['previewed'] ) ) { ?> 138 <div id="message2" class="updated notice is-dismissible"><p><?php printf( __( 'Settings saved and theme activated. <a href="%s">Visit site</a>' ), home_url( '/' ) ); ?></p></div> 139 <?php } else { ?> 140 <div id="message2" class="updated notice is-dismissible"><p><?php printf( __( 'New theme activated. <a href="%s">Visit site</a>' ), home_url( '/' ) ); ?></p></div><?php 141 } 142 elseif ( isset($_GET['deleted']) ) : ?> 143 <div id="message3" class="updated notice is-dismissible"><p><?php _e('Theme deleted.') ?></p></div> 144 <?php elseif ( isset( $_GET['delete-active-child'] ) ) : ?> 145 <div id="message4" class="error"><p><?php _e( 'You cannot delete a theme while it has an active child theme.' ); ?></p></div> 146 <?php 147 endif; 127 <div class="header"> 128 <h1><?php esc_html_e( 'Themes' ); ?></h1> 129 <span class="title-count theme-count"><?php echo count( $themes ); ?></span> 130 <?php if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?> 131 <a href="<?php echo admin_url( 'theme-install.php' ); ?>" class="hide-if-no-js add-new-h2"><?php echo esc_html_x( 'Add New', 'Add new theme' ); ?></a> 132 <?php endif; ?> 148 133 149 $ct = wp_get_theme(); 134 <?php 135 if ( ! validate_current_theme() || isset( $_GET['broken'] ) ) : ?> 136 <div id="message1" class="updated notice is-dismissible"><p><?php _e('The active theme is broken. Reverting to the default theme.'); ?></p></div> 137 <?php elseif ( isset($_GET['activated']) ) : 138 if ( isset( $_GET['previewed'] ) ) { ?> 139 <div id="message2" class="updated notice is-dismissible"><p><?php printf( __( 'Settings saved and theme activated. <a href="%s">Visit site</a>' ), home_url( '/' ) ); ?></p></div> 140 <?php } else { ?> 141 <div id="message2" class="updated notice is-dismissible"><p><?php printf( __( 'New theme activated. <a href="%s">Visit site</a>' ), home_url( '/' ) ); ?></p></div><?php 142 } 143 elseif ( isset($_GET['deleted']) ) : ?> 144 <div id="message3" class="updated notice is-dismissible"><p><?php _e('Theme deleted.') ?></p></div> 145 <?php elseif ( isset( $_GET['delete-active-child'] ) ) : ?> 146 <div id="message4" class="error"><p><?php _e( 'You cannot delete a theme while it has an active child theme.' ); ?></p></div> 147 <?php 148 endif; 150 149 151 if ( $ct->errors() && ( ! is_multisite() || current_user_can( 'manage_network_themes' ) ) ) { 152 echo '<div class="error"><p>' . sprintf( __( 'ERROR: %s' ), $ct->errors()->get_error_message() ) . '</p></div>'; 153 } 150 $ct = wp_get_theme(); 154 151 155 /* 156 // Certain error codes are less fatal than others. We can still display theme information in most cases. 157 if ( ! $ct->errors() || ( 1 == count( $ct->errors()->get_error_codes() ) 158 && in_array( $ct->errors()->get_error_code(), array( 'theme_no_parent', 'theme_parent_invalid', 'theme_no_index' ) ) ) ) : ?> 159 */ 152 if ( $ct->errors() && ( ! is_multisite() || current_user_can( 'manage_network_themes' ) ) ) { 153 echo '<div class="error"><p>' . sprintf( __( 'ERROR: %s' ), $ct->errors()->get_error_message() ) . '</p></div>'; 154 } 160 155 161 // Pretend you didn't see this. 162 $current_theme_actions = array(); 163 if ( is_array( $submenu ) && isset( $submenu['themes.php'] ) ) { 164 foreach ( (array) $submenu['themes.php'] as $item) { 165 $class = ''; 166 if ( 'themes.php' == $item[2] || 'theme-editor.php' == $item[2] || 0 === strpos( $item[2], 'customize.php' ) ) 167 continue; 168 // 0 = name, 1 = capability, 2 = file 169 if ( ( strcmp($self, $item[2]) == 0 && empty($parent_file)) || ($parent_file && ($item[2] == $parent_file)) ) 170 $class = ' current'; 171 if ( !empty($submenu[$item[2]]) ) { 172 $submenu[$item[2]] = array_values($submenu[$item[2]]); // Re-index. 173 $menu_hook = get_plugin_page_hook($submenu[$item[2]][0][2], $item[2]); 174 if ( file_exists(WP_PLUGIN_DIR . "/{$submenu[$item[2]][0][2]}") || !empty($menu_hook)) 175 $current_theme_actions[] = "<a class='button button-secondary$class' href='admin.php?page={$submenu[$item[2]][0][2]}'>{$item[0]}</a>"; 176 else 177 $current_theme_actions[] = "<a class='button button-secondary$class' href='{$submenu[$item[2]][0][2]}'>{$item[0]}</a>"; 178 } elseif ( ! empty( $item[2] ) && current_user_can( $item[1] ) ) { 179 $menu_file = $item[2]; 156 /* 157 // Certain error codes are less fatal than others. We can still display theme information in most cases. 158 if ( ! $ct->errors() || ( 1 == count( $ct->errors()->get_error_codes() ) 159 && in_array( $ct->errors()->get_error_code(), array( 'theme_no_parent', 'theme_parent_invalid', 'theme_no_index' ) ) ) ) : ?> 160 */ 180 161 181 if ( current_user_can( 'customize' ) ) { 182 if ( 'custom-header' === $menu_file ) { 183 $current_theme_actions[] = "<a class='button button-secondary hide-if-no-customize$class' href='customize.php?autofocus[control]=header_image'>{$item[0]}</a>"; 184 } elseif ( 'custom-background' === $menu_file ) { 185 $current_theme_actions[] = "<a class='button button-secondary hide-if-no-customize$class' href='customize.php?autofocus[control]=background_image'>{$item[0]}</a>"; 162 // Pretend you didn't see this. 163 $current_theme_actions = array(); 164 if ( is_array( $submenu ) && isset( $submenu['themes.php'] ) ) { 165 foreach ( (array) $submenu['themes.php'] as $item) { 166 $class = ''; 167 if ( 'themes.php' == $item[2] || 'theme-editor.php' == $item[2] || 0 === strpos( $item[2], 'customize.php' ) ) 168 continue; 169 // 0 = name, 1 = capability, 2 = file 170 if ( ( strcmp($self, $item[2]) == 0 && empty($parent_file)) || ($parent_file && ($item[2] == $parent_file)) ) 171 $class = ' current'; 172 if ( !empty($submenu[$item[2]]) ) { 173 $submenu[$item[2]] = array_values($submenu[$item[2]]); // Re-index. 174 $menu_hook = get_plugin_page_hook($submenu[$item[2]][0][2], $item[2]); 175 if ( file_exists(WP_PLUGIN_DIR . "/{$submenu[$item[2]][0][2]}") || !empty($menu_hook)) 176 $current_theme_actions[] = "<a class='button button-secondary$class' href='admin.php?page={$submenu[$item[2]][0][2]}'>{$item[0]}</a>"; 177 else 178 $current_theme_actions[] = "<a class='button button-secondary$class' href='{$submenu[$item[2]][0][2]}'>{$item[0]}</a>"; 179 } elseif ( ! empty( $item[2] ) && current_user_can( $item[1] ) ) { 180 $menu_file = $item[2]; 181 182 if ( current_user_can( 'customize' ) ) { 183 if ( 'custom-header' === $menu_file ) { 184 $current_theme_actions[] = "<a class='button button-secondary hide-if-no-customize$class' href='customize.php?autofocus[control]=header_image'>{$item[0]}</a>"; 185 } elseif ( 'custom-background' === $menu_file ) { 186 $current_theme_actions[] = "<a class='button button-secondary hide-if-no-customize$class' href='customize.php?autofocus[control]=background_image'>{$item[0]}</a>"; 187 } 186 188 } 187 }188 189 189 if ( false !== ( $pos = strpos( $menu_file, '?' ) ) ) {190 $menu_file = substr( $menu_file, 0, $pos );191 }190 if ( false !== ( $pos = strpos( $menu_file, '?' ) ) ) { 191 $menu_file = substr( $menu_file, 0, $pos ); 192 } 192 193 193 if ( file_exists( ABSPATH . "wp-admin/$menu_file" ) ) { 194 $current_theme_actions[] = "<a class='button button-secondary$class' href='{$item[2]}'>{$item[0]}</a>"; 195 } else { 196 $current_theme_actions[] = "<a class='button button-secondary$class' href='themes.php?page={$item[2]}'>{$item[0]}</a>"; 194 if ( file_exists( ABSPATH . "wp-admin/$menu_file" ) ) { 195 $current_theme_actions[] = "<a class='button button-secondary$class' href='{$item[2]}'>{$item[0]}</a>"; 196 } else { 197 $current_theme_actions[] = "<a class='button button-secondary$class' href='themes.php?page={$item[2]}'>{$item[0]}</a>"; 198 } 197 199 } 198 200 } 199 201 } 200 }201 202 202 ?>203 203 ?> 204 </div> 204 205 <div class="theme-browser"> 205 206 <div class="themes"> 206 207 -
wp-admin/upload.php
71 71 require_once( ABSPATH . 'wp-admin/admin-header.php' ); 72 72 ?> 73 73 <div class="wrap" id="wp-media-grid" data-search="<?php _admin_search_query() ?>"> 74 < h1>75 <?php76 echo esc_html( $title );77 if ( current_user_can( 'upload_files' ) ) { ?>78 <a href="media-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'file' ); ?></a><?php79 }80 ?>81 </ h1>74 <div class="header"> 75 <h1><?php echo esc_html( $title );?></h1> 76 <?php 77 if ( current_user_can( 'upload_files' ) ) { ?> 78 <a href="media-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'file' ); ?></a><?php 79 } 80 ?> 81 </div> 82 82 <div class="error hide-if-js"> 83 83 <p><?php _e( 'The grid view for the Media Library requires JavaScript. <a href="upload.php?mode=list">Switch to the list view</a>.' ); ?></p> 84 84 </div> -
wp-admin/users.php
443 443 } ?> 444 444 445 445 <div class="wrap"> 446 <h1>447 <?php 448 echo esc_html( $title ); 449 if ( current_user_can( 'create_users' ) ) { ?>450 <a href="user-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'user' ); ?></a>451 <?php } elseif ( is_multisite() && current_user_can( 'promote_users' ) ) { ?>452 <a href="user-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add Existing', 'user' ); ?></a>453 <?php }446 <div class="header"> 447 <h1><?php echo esc_html( $title );?></h1> 448 <?php 449 if ( current_user_can( 'create_users' ) ) { ?> 450 <a href="user-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'user' ); ?></a> 451 <?php } elseif ( is_multisite() && current_user_can( 'promote_users' ) ) { ?> 452 <a href="user-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add Existing', 'user' ); ?></a> 453 <?php } 454 454 455 if ( $usersearch ) 456 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( $usersearch ) ); ?> 457 </h1> 455 if ( $usersearch ) 456 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( $usersearch ) ); 457 ?> 458 </div> 458 459 459 460 <?php $wp_list_table->views(); ?> 460 461 -
wp-admin/widgets.php
315 315 require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?> 316 316 317 317 <div class="wrap"> 318 <h1>319 <?php 320 echo esc_html( $title );321 if ( current_user_can( 'customize' ) ) {322 printf(323 ' <a class="add-new-h2 hide-if-no-customize" href="%1$s">%2$s</a>',324 esc_url( add_query_arg(325 array(326 array( 'autofocus' => array( 'panel' => 'widgets' ) ),327 'return' => urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) )328 ),329 admin_url( 'customize.php' )330 ) ),331 __( 'Manage in Customizer' )332 );333 }334 ?>335 </h1>318 <div class="header"> 319 <h1><?php echo esc_html( $title ); ?></h1> 320 <?php 321 if ( current_user_can( 'customize' ) ) { 322 printf( 323 ' <a class="add-new-h2 hide-if-no-customize" href="%1$s">%2$s</a>', 324 esc_url( add_query_arg( 325 array( 326 array( 'autofocus' => array( 'panel' => 'widgets' ) ), 327 'return' => urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ) 328 ), 329 admin_url( 'customize.php' ) 330 ) ), 331 __( 'Manage in Customizer' ) 332 ); 333 } 334 ?> 335 </div> 336 336 337 337 <?php if ( isset($_GET['message']) && isset($messages[$_GET['message']]) ) { ?> 338 338 <div id="message" class="updated notice is-dismissible"><p><?php echo $messages[$_GET['message']]; ?></p></div>