Make WordPress Core

Ticket #36155: 36155.patch

File 36155.patch, 991 bytes (added by sebastian.pisula, 9 years ago)
  • wp-admin/edit.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    304304if ( current_user_can( $post_type_object->cap->create_posts ) )
    305305        echo ' <a href="' . esc_url( admin_url( $post_new_file ) ) . '" class="page-title-action">' . esc_html( $post_type_object->labels->add_new ) . '</a>';
    306306
     307if ( have_posts() && $archive_url = get_post_type_archive_link($post_type) )
     308        echo ' <a href="' . esc_url( $archive_url ) . '" class="page-title-action">' . esc_html( $post_type_object->labels->archives ) . '</a>';
     309
     310
    307311if ( isset( $_REQUEST['s'] ) && strlen( $_REQUEST['s'] ) ) {
    308312        /* translators: %s: search keywords */
    309313        printf( ' <span class="subtitle">' . __( 'Search results for &#8220;%s&#8221;' ) . '</span>', get_search_query() );