Ticket #26601: 26601.12.diff
| File 26601.12.diff, 5.1 KB (added by , 9 years ago) |
|---|
-
src/wp-admin/css/common.css
572 572 font-size: 23px; 573 573 font-weight: 400; 574 574 margin: 0; 575 padding: 9px 15px4px 0;575 padding: 9px 0 4px 0; 576 576 line-height: 29px; 577 577 } 578 578 579 .wrap h1.wp-heading-inline { 580 display: inline-block; 581 margin-right: 5px; 582 } 583 584 .wp-header-end { 585 visibility: hidden; 586 margin: -2px 0 0; 587 } 588 579 589 .subtitle { 580 590 margin: 0; 581 591 padding-left: 25px; … … 608 618 outline: 0; 609 619 } 610 620 621 .wrap .wp-heading-inline + .page-title-action { 622 margin-left: 0; 623 } 624 611 625 .wrap .add-new-h2:hover, /* deprecated */ 612 626 .wrap .page-title-action:hover { 613 627 border-color: #008EC2; … … 3633 3647 display: none !important; 3634 3648 } 3635 3649 3650 .wrap h1.wp-heading-inline { 3651 margin-bottom: 0.5em; 3652 } 3653 3636 3654 .wrap .add-new-h2, /* deprecated */ 3637 3655 .wrap .add-new-h2:active, /* deprecated */ 3638 3656 .wrap .page-title-action, -
src/wp-admin/edit-form-advanced.php
473 473 ?> 474 474 475 475 <div class="wrap"> 476 <h1 ><?php476 <h1 class="wp-heading-inline"><?php 477 477 echo esc_html( $title ); 478 if ( isset( $post_new_file ) && current_user_can( $post_type_object->cap->create_posts ) ) 478 ?></h1> 479 480 <?php 481 if ( isset( $post_new_file ) && current_user_can( $post_type_object->cap->create_posts ) ) { 479 482 echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="page-title-action">' . esc_html( $post_type_object->labels->add_new ) . '</a>'; 480 ?></h1> 483 } 484 ?> 485 486 <hr class="wp-header-end"> 487 481 488 <?php if ( $notice ) : ?> 482 489 <div id="notice" class="notice notice-warning"><p id="has-newer-autosave"><?php echo $notice ?></p></div> 483 490 <?php endif; ?> -
src/wp-admin/edit.php
314 314 require_once( ABSPATH . 'wp-admin/admin-header.php' ); 315 315 ?> 316 316 <div class="wrap"> 317 <h1 ><?php317 <h1 class="wp-heading-inline"><?php 318 318 echo esc_html( $post_type_object->labels->name ); 319 if ( current_user_can( $post_type_object->cap->create_posts ) ) 319 ?></h1> 320 321 <?php 322 if ( current_user_can( $post_type_object->cap->create_posts ) ) { 320 323 echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="page-title-action">' . esc_html( $post_type_object->labels->add_new ) . '</a>'; 324 } 321 325 322 326 if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) { 323 327 /* translators: %s: search keywords */ 324 328 printf( ' <span class="subtitle">' . __( 'Search results for “%s”' ) . '</span>', get_search_query() ); 325 329 } 326 ?> </h1>330 ?> 327 331 332 <hr class="wp-header-end"> 333 328 334 <?php 329 335 // If we have a bulk message to issue: 330 336 $messages = array(); -
src/wp-admin/js/common.js
202 202 wpwrap: $wpwrap.height(), 203 203 adminbar: $adminbar.height(), 204 204 menu: $adminMenuWrap.height() 205 }; 205 }, 206 $headerEnd = $( '.wp-header-end' ); 206 207 207 208 208 209 // when the menu is folded, make the fly-out submenu header clickable … … 396 397 /* 397 398 * The `.below-h2` class is here just for backward compatibility with plugins 398 399 * that are (incorrectly) using it. Do not use. Use `.inline` instead. See #34570. 400 * If '.wp-header-end' is found, append the notices after it otherwise 401 * after the first h1 or h2 heading found within the main content. 399 402 */ 400 $( 'div.updated, div.error, div.notice' ).not( '.inline, .below-h2' ).insertAfter( $( '.wrap h1, .wrap h2' ).first() ); 403 if ( ! $headerEnd.length ) { 404 $headerEnd = $( '.wrap h1, .wrap h2' ).first(); 405 } 406 $( 'div.updated, div.error, div.notice' ).not( '.inline, .below-h2' ).insertAfter( $headerEnd ); 401 407 402 408 // Make notices dismissible 403 409 function makeNoticesDismissible() { -
src/wp-includes/js/autosave.js
315 315 var content, post_title, excerpt, $notice, 316 316 postData = getSavedPostData(), 317 317 cookie = wpCookies.get( 'wp-saving-post' ), 318 $newerAutosaveNotice = $( '#has-newer-autosave' ).parent( '.notice' ); 318 $newerAutosaveNotice = $( '#has-newer-autosave' ).parent( '.notice' ), 319 $headerEnd = $( '.wp-header-end' ); 319 320 320 321 if ( cookie === post_id + '-saved' ) { 321 322 wpCookies.remove( 'wp-saving-post' ); … … 338 339 return; 339 340 } 340 341 342 /* 343 * If '.wp-header-end' is found, append the notices after it otherwise 344 * after the first h1 or h2 heading found within the main content. 345 */ 346 if ( ! $headerEnd.length ) { 347 $headerEnd = $( '.wrap h1, .wrap h2' ).first(); 348 } 349 341 350 $notice = $( '#local-storage-notice' ) 342 .insertAfter( $ ( '.wrap h1, .wrap h2' ).first())351 .insertAfter( $headerEnd ) 343 352 .addClass( 'notice-warning' ); 344 353 345 354 if ( $newerAutosaveNotice.length ) {