Ticket #26601: 26601.7.patch
| File 26601.7.patch, 14.0 KB (added by , 11 years ago) |
|---|
-
wp-admin/css/common.css
414 414 415 415 .subsubsub { 416 416 list-style: none; 417 margin: 8px 00;417 margin: 0; 418 418 padding: 0; 419 419 font-size: 13px; 420 420 float: left; … … 553 553 } 554 554 555 555 .wrap { 556 margin: 10px 20px 0 2px;556 margin: 20px 20px 0 2px; 557 557 } 558 558 559 559 .attention { … … 566 566 margin: 0; 567 567 } 568 568 569 .wrap header { 570 margin-bottom: 15px; 571 } 572 569 573 .wrap h2 { 570 574 font-size: 23px; 571 575 font-weight: 400; 572 padding: 9px 15px 4px 0; 573 line-height: 29px; 576 padding-right: 10px; 577 line-height: 1.2; 578 display: inline; 574 579 } 580 .post-php .wrap h2 { 581 float: left; 582 } 583 .index-php .wrap h2, 584 .nav-menus-php .wrap h2 { 585 display: block; 586 margin-bottom: 10px; 587 } 575 588 576 589 .subtitle { 577 590 color: #777; … … 581 594 582 595 .wrap .add-new-h2, 583 596 .wrap .add-new-h2:active { 584 margin-left: 4px; 585 padding: 4px 8px; 586 position: relative; 587 top: -3px; 597 padding: 5px 8px; 588 598 text-decoration: none; 589 599 border: none; 590 600 -webkit-border-radius: 2px; … … 593 603 text-shadow: none; 594 604 font-weight: 600; 595 605 font-size: 13px; 606 display: inline-block; 607 margin-right: 20px; 596 608 } 597 609 598 610 .wrap .add-new-h2:hover { … … 948 960 } 949 961 950 962 /* not a part of filter bar, but derived from it, so here for now */ 951 .t itle-count {963 .theme-count { 952 964 display: inline; 953 top: -3px; 954 margin-left: 5px; 955 margin-right: 20px; 965 margin-right: 25px; 956 966 } 957 967 968 .helper-content { 969 display: inline; 970 position: relative; 971 } 972 973 .theme-install-php .helper-content { 974 bottom: -10px; 975 } 976 958 977 .filter-items { 959 978 float: left; 960 979 } -
wp-admin/css/themes.css
27 27 28 28 /* Search form */ 29 29 .themes-php .wp-filter-search { 30 position: relative;31 top: -2px;32 left: 20px;33 30 margin: 0; 34 31 width: 280px; 35 32 font-size: 16px; -
wp-admin/edit-comments.php
140 140 ?> 141 141 142 142 <div class="wrap"> 143 <h2><?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 echo __('Comments'); 143 <header> 144 <h2><?php if ( $post_id ) echo sprintf( __( 'Comments on “%s”' ), sprintf( '<a href="%s">%s</a>', get_edit_post_link( $post_id ), wp_html_excerpt( _draft_or_post_title( $post_id ), 50, '…' ) ) ); 145 else echo __( 'Comments' );?></h2> 146 <?php 147 if ( isset($_REQUEST['s']) && $_REQUEST['s'] ) echo '<span class="subtitle">' . sprintf( __( 'Search results for “%s”' ), wp_html_excerpt( esc_html( wp_unslash( $_REQUEST['s'] ) ), 50, '…' ) ) . '</span>'; ?> 148 </header> 153 149 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 </h2>157 158 150 <?php 159 151 if ( isset( $_REQUEST['error'] ) ) { 160 152 $error = (int) $_REQUEST['error']; -
wp-admin/edit-form-advanced.php
396 396 ?> 397 397 398 398 <div class="wrap"> 399 <h2><?php 400 echo esc_html( $title ); 401 if ( isset( $post_new_file ) && current_user_can( $post_type_object->cap->create_posts ) ) 402 echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="add-new-h2">' . esc_html( $post_type_object->labels->add_new ) . '</a>'; 403 ?></h2> 404 <?php if ( $notice ) : ?> 405 <div id="notice" class="notice notice-warning"><p id="has-newer-autosave"><?php echo $notice ?></p></div> 406 <?php endif; ?> 407 <?php if ( $message ) : ?> 408 <div id="message" class="updated"><p><?php echo $message; ?></p></div> 409 <?php endif; ?> 410 <div id="lost-connection-notice" class="error hidden"> 411 <p><span class="spinner"></span> <?php _e( '<strong>Connection lost.</strong> Saving has been disabled until you’re reconnected.' ); ?> 412 <span class="hide-if-no-sessionstorage"><?php _e( 'We’re backing up this post in your browser, just in case.' ); ?></span> 413 </p> 414 </div> 399 <header> 400 <h2><?php echo esc_html( $title );?></h2> 401 <?php if ( isset( $post_new_file ) && current_user_can( $post_type_object->cap->create_posts ) ) 402 echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="add-new-h2">' . esc_html( $post_type_object->labels->add_new ) . '</a>';?> 403 <?php if ( $notice ) : ?> 404 <div id="notice" class="notice notice-warning"><p id="has-newer-autosave"><?php echo $notice ?></p></div> 405 <?php endif; ?> 406 <?php if ( $message ) : ?> 407 <div id="message" class="updated"> 408 <p><?php echo $message; ?></p> 409 </div> 410 <?php endif; ?> 411 <div id="lost-connection-notice" class="error hidden"> 412 <p><span class="spinner"></span> <?php _e( '<strong>Connection lost.</strong> Saving has been disabled until you’re reconnected.' ); ?> 413 <span class="hide-if-no-sessionstorage"><?php _e( 'We’re backing up this post in your browser, just in case.' ); ?></span> 414 </p> 415 </div> 416 </header> 417 415 418 <form name="post" action="post.php" method="post" id="post"<?php 416 419 /** 417 420 * Fires inside the post editor form tag. -
wp-admin/edit.php
277 277 require_once( ABSPATH . 'wp-admin/admin-header.php' ); 278 278 ?> 279 279 <div class="wrap"> 280 <h2><?php 281 echo esc_html( $post_type_object->labels->name ); 282 if ( current_user_can( $post_type_object->cap->create_posts ) ) 283 echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="add-new-h2">' . esc_html( $post_type_object->labels->add_new ) . '</a>'; 284 if ( ! empty( $_REQUEST['s'] ) ) 285 printf( ' <span class="subtitle">' . __('Search results for “%s”') . '</span>', get_search_query() ); 286 ?></h2> 280 <header> 281 <h2><?php echo esc_html( $post_type_object->labels->name );?></h2> 282 <?php 283 if ( current_user_can( $post_type_object->cap->create_posts ) ) 284 echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="add-new-h2">' . esc_html( $post_type_object->labels->add_new ) . '</a>'; 285 if ( ! empty( $_REQUEST['s'] ) ) 286 printf( ' <span class="subtitle">' . __('Search results for “%s”') . '</span>', get_search_query() ); 287 ?> 288 </header> 287 289 288 290 <?php 289 291 // If we have a bulk message to issue: -
wp-admin/js/theme.js
85 85 }, 86 86 87 87 // Defines search element container 88 searchContainer: $( '#wpbody h2:first' ),88 searchContainer: $( '#wpbody .helper-content' ), 89 89 90 90 // Search input and view 91 91 // for current theme collection -
wp-admin/plugin-install.php
94 94 include(ABSPATH . 'wp-admin/admin-header.php'); 95 95 ?> 96 96 <div class="wrap"> 97 <h2> 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' ); 107 } 108 echo ' <a href="' . $href . '" class="upload add-new-h2">' . $text . '</a>'; 109 } 110 ?> 111 </h2> 97 <header> 98 <h2><?php echo esc_html( $title );?></h2> 99 <?php if ( ! empty( $tabs['upload'] ) && current_user_can( 'upload_plugins' ) ) { 100 if ( $tab === 'upload' ) { 101 $href = self_admin_url( 'plugin-install.php' ); 102 $text = _x( 'Browse', 'plugins' ); 103 } else { 104 $href = self_admin_url( 'plugin-install.php?tab=upload' ); 105 $text = __( 'Upload Plugin' ); 106 } 107 echo ' <a href="' . $href . '" class="upload add-new-h2">' . $text . '</a>'; 108 }?> 109 </header> 112 110 113 111 <?php 114 112 if ( $tab !== 'upload' ) { -
wp-admin/plugins.php
432 432 <?php endif; ?> 433 433 434 434 <div class="wrap"> 435 <h2><?php echo esc_html( $title ); 436 if ( ( ! is_multisite() || is_network_admin() ) && current_user_can('install_plugins') ) { ?> 437 <a href="<?php echo self_admin_url( 'plugin-install.php' ); ?>" class="add-new-h2"><?php echo esc_html_x('Add New', 'plugin'); ?></a> 435 <header> 436 <h2><?php echo esc_html( $title );?></h2> 437 <?php if ( ( ! is_multisite() || is_network_admin() ) && current_user_can('install_plugins') ) { ?> 438 <a href="<?php echo self_admin_url( 'plugin-install.php' ); ?>" class="add-new-h2"><?php echo esc_html_x('Add New', 'plugin'); ?></a> 439 </header> 438 440 <?php } 439 441 if ( $s ) 440 442 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( $s ) ); ?> 441 </h2>442 443 443 444 <?php 444 445 /** -
wp-admin/themes.php
121 121 ?> 122 122 123 123 <div class="wrap"> 124 <h2><?php esc_html_e( 'Themes' ); ?> 124 <header> 125 <h2><?php esc_html_e( 'Themes' ); ?></h2> 125 126 <span class="title-count theme-count"><?php echo count( $themes ); ?></span> 126 <?php if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?> 127 <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> 128 <?php endif; ?> 129 </h2> 127 <div class="helper-content"> 128 <?php if ( ! is_multisite() && current_user_can( 'install_themes' ) ) : ?> 129 <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> 130 <?php endif; ?> 131 </div> 132 </header> 130 133 <?php 131 134 if ( ! validate_current_theme() || isset( $_GET['broken'] ) ) : ?> 132 135 <div id="message1" class="updated"><p><?php _e('The active theme is broken. Reverting to the default theme.'); ?></p></div> -
wp-admin/upload.php
68 68 require_once( ABSPATH . 'wp-admin/admin-header.php' ); 69 69 ?> 70 70 <div class="wrap" id="wp-media-grid"> 71 <h 2>72 <?php73 echo esc_html( $title );74 if ( current_user_can( 'upload_files' ) ) { ?>75 < a href="media-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'file' ); ?></a><?php76 }77 ?>78 </h2> 71 <header> 72 <h2><?php echo esc_html( $title );?></h2> 73 <?php if ( current_user_can( 'upload_files' ) ) { ?> 74 <a href="media-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'file' ); ?></a> 75 <?php } 76 ?> 77 </header> 78 79 79 <div class="error hide-if-js"> 80 80 <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> 81 81 </div> -
wp-admin/users.php
428 428 } ?> 429 429 430 430 <div class="wrap"> 431 <h2> 432 <?php 433 echo esc_html( $title ); 434 if ( current_user_can( 'create_users' ) ) { ?> 435 <a href="user-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'user' ); ?></a> 436 <?php } elseif ( is_multisite() && current_user_can( 'promote_users' ) ) { ?> 437 <a href="user-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add Existing', 'user' ); ?></a> 438 <?php } 431 <header> 432 <h2><?php echo esc_html( $title );?></h2> 433 <?php 434 if ( current_user_can( 'create_users' ) ) { ?> 435 <a href="user-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add New', 'user' ); ?></a> 436 <?php } elseif ( is_multisite() && current_user_can( 'promote_users' ) ) { ?> 437 <a href="user-new.php" class="add-new-h2"><?php echo esc_html_x( 'Add Existing', 'user' ); ?></a> 438 <?php } 439 if ( $usersearch ) 440 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( $usersearch ) ); ?> 441 </header> 439 442 440 if ( $usersearch )441 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( $usersearch ) ); ?>442 </h2>443 443 444 444 <?php $wp_list_table->views(); ?> 445 445 -
wp-admin/widgets.php
310 310 require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?> 311 311 312 312 <div class="wrap"> 313 <h2>314 <?php 315 echo esc_html( $title );316 if ( current_user_can( 'customize' ) ) {317 printf(318 ' <a class="add-new-h2 hide-if-no-customize" href="%1$s">%2$s</a>',319 esc_url( add_query_arg(320 array(321 array( 'autofocus' => array( 'panel' => 'widgets' ) ),322 'return' => urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) )323 ),324 admin_url( 'customize.php' )325 ) ),326 __( 'Manage in Customizer' )327 );328 }329 ?>330 </h2>313 <header> 314 <h2><?php echo esc_html( $title );?></h2> 315 <?php 316 if ( current_user_can( 'customize' ) ) { 317 printf( 318 ' <a class="add-new-h2 hide-if-no-customize" href="%1$s">%2$s</a>', 319 esc_url( add_query_arg( 320 array( 321 array( 'autofocus' => array( 'panel' => 'widgets' ) ), 322 'return' => urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ) 323 ), 324 admin_url( 'customize.php' ) 325 ) ), 326 __( 'Manage in Customizer' ) 327 ); 328 } 329 ?> 330 </header> 331 331 332 332 <?php if ( isset($_GET['message']) && isset($messages[$_GET['message']]) ) { ?> 333 333 <div id="message" class="updated"><p><?php echo $messages[$_GET['message']]; ?></p></div>