WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/03/2015 04:41:18 PM (6 years ago)
Author:
obenland
Message:

Use a less element-specific class name for links within page titles.

After [32974] these links are no longer within an h2, making the class name
inaccurate. add-new-h1 has the potential to expose the same problem for in a
possible future change.

Fixes #31650.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit.php

    r32974 r33067  
    287287echo esc_html( $post_type_object->labels->name );
    288288if ( 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>';
    290290if ( ! empty( $_REQUEST['s'] ) )
    291291    printf( ' <span class="subtitle">' . __('Search results for &#8220;%s&#8221;') . '</span>', get_search_query() );
Note: See TracChangeset for help on using the changeset viewer.