Ticket #31650: 31650.diff
File 31650.diff, 14.6 KB (added by , 8 years ago) |
---|
-
src/wp-admin/css/colors/_admin.scss
83 83 84 84 /* List tables */ 85 85 86 .wrap .add-new-h2:hover, 86 .wrap .add-new-h2:hover, /* Deprecated */ 87 .wrap .page-title-action:hover, 87 88 #add-new-comment a:hover, 88 89 .tablenav .tablenav-pages a:hover, 89 90 .tablenav .tablenav-pages a:focus { -
src/wp-admin/css/common.css
595 595 padding-left: 25px; 596 596 } 597 597 598 .wrap .add-new-h2, 599 .wrap .add-new-h2:active { 598 .wrap .add-new-h2, /* Deprecated */ 599 .wrap .add-new-h2:active, /* Deprecated */ 600 .wrap .page-title-action, 601 .wrap .page-title-action:active { 600 602 margin-left: 4px; 601 603 padding: 4px 8px; 602 604 position: relative; … … 611 613 font-size: 13px; 612 614 } 613 615 614 .wrap .add-new-h2:hover { 616 .wrap .add-new-h2:hover, /* Deprecated */ 617 .wrap .page-title-action:hover { 615 618 background: #00a0d2; 616 619 color: #fff; 617 620 } … … 3166 3169 display: none !important; 3167 3170 } 3168 3171 3169 .wrap .add-new-h2, .wrap .add-new-h2:active { 3172 .wrap .add-new-h2, /* Deprecated */ 3173 .wrap .add-new-h2:active, /* Deprecated */ 3174 .wrap .page-title-action, 3175 .wrap .page-title-action:active { 3170 3176 padding: 10px 15px; 3171 3177 font-size: 14px; 3172 3178 white-space: nowrap; -
src/wp-admin/edit-form-advanced.php
417 417 <h1><?php 418 418 echo esc_html( $title ); 419 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>';420 echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="page-title-action">' . esc_html( $post_type_object->labels->add_new ) . '</a>'; 421 421 ?></h1> 422 422 <?php if ( $notice ) : ?> 423 423 <div id="notice" class="notice notice-warning"><p id="has-newer-autosave"><?php echo $notice ?></p></div> -
src/wp-admin/edit-link-form.php
70 70 ?> 71 71 72 72 <div class="wrap"> 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>73 <h1><?php echo esc_html( $title ); ?> <a href="link-add.php" class="page-title-action"><?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> -
src/wp-admin/edit.php
286 286 <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 echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class=" add-new-h2">' . esc_html( $post_type_object->labels->add_new ) . '</a>';289 echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="page-title-action">' . 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 292 ?></h1> -
src/wp-admin/link-manager.php
69 69 ?> 70 70 71 71 <div class="wrap nosubsub"> 72 <h1><?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="page-title-action"><?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 75 </h1> -
src/wp-admin/media.php
107 107 <?php 108 108 echo esc_html( $title ); 109 109 if ( current_user_can( 'upload_files' ) ) { ?> 110 <a href="media-new.php" class=" add-new-h2"><?php echo esc_html_x('Add New', 'file'); ?></a>110 <a href="media-new.php" class="page-title-action"><?php echo esc_html_x('Add New', 'file'); ?></a> 111 111 <?php } ?> 112 112 </h1> 113 113 -
src/wp-admin/nav-menus.php
566 566 <?php 567 567 if ( current_user_can( 'customize' ) ) { 568 568 printf( 569 ' <a class=" add-new-h2hide-if-no-customize" href="%1$s">%2$s</a>',569 ' <a class="page-title-action hide-if-no-customize" href="%1$s">%2$s</a>', 570 570 esc_url( add_query_arg( 571 571 array( 572 572 array( 'autofocus' => array( 'panel' => 'nav_menus' ) ), -
src/wp-admin/network/sites.php
251 251 <h1><?php _e( 'Sites' ); ?> 252 252 253 253 <?php if ( current_user_can( 'create_sites') ) : ?> 254 <a href="<?php echo network_admin_url('site-new.php'); ?>" class=" add-new-h2"><?php echo esc_html_x( 'Add New', 'site' ); ?></a>254 <a href="<?php echo network_admin_url('site-new.php'); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'site' ); ?></a> 255 255 <?php endif; ?> 256 256 257 257 <?php if ( isset( $_REQUEST['s'] ) && $_REQUEST['s'] ) { -
src/wp-admin/network/themes.php
261 261 ?> 262 262 263 263 <div class="wrap"> 264 <h1><?php echo esc_html( $title ); if ( current_user_can('install_themes') ) { ?> <a href="theme-install.php" class=" add-new-h2"><?php echo esc_html_x('Add New', 'theme'); ?></a><?php }264 <h1><?php echo esc_html( $title ); if ( current_user_can('install_themes') ) { ?> <a href="theme-install.php" class="page-title-action"><?php echo esc_html_x('Add New', 'theme'); ?></a><?php } 265 265 if ( $s ) 266 266 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', esc_html( $s ) ); ?> 267 267 </h1> -
src/wp-admin/network/users.php
311 311 <div class="wrap"> 312 312 <h1><?php esc_html_e( 'Users' ); 313 313 if ( current_user_can( 'create_users') ) : ?> 314 <a href="<?php echo network_admin_url('user-new.php'); ?>" class=" add-new-h2"><?php echo esc_html_x( 'Add New', 'user' ); ?></a><?php314 <a href="<?php echo network_admin_url('user-new.php'); ?>" class="page-title-action"><?php echo esc_html_x( 'Add New', 'user' ); ?></a><?php 315 315 endif; 316 316 317 317 if ( !empty( $usersearch ) ) -
src/wp-admin/plugin-install.php
105 105 $href = self_admin_url( 'plugin-install.php?tab=upload' ); 106 106 $text = __( 'Upload Plugin' ); 107 107 } 108 echo ' <a href="' . $href . '" class="upload add-new-h2">' . $text . '</a>';108 echo ' <a href="' . $href . '" class="upload page-title-action">' . $text . '</a>'; 109 109 } 110 110 ?> 111 111 </h1> -
src/wp-admin/plugins.php
448 448 <div class="wrap"> 449 449 <h1><?php echo esc_html( $title ); 450 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>451 <a href="<?php echo self_admin_url( 'plugin-install.php' ); ?>" class="page-title-action"><?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 ) ); ?> -
src/wp-admin/theme-install.php
117 117 */ 118 118 $tabs = apply_filters( 'install_themes_tabs', array( 'upload' => __( 'Upload Theme' ) ) ); 119 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>';120 echo ' <a href="#" class="upload page-title-action">' . __( 'Upload Theme' ) . '</a>'; 121 echo ' <a href="#" class="browse-themes page-title-action">' . _x( 'Browse', 'themes' ) . '</a>'; 122 122 } 123 123 ?></h1> 124 124 -
src/wp-admin/themes.php
127 127 <h1><?php esc_html_e( 'Themes' ); ?> 128 128 <span class="title-count theme-count"><?php echo count( $themes ); ?></span> 129 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>130 <a href="<?php echo admin_url( 'theme-install.php' ); ?>" class="hide-if-no-js page-title-action"><?php echo esc_html_x( 'Add New', 'Add new theme' ); ?></a> 131 131 <?php endif; ?> 132 132 </h1> 133 133 <?php -
src/wp-admin/upload.php
75 75 <?php 76 76 echo esc_html( $title ); 77 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><?php78 <a href="media-new.php" class="page-title-action"><?php echo esc_html_x( 'Add New', 'file' ); ?></a><?php 79 79 } 80 80 ?> 81 81 </h1> … … 210 210 <?php 211 211 echo esc_html( $title ); 212 212 if ( current_user_can( 'upload_files' ) ) { ?> 213 <a href="media-new.php" class=" add-new-h2"><?php echo esc_html_x('Add New', 'file'); ?></a><?php213 <a href="media-new.php" class="page-title-action"><?php echo esc_html_x('Add New', 'file'); ?></a><?php 214 214 } 215 215 if ( ! empty( $_REQUEST['s'] ) ) 216 216 printf( '<span class="subtitle">' . __('Search results for “%s”') . '</span>', get_search_query() ); ?> -
src/wp-admin/user-edit.php
207 207 echo esc_html( $title ); 208 208 if ( ! IS_PROFILE_PAGE ) { 209 209 if ( current_user_can( 'create_users' ) ) { ?> 210 <a href="user-new.php" class=" add-new-h2"><?php echo esc_html_x( 'Add New', 'user' ); ?></a>210 <a href="user-new.php" class="page-title-action"><?php echo esc_html_x( 'Add New', 'user' ); ?></a> 211 211 <?php } elseif ( is_multisite() && current_user_can( 'promote_users' ) ) { ?> 212 <a href="user-new.php" class=" add-new-h2"><?php echo esc_html_x( 'Add Existing', 'user' ); ?></a>212 <a href="user-new.php" class="page-title-action"><?php echo esc_html_x( 'Add Existing', 'user' ); ?></a> 213 213 <?php } 214 214 } ?> 215 215 </h1> -
src/wp-admin/users.php
447 447 <?php 448 448 echo esc_html( $title ); 449 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>450 <a href="user-new.php" class="page-title-action"><?php echo esc_html_x( 'Add New', 'user' ); ?></a> 451 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>452 <a href="user-new.php" class="page-title-action"><?php echo esc_html_x( 'Add Existing', 'user' ); ?></a> 453 453 <?php } 454 454 455 455 if ( $usersearch ) -
src/wp-admin/widgets.php
320 320 echo esc_html( $title ); 321 321 if ( current_user_can( 'customize' ) ) { 322 322 printf( 323 ' <a class=" add-new-h2hide-if-no-customize" href="%1$s">%2$s</a>',323 ' <a class="page-title-action hide-if-no-customize" href="%1$s">%2$s</a>', 324 324 esc_url( add_query_arg( 325 325 array( 326 326 array( 'autofocus' => array( 'panel' => 'widgets' ) ), -
src/wp-includes/js/media/views/frame/manage.js
41 41 this.$window = $( window ); 42 42 this.$adminBar = $( '#wpadminbar' ); 43 43 this.$window.on( 'scroll resize', _.debounce( _.bind( this.fixPosition, this ), 15 ) ); 44 $( document ).on( 'click', '. add-new-h2', _.bind( this.addNewClickHandler, this ) );44 $( document ).on( 'click', '.page-title-action', _.bind( this.addNewClickHandler, this ) ); 45 45 46 46 // Ensure core and media grid view UI is enabled. 47 47 this.$el.addClass('wp-core-ui'); -
src/wp-includes/js/media-grid.js
663 663 this.$window = $( window ); 664 664 this.$adminBar = $( '#wpadminbar' ); 665 665 this.$window.on( 'scroll resize', _.debounce( _.bind( this.fixPosition, this ), 15 ) ); 666 $( document ).on( 'click', '. add-new-h2', _.bind( this.addNewClickHandler, this ) );666 $( document ).on( 'click', '.page-title-action', _.bind( this.addNewClickHandler, this ) ); 667 667 668 668 // Ensure core and media grid view UI is enabled. 669 669 this.$el.addClass('wp-core-ui');