Ticket #26601: 26601.11.diff
| File 26601.11.diff, 4.9 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 } 582 583 .wp-header-end { 584 visibility: hidden; 585 margin: -2px 0 0; 586 } 587 579 588 .subtitle { 580 589 margin: 0; 581 590 padding-left: 25px; … … 589 598 .wrap .add-new-h2:active, /* deprecated */ 590 599 .wrap .page-title-action, 591 600 .wrap .page-title-action:active { 592 margin-left: 4px; 601 display: inline-block; 602 margin-left: 5px; 593 603 padding: 4px 8px; 594 604 position: relative; 595 605 top: -3px; -
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
299 299 require_once( ABSPATH . 'wp-admin/admin-header.php' ); 300 300 ?> 301 301 <div class="wrap"> 302 <h1 ><?php302 <h1 class="wp-heading-inline"><?php 303 303 echo esc_html( $post_type_object->labels->name ); 304 if ( current_user_can( $post_type_object->cap->create_posts ) ) 304 ?></h1> 305 306 <?php 307 if ( current_user_can( $post_type_object->cap->create_posts ) ) { 305 308 echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="page-title-action">' . esc_html( $post_type_object->labels->add_new ) . '</a>'; 309 } 306 310 307 311 if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) { 308 312 /* translators: %s: search keywords */ 309 313 printf( ' <span class="subtitle">' . __( 'Search results for “%s”' ) . '</span>', get_search_query() ); 310 314 } 311 ?> </h1>315 ?> 312 316 317 <hr class="wp-header-end"> 318 313 319 <?php 314 320 // If we have a bulk message to issue: 315 321 $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 ) {