Ticket #26601: 26601.8.patch
File 26601.8.patch, 42.4 KB (added by , 6 years ago) |
---|
-
wp-admin/comment.php
117 117 ?> 118 118 <div class="wrap"> 119 119 120 <h 2><?php echo esc_html( $title ); ?></h2>120 <h1><?php echo esc_html( $title ); ?></h1> 121 121 122 122 <?php 123 123 switch ( $action ) { -
wp-admin/css/common.css
328 328 margin: .67em 0; 329 329 } 330 330 331 h2 {331 .wrap > h1, h2 { 332 332 color: #23282d; 333 333 font-size: 1.5em; 334 334 margin: .83em 0; … … 564 564 color: #00a0d2; 565 565 } 566 566 567 .wrap header { 568 margin-bottom: 15px; 569 } 570 571 .wrap h1, 567 572 .wrap h2, 568 573 .subtitle { 569 574 font-weight: normal; … … 570 575 margin: 0; 571 576 } 572 577 578 .wrap h1, 573 579 .wrap h2 { 580 display: inline-block; 574 581 font-size: 23px; 575 582 font-weight: 400; 576 583 padding: 9px 15px 4px 0; … … 583 590 padding-left: 25px; 584 591 } 585 592 593 .wrap .add-new-h1, 586 594 .wrap .add-new-h2, 595 .wrap .add-new-h1:active, 587 596 .wrap .add-new-h2:active { 588 597 margin-left: 4px; 589 598 padding: 4px 8px; … … 599 608 font-size: 13px; 600 609 } 601 610 611 .wrap .add-new-h1:hover, 602 612 .wrap .add-new-h2:hover { 603 613 background: #00a0d2; 604 614 color: #fff; 605 615 } 606 616 617 .wrap h1.long-header, 607 618 .wrap h2.long-header { 608 619 padding-right: 0; 609 620 } -
wp-admin/custom-background.php
176 176 public function admin_page() { 177 177 ?> 178 178 <div class="wrap" id="custom-background"> 179 <h 2><?php _e( 'Custom Background' ); ?></h2>179 <h1><?php _e( 'Custom Background' ); ?></h1> 180 180 181 181 <?php if ( current_user_can( 'customize' ) ) { ?> 182 182 <div class="notice notice-info hide-if-no-customize"> -
wp-admin/custom-header.php
446 446 ?> 447 447 448 448 <div class="wrap"> 449 <h 2><?php _e( 'Custom Header' ); ?></h2>449 <h1><?php _e( 'Custom Header' ); ?></h1> 450 450 451 451 <?php if ( current_user_can( 'customize' ) ) { ?> 452 452 <div class="notice notice-info hide-if-no-customize"> … … 754 754 ?> 755 755 756 756 <div class="wrap"> 757 <h 2><?php _e( 'Crop Header Image' ); ?></h2>757 <h1><?php _e( 'Crop Header Image' ); ?></h1> 758 758 759 759 <form method="post" action="<?php echo esc_url(add_query_arg('step', 3)); ?>"> 760 760 <p class="hide-if-no-js"><?php _e('Choose the part of the image you want to use as your header.'); ?></p> -
wp-admin/edit-comments.php
140 140 ?> 141 141 142 142 <div class="wrap"> 143 <h 2><?php143 <h1><?php 144 144 if ( $post_id ) 145 145 echo sprintf( __( 'Comments on “%s”' ), 146 146 sprintf( '<a href="%s">%s</a>', … … 153 153 154 154 if ( isset($_REQUEST['s']) && $_REQUEST['s'] ) 155 155 echo '<span class="subtitle">' . sprintf( __( 'Search results for “%s”' ), wp_html_excerpt( esc_html( wp_unslash( $_REQUEST['s'] ) ), 50, '…' ) ) . '</span>'; ?> 156 </h 2>156 </h1> 157 157 158 158 <?php 159 159 if ( isset( $_REQUEST['error'] ) ) { -
wp-admin/edit-form-advanced.php
407 407 ?> 408 408 409 409 <div class="wrap"> 410 <h 2><?php410 <h1><?php 411 411 echo esc_html( $title ); 412 412 if ( isset( $post_new_file ) && current_user_can( $post_type_object->cap->create_posts ) ) 413 413 echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="add-new-h2">' . esc_html( $post_type_object->labels->add_new ) . '</a>'; 414 ?></h 2>414 ?></h1> 415 415 <?php if ( $notice ) : ?> 416 416 <div id="notice" class="notice notice-warning"><p id="has-newer-autosave"><?php echo $notice ?></p></div> 417 417 <?php endif; ?> -
wp-admin/edit-form-comment.php
13 13 <form name="post" action="comment.php" method="post" id="post"> 14 14 <?php wp_nonce_field('update-comment_' . $comment->comment_ID) ?> 15 15 <div class="wrap"> 16 <h 2><?php _e('Edit Comment'); ?></h2>16 <h1><?php _e('Edit Comment'); ?></h1> 17 17 18 18 <div id="poststuff"> 19 19 <input type="hidden" name="action" value="editedcomment" /> -
wp-admin/edit-link-form.php
70 70 ?> 71 71 72 72 <div class="wrap"> 73 <h 2><?php echo esc_html( $title ); ?> <a href="link-add.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'link'); ?></a></h2>73 <h1><?php echo esc_html( $title ); ?> <a href="link-add.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'link'); ?></a></h1> 74 74 75 75 <?php if ( isset( $_GET['added'] ) ) : ?> 76 76 <div id="message" class="updated notice is-dismissible"><p><?php _e('Link added.'); ?></p></div> -
wp-admin/edit-tag-form.php
62 62 do_action( "{$taxonomy}_pre_edit_form", $tag, $taxonomy ); ?> 63 63 64 64 <div class="wrap"> 65 <h 2><?php echo $tax->labels->edit_item; ?></h2>65 <h1><?php echo $tax->labels->edit_item; ?></h1> 66 66 <div id="ajax-response"></div> 67 67 <form name="edittag" id="edittag" method="post" action="edit-tags.php" class="validate" 68 68 <?php -
wp-admin/edit-tags.php
305 305 ?> 306 306 307 307 <div class="wrap nosubsub"> 308 <h 2><?php echo esc_html( $title );308 <h1><?php echo esc_html( $title ); 309 309 if ( !empty($_REQUEST['s']) ) 310 310 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( wp_unslash($_REQUEST['s']) ) ); ?> 311 </h 2>311 </h1> 312 312 313 313 <?php if ( $message ) : ?> 314 314 <div id="message" class="<?php echo $class; ?> notice is-dismissible"><p><?php echo $message; ?></p></div> -
wp-admin/edit.php
283 283 require_once( ABSPATH . 'wp-admin/admin-header.php' ); 284 284 ?> 285 285 <div class="wrap"> 286 <h 2><?php286 <h1><?php 287 287 echo esc_html( $post_type_object->labels->name ); 288 288 if ( current_user_can( $post_type_object->cap->create_posts ) ) 289 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 290 if ( ! empty( $_REQUEST['s'] ) ) 291 291 printf( ' <span class="subtitle">' . __('Search results for “%s”') . '</span>', get_search_query() ); 292 ?></h 2>292 ?></h1> 293 293 294 294 <?php 295 295 // If we have a bulk message to issue: -
wp-admin/export.php
143 143 ?> 144 144 145 145 <div class="wrap"> 146 <h 2><?php echo esc_html( $title ); ?></h2>146 <h1><?php echo esc_html( $title ); ?></h1> 147 147 148 148 <p><?php _e('When you click the button below WordPress will create an XML file for you to save to your computer.'); ?></p> 149 149 <p><?php _e('This format, which we call WordPress eXtended RSS or WXR, will contain your posts, pages, comments, custom fields, categories, and tags.'); ?></p> -
wp-admin/import.php
52 52 ?> 53 53 54 54 <div class="wrap"> 55 <h 2><?php echo esc_html( $title ); ?></h2>55 <h1><?php echo esc_html( $title ); ?></h1> 56 56 <?php if ( ! empty( $_GET['invalid'] ) ) : ?> 57 57 <div class="error"><p><strong><?php _e('ERROR:')?></strong> <?php printf( __('The <strong>%s</strong> importer is invalid or is not installed.'), esc_html( $_GET['invalid'] ) ); ?></p></div> 58 58 <?php endif; ?> -
wp-admin/index.php
93 93 ?> 94 94 95 95 <div class="wrap"> 96 <h 2><?php echo esc_html( $title ); ?></h2>96 <h1><?php echo esc_html( $title ); ?></h1> 97 97 98 98 <?php if ( has_action( 'welcome_panel' ) && current_user_can( 'edit_theme_options' ) ) : 99 99 $classes = 'welcome-panel'; -
wp-admin/js/common.js
371 371 } 372 372 373 373 // Move .notice, .updated and .error alert boxes. Don't move boxes designed to be inline. 374 $firstHeading = $( 'div.wrap h2:first' ); 374 // Back compatibility: if first descendant is not H1, apply to first H2. 375 $firstH1 = $( 'div.wrap > h1' ); 376 if ( $firstH1.length == 1 ) { 377 $firstHeading = $( 'div.wrap h1:first' ); 378 } else { 379 $firstHeading = $( 'div.wrap h2:first' ); 380 } 375 381 $firstHeading.nextAll( 'div.updated, div.error, div.notice' ).addClass( 'below-h2' ); 376 382 $( 'div.updated, div.error, div.notice' ).not( '.below-h2, .inline' ).insertAfter( $firstHeading ); 377 383 -
wp-admin/js/theme.js
84 84 }, 85 85 86 86 // Defines search element container 87 searchContainer: $( '#wpbody h 2:first' ),87 searchContainer: $( '#wpbody header' ), 88 88 89 89 // Search input and view 90 90 // for current theme collection -
wp-admin/link-manager.php
69 69 ?> 70 70 71 71 <div class="wrap nosubsub"> 72 <h 2><?php echo esc_html( $title ); ?> <a href="link-add.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'link'); ?></a> <?php72 <h1><?php echo esc_html( $title ); ?> <a href="link-add.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'link'); ?></a> <?php 73 73 if ( !empty($_REQUEST['s']) ) 74 74 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( wp_unslash($_REQUEST['s']) ) ); ?> 75 </h 2>75 </h1> 76 76 77 77 <?php 78 78 if ( isset($_REQUEST['deleted']) ) { -
wp-admin/media-new.php
65 65 $form_class .= ' html-uploader'; 66 66 ?> 67 67 <div class="wrap"> 68 <h 2><?php echo esc_html( $title ); ?></h2>68 <h1><?php echo esc_html( $title ); ?></h1> 69 69 70 70 <form enctype="multipart/form-data" method="post" action="<?php echo admin_url('media-new.php'); ?>" class="<?php echo esc_attr( $form_class ); ?>" id="file-form"> 71 71 -
wp-admin/media.php
103 103 ?> 104 104 105 105 <div class="wrap"> 106 <h 2>106 <h1> 107 107 <?php 108 108 echo esc_html( $title ); 109 109 if ( current_user_can( 'upload_files' ) ) { ?> 110 110 <a href="media-new.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'file'); ?></a> 111 111 <?php } ?> 112 </h 2>112 </h1> 113 113 114 114 <form method="post" class="media-upload-form" id="media-single-form"> 115 115 <p class="submit" style="padding-bottom: 0;"> -
wp-admin/ms-delete-site.php
32 32 require_once( ABSPATH . 'wp-admin/admin-header.php' ); 33 33 34 34 echo '<div class="wrap">'; 35 echo '<h 2>' . esc_html( $title ) . '</h2>';35 echo '<h1>' . esc_html( $title ) . '</h1>'; 36 36 37 37 if ( isset( $_POST['action'] ) && $_POST['action'] == 'deleteblog' && isset( $_POST['confirmdelete'] ) && $_POST['confirmdelete'] == '1' ) { 38 38 check_admin_referer( 'delete-blog' ); -
wp-admin/my-sites.php
56 56 <?php } ?> 57 57 58 58 <div class="wrap"> 59 <h 2><?php echo esc_html( $title ); ?></h2>59 <h1><?php echo esc_html( $title ); ?></h1> 60 60 <?php 61 61 if ( empty( $blogs ) ) : 62 62 echo '<p>'; -
wp-admin/nav-menus.php
558 558 require_once( ABSPATH . 'wp-admin/admin-header.php' ); 559 559 ?> 560 560 <div class="wrap"> 561 <h 2class="nav-tab-wrapper">561 <h1 class="nav-tab-wrapper"> 562 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 563 <?php if ( $num_locations && $menu_count ) : ?> 564 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 565 <?php endif; ?> 566 </h 2>566 </h1> 567 567 <?php 568 568 foreach( $messages as $message ) : 569 569 echo $message . "\n"; -
wp-admin/network.php
145 145 include( ABSPATH . 'wp-admin/admin-header.php' ); 146 146 ?> 147 147 <div class="wrap"> 148 <h 2><?php echo esc_html( $title ); ?></h2>148 <h1><?php echo esc_html( $title ); ?></h1> 149 149 150 150 <?php 151 151 /** -
wp-admin/options-discussion.php
51 51 ?> 52 52 53 53 <div class="wrap"> 54 <h 2><?php echo esc_html( $title ); ?></h2>54 <h1><?php echo esc_html( $title ); ?></h1> 55 55 56 56 <form method="post" action="options.php"> 57 57 <?php settings_fields('discussion'); ?> -
wp-admin/options-media.php
40 40 ?> 41 41 42 42 <div class="wrap"> 43 <h 2><?php echo esc_html( $title ); ?></h2>43 <h1><?php echo esc_html( $title ); ?></h1> 44 44 45 45 <form action="options.php" method="post"> 46 46 <?php settings_fields('media'); ?> -
wp-admin/options-permalink.php
175 175 <?php endif; ?> 176 176 177 177 <div class="wrap"> 178 <h 2><?php echo esc_html( $title ); ?></h2>178 <h1><?php echo esc_html( $title ); ?></h1> 179 179 180 180 <form name="form" action="options-permalink.php" method="post"> 181 181 <?php wp_nonce_field('update-permalink') ?> -
wp-admin/options-reading.php
74 74 ?> 75 75 76 76 <div class="wrap"> 77 <h 2><?php echo esc_html( $title ); ?></h2>77 <h1><?php echo esc_html( $title ); ?></h1> 78 78 79 79 <form method="post" action="options.php"> 80 80 <?php -
wp-admin/options-writing.php
50 50 ?> 51 51 52 52 <div class="wrap"> 53 <h 2><?php echo esc_html( $title ); ?></h2>53 <h1><?php echo esc_html( $title ); ?></h1> 54 54 55 55 <form method="post" action="options.php"> 56 56 <?php settings_fields('writing'); ?> -
wp-admin/options.php
226 226 include( ABSPATH . 'wp-admin/admin-header.php' ); ?> 227 227 228 228 <div class="wrap"> 229 <h 2><?php esc_html_e('All Settings'); ?></h2>229 <h1><?php esc_html_e('All Settings'); ?></h1> 230 230 <form name="form" action="options.php" method="post" id="all-options"> 231 231 <?php wp_nonce_field('options-options') ?> 232 232 <input type="hidden" name="action" value="update" /> -
wp-admin/plugin-editor.php
28 28 include( ABSPATH . 'wp-admin/admin-header.php' ); 29 29 ?> 30 30 <div class="wrap"> 31 <h 2><?php echo esc_html( $title ); ?></h2>31 <h1><?php echo esc_html( $title ); ?></h1> 32 32 <div id="message" class="error"><p><?php _e( 'You do not appear to have any plugins available at this time.' ); ?></p></div> 33 33 </div> 34 34 <?php … … 174 174 </div> 175 175 <?php endif; ?> 176 176 <div class="wrap"> 177 <h 2><?php echo esc_html( $title ); ?></h2>177 <h1><?php echo esc_html( $title ); ?></h1> 178 178 179 179 <div class="fileedit-sub"> 180 180 <div class="alignleft"> -
wp-admin/plugin-install.php
94 94 include(ABSPATH . 'wp-admin/admin-header.php'); 95 95 ?> 96 96 <div class="wrap"> 97 <h 2>97 <h1> 98 98 <?php 99 99 echo esc_html( $title ); 100 100 if ( ! empty( $tabs['upload'] ) && current_user_can( 'upload_plugins' ) ) { … … 108 108 echo ' <a href="' . $href . '" class="upload add-new-h2">' . $text . '</a>'; 109 109 } 110 110 ?> 111 </h 2>111 </h1> 112 112 113 113 <?php 114 114 if ( $tab !== 'upload' ) { -
wp-admin/plugins.php
122 122 require_once(ABSPATH . 'wp-admin/admin-header.php'); 123 123 124 124 echo '<div class="wrap">'; 125 echo '<h 2>' . esc_html( $title ) . '</h2>';125 echo '<h1>' . esc_html( $title ) . '</h1>'; 126 126 127 127 $url = self_admin_url('update.php?action=update-selected&plugins=' . urlencode( join(',', $plugins) )); 128 128 $url = wp_nonce_url($url, 'bulk-update-plugins'); … … 288 288 $plugins_to_delete = count( $plugin_info ); 289 289 ?> 290 290 <?php if ( 1 == $plugins_to_delete ) : ?> 291 <h 2><?php _e( 'Delete Plugin' ); ?></h2>291 <h1><?php _e( 'Delete Plugin' ); ?></h1> 292 292 <?php if ( $have_non_network_plugins && is_network_admin() ) : ?> 293 293 <div class="error"><p><strong><?php _e( 'Caution:' ); ?></strong> <?php _e( 'This plugin may be active on other sites in the network.' ); ?></p></div> 294 294 <?php endif; ?> 295 295 <p><?php _e( 'You are about to remove the following plugin:' ); ?></p> 296 296 <?php else: ?> 297 <h 2><?php _e( 'Delete Plugins' ); ?></h2>297 <h1><?php _e( 'Delete Plugins' ); ?></h1> 298 298 <?php if ( $have_non_network_plugins && is_network_admin() ) : ?> 299 299 <div class="error"><p><strong><?php _e( 'Caution:' ); ?></strong> <?php _e( 'These plugins may be active on other sites in the network.' ); ?></p></div> 300 300 <?php endif; ?> … … 446 446 <?php endif; ?> 447 447 448 448 <div class="wrap"> 449 <h 2><?php echo esc_html( $title );449 <h1><?php echo esc_html( $title ); 450 450 if ( ( ! is_multisite() || is_network_admin() ) && current_user_can('install_plugins') ) { ?> 451 451 <a href="<?php echo self_admin_url( 'plugin-install.php' ); ?>" class="add-new-h2"><?php echo esc_html_x('Add New', 'plugin'); ?></a> 452 452 <?php } 453 453 if ( $s ) 454 454 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( $s ) ); ?> 455 </h 2>455 </h1> 456 456 457 457 <?php 458 458 /** -
wp-admin/revision.php
74 74 75 75 $post_edit_link = get_edit_post_link(); 76 76 $post_title = '<a href="' . $post_edit_link . '">' . _draft_or_post_title() . '</a>'; 77 $h 2= sprintf( __( 'Compare Revisions of “%1$s”' ), $post_title );77 $h1 = sprintf( __( 'Compare Revisions of “%1$s”' ), $post_title ); 78 78 $return_to_post = '<a href="' . $post_edit_link . '">' . __( '← Return to post editor' ) . '</a>'; 79 79 $title = __( 'Revisions' ); 80 80 … … 126 126 ?> 127 127 128 128 <div class="wrap"> 129 <h 2 class="long-header"><?php echo $h2; ?></h2>129 <h1 class="long-header"><?php echo $h1; ?></h1> 130 130 <?php echo $return_to_post; ?> 131 131 </div> 132 132 <?php -
wp-admin/theme-editor.php
131 131 $description .= ' <span>(' . $file_show . ')</span>'; 132 132 ?> 133 133 <div class="wrap"> 134 <h2><?php echo esc_html( $title ); ?></h2> 134 <header> 135 <h1><?php echo esc_html( $title ); ?></h1> 136 <div class="fileedit-sub"> 137 <div class="alignleft"> 138 <h3><?php echo $theme->display('Name'); if ( $description ) echo ': ' . $description; ?></h3> 139 </div> 140 <div class="alignright"> 141 <form action="theme-editor.php" method="post"> 142 <strong><label for="theme"><?php _e('Select theme to edit:'); ?> </label></strong> 143 <select name="theme" id="theme"> 144 <?php 145 foreach ( wp_get_themes( array( 'errors' => null ) ) as $a_stylesheet => $a_theme ) { 146 if ( $a_theme->errors() && 'theme_no_stylesheet' == $a_theme->errors()->get_error_code() ) 147 continue; 135 148 136 <div class="fileedit-sub"> 137 <div class="alignleft"> 138 <h3><?php echo $theme->display('Name'); if ( $description ) echo ': ' . $description; ?></h3> 139 </div> 140 <div class="alignright"> 141 <form action="theme-editor.php" method="post"> 142 <strong><label for="theme"><?php _e('Select theme to edit:'); ?> </label></strong> 143 <select name="theme" id="theme"> 149 $selected = $a_stylesheet == $stylesheet ? ' selected="selected"' : ''; 150 echo "\n\t" . '<option value="' . esc_attr( $a_stylesheet ) . '"' . $selected . '>' . $a_theme->display('Name') . '</option>'; 151 } 152 ?> 153 </select> 154 <?php submit_button( __( 'Select' ), 'button', 'Submit', false ); ?> 155 </form> 156 </div> 157 <br class="clear" /> 158 </div> 159 </header> 144 160 <?php 145 foreach ( wp_get_themes( array( 'errors' => null ) ) as $a_stylesheet => $a_theme ) {146 if ( $a_theme->errors() && 'theme_no_stylesheet' == $a_theme->errors()->get_error_code() )147 continue;148 149 $selected = $a_stylesheet == $stylesheet ? ' selected="selected"' : '';150 echo "\n\t" . '<option value="' . esc_attr( $a_stylesheet ) . '"' . $selected . '>' . $a_theme->display('Name') . '</option>';151 }152 ?>153 </select>154 <?php submit_button( __( 'Select' ), 'button', 'Submit', false ); ?>155 </form>156 </div>157 <br class="clear" />158 </div>159 <?php160 161 if ( $theme->errors() ) 161 162 echo '<div class="error"><p><strong>' . __( 'This theme is broken.' ) . '</strong> ' . $theme->errors()->get_error_message() . '</p></div>'; 162 163 ?> -
wp-admin/theme-install.php
102 102 103 103 ?> 104 104 <div class="wrap"> 105 <h2><?php 106 echo esc_html( $title ); 105 <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 ?> 107 124 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 ?></h2> 125 <div class="upload-theme"> 126 <?php install_themes_upload(); ?> 127 </div> 124 128 125 <div class="upload-theme"> 126 <?php install_themes_upload(); ?> 127 </div> 129 <div class="wp-filter"> 130 <div class="filter-count"> 131 <span class="count theme-count"></span> 132 </div> 128 133 129 <div class="wp-filter"> 130 <div class="filter-count"> 131 <span class="count theme-count"></span> 132 </div> 134 <ul class="filter-links"> 135 <li><a href="#" data-sort="featured"><?php _ex( 'Featured', 'themes' ); ?></a></li> 136 <li><a href="#" data-sort="popular"><?php _ex( 'Popular', 'themes' ); ?></a></li> 137 <li><a href="#" data-sort="new"><?php _ex( 'Latest', 'themes' ); ?></a></li> 138 </ul> 133 139 134 <ul class="filter-links"> 135 <li><a href="#" data-sort="featured"><?php _ex( 'Featured', 'themes' ); ?></a></li> 136 <li><a href="#" data-sort="popular"><?php _ex( 'Popular', 'themes' ); ?></a></li> 137 <li><a href="#" data-sort="new"><?php _ex( 'Latest', 'themes' ); ?></a></li> 138 </ul> 140 <a class="drawer-toggle" href="#"><?php _e( 'Feature Filter' ); ?></a> 139 141 140 <a class="drawer-toggle" href="#"><?php _e( 'Feature Filter' ); ?></a>142 <div class="search-form"></div> 141 143 142 <div class="search-form"></div> 143 144 <div class="filter-drawer"> 145 <div class="buttons"> 146 <a class="apply-filters button button-secondary" href="#"><?php _e( 'Apply Filters' ); ?><span></span></a> 147 <a class="clear-filters button button-secondary" href="#"><?php _e( 'Clear' ); ?></a> 144 <div class="filter-drawer"> 145 <div class="buttons"> 146 <a class="apply-filters button button-secondary" href="#"><?php _e( 'Apply Filters' ); ?><span></span></a> 147 <a class="clear-filters button button-secondary" href="#"><?php _e( 'Clear' ); ?></a> 148 </div> 149 <?php 150 $feature_list = get_theme_feature_list(); 151 foreach ( $feature_list as $feature_name => $features ) { 152 echo '<div class="filter-group">'; 153 $feature_name = esc_html( $feature_name ); 154 echo '<h4>' . $feature_name . '</h4>'; 155 echo '<ol class="feature-group">'; 156 foreach ( $features as $feature => $feature_name ) { 157 $feature = esc_attr( $feature ); 158 echo '<li><input type="checkbox" id="filter-id-' . $feature . '" value="' . $feature . '" /> '; 159 echo '<label for="filter-id-' . $feature . '">' . $feature_name . '</label></li>'; 160 } 161 echo '</ol>'; 162 echo '</div>'; 163 } 164 ?> 165 <div class="filtered-by"> 166 <span><?php _e( 'Filtering by:' ); ?></span> 167 <div class="tags"></div> 168 <a href="#"><?php _e( 'Edit' ); ?></a> 169 </div> 148 170 </div> 149 <?php150 $feature_list = get_theme_feature_list();151 foreach ( $feature_list as $feature_name => $features ) {152 echo '<div class="filter-group">';153 $feature_name = esc_html( $feature_name );154 echo '<h4>' . $feature_name . '</h4>';155 echo '<ol class="feature-group">';156 foreach ( $features as $feature => $feature_name ) {157 $feature = esc_attr( $feature );158 echo '<li><input type="checkbox" id="filter-id-' . $feature . '" value="' . $feature . '" /> ';159 echo '<label for="filter-id-' . $feature . '">' . $feature_name . '</label></li>';160 }161 echo '</ol>';162 echo '</div>';163 }164 ?>165 <div class="filtered-by">166 <span><?php _e( 'Filtering by:' ); ?></span>167 <div class="tags"></div>168 <a href="#"><?php _e( 'Edit' ); ?></a>169 </div>170 171 </div> 171 </ div>172 </header> 172 173 <div class="theme-browser content-filterable"></div> 173 174 <div class="theme-install-overlay wp-full-overlay expanded"></div> 174 175 -
wp-admin/themes.php
124 124 ?> 125 125 126 126 <div class="wrap"> 127 <h 2><?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 </h2>133 <?php134 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><?php141 }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 <?php147 endif;127 <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-h1"><?php echo esc_html_x( 'Add New', 'Add new theme' ); ?></a> 132 <?php endif; ?> 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; 148 148 149 $ct = wp_get_theme();149 $ct = wp_get_theme(); 150 150 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 }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 } 154 154 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 */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 */ 160 160 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 = file169 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 else177 $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];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]; 180 180 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>"; 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>"; 186 } 186 187 } 187 }188 188 189 if ( false !== ( $pos = strpos( $menu_file, '?' ) ) ) {190 $menu_file = substr( $menu_file, 0, $pos );191 }189 if ( false !== ( $pos = strpos( $menu_file, '?' ) ) ) { 190 $menu_file = substr( $menu_file, 0, $pos ); 191 } 192 192 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>"; 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>"; 197 } 197 198 } 198 199 } 199 200 } 200 }201 201 202 ?>203 202 ?> 203 </header> 204 204 <div class="theme-browser"> 205 205 <div class="themes"> 206 206 -
wp-admin/tools.php
33 33 34 34 ?> 35 35 <div class="wrap"> 36 <h 2><?php echo esc_html( $title ); ?></h2>36 <h1><?php echo esc_html( $title ); ?></h1> 37 37 38 38 <?php if ( current_user_can('edit_posts') ) : ?> 39 39 <div class="card pressthis"> -
wp-admin/update-core.php
415 415 416 416 ?> 417 417 <div class="wrap"> 418 <h 2><?php _e('Update WordPress'); ?></h2>418 <h1><?php _e('Update WordPress'); ?></h1> 419 419 <?php 420 420 421 421 if ( false === ( $credentials = request_filesystem_credentials( $url, '', false, ABSPATH, array( 'version', 'locale' ), $allow_relaxed_file_ownership ) ) ) { … … 542 542 require_once(ABSPATH . 'wp-admin/admin-header.php'); 543 543 ?> 544 544 <div class="wrap"> 545 <h 2><?php _e('WordPress Updates'); ?></h2>545 <h1><?php _e('WordPress Updates'); ?></h1> 546 546 <?php 547 547 if ( $upgrade_error ) { 548 548 echo '<div class="error"><p>'; … … 624 624 625 625 require_once(ABSPATH . 'wp-admin/admin-header.php'); 626 626 echo '<div class="wrap">'; 627 echo '<h 2>' . esc_html__('Update Plugins') . '</h2>';627 echo '<h1>' . esc_html__('Update Plugins') . '</h1>'; 628 628 echo '<iframe src="', $url, '" style="width: 100%; height: 100%; min-height: 750px;" frameborder="0"></iframe>'; 629 629 echo '</div>'; 630 630 include(ABSPATH . 'wp-admin/admin-footer.php'); … … 653 653 require_once(ABSPATH . 'wp-admin/admin-header.php'); 654 654 ?> 655 655 <div class="wrap"> 656 <h 2><?php echo esc_html__('Update Themes') ?></h2>656 <h1><?php echo esc_html__('Update Themes') ?></h1> 657 657 <iframe src="<?php echo $url ?>" style="width: 100%; height: 100%; min-height: 750px;" frameborder="0"></iframe> 658 658 </div> 659 659 <?php -
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 <h 2>74 <h1> 75 75 <?php 76 76 echo esc_html( $title ); 77 77 if ( current_user_can( 'upload_files' ) ) { ?> … … 78 78 <a href="media-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'file' ); ?></a><?php 79 79 } 80 80 ?> 81 </h 2>81 </h1> 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> … … 206 206 ?> 207 207 208 208 <div class="wrap"> 209 <h 2>209 <h1> 210 210 <?php 211 211 echo esc_html( $title ); 212 212 if ( current_user_can( 'upload_files' ) ) { ?> … … 214 214 } 215 215 if ( ! empty( $_REQUEST['s'] ) ) 216 216 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', get_search_query() ); ?> 217 </h 2>217 </h1> 218 218 219 219 <?php 220 220 $message = ''; -
wp-admin/user-edit.php
202 202 <?php endif; ?> 203 203 204 204 <div class="wrap" id="profile-page"> 205 <h 2>205 <h1> 206 206 <?php 207 207 echo esc_html( $title ); 208 208 if ( ! IS_PROFILE_PAGE ) { … … 212 212 <a href="user-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add Existing', 'user' ); ?></a> 213 213 <?php } 214 214 } ?> 215 </h 2>215 </h1> 216 216 <form id="your-profile" action="<?php echo esc_url( self_admin_url( IS_PROFILE_PAGE ? 'profile.php' : 'user-edit.php' ) ); ?>" method="post" novalidate="novalidate"<?php 217 217 /** 218 218 * Fires inside the your-profile form tag on the user editing screen. -
wp-admin/user-new.php
237 237 } 238 238 ?> 239 239 <div class="wrap"> 240 <h 2id="add-new-user"> <?php240 <h1 id="add-new-user"> <?php 241 241 if ( current_user_can( 'create_users' ) ) { 242 242 echo _x( 'Add New User', 'user' ); 243 243 } elseif ( current_user_can( 'promote_users' ) ) { 244 244 echo _x( 'Add Existing User', 'user' ); 245 245 } ?> 246 </h 2>246 </h1> 247 247 248 248 <?php if ( isset($errors) && is_wp_error( $errors ) ) : ?> 249 249 <div class="error"> -
wp-admin/users.php
214 214 <?php echo $referer; ?> 215 215 216 216 <div class="wrap"> 217 <h 2><?php _e('Delete Users'); ?></h2>217 <h1><?php _e('Delete Users'); ?></h1> 218 218 <?php if ( isset( $_REQUEST['error'] ) ) : ?> 219 219 <div class="error"> 220 220 <p><strong><?php _e( 'ERROR:' ); ?></strong> <?php _e( 'Please select an option.' ); ?></p> … … 336 336 <?php echo $referer; ?> 337 337 338 338 <div class="wrap"> 339 <h 2><?php _e('Remove Users from Site'); ?></h2>339 <h1><?php _e('Remove Users from Site'); ?></h1> 340 340 <p><?php _e('You have specified these users for removal:'); ?></p> 341 341 <ul> 342 342 <?php … … 443 443 } ?> 444 444 445 445 <div class="wrap"> 446 <h 2>446 <h1> 447 447 <?php 448 448 echo esc_html( $title ); 449 449 if ( current_user_can( 'create_users' ) ) { ?> … … 454 454 455 455 if ( $usersearch ) 456 456 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( $usersearch ) ); ?> 457 </h 2>457 </h1> 458 458 459 459 <?php $wp_list_table->views(); ?> 460 460 -
wp-admin/widgets.php
235 235 236 236 require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?> 237 237 <div class="wrap"> 238 <h 2><?php echo esc_html( $title ); ?></h2>238 <h1><?php echo esc_html( $title ); ?></h1> 239 239 <div class="editwidget"<?php echo $width; ?>> 240 240 <h3><?php printf( __( 'Widget %s' ), $name ); ?></h3> 241 241 … … 315 315 require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?> 316 316 317 317 <div class="wrap"> 318 <h 2>318 <h1> 319 319 <?php 320 320 echo esc_html( $title ); 321 321 if ( current_user_can( 'customize' ) ) { … … 332 332 ); 333 333 } 334 334 ?> 335 </h 2>335 </h1> 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>