Make WordPress Core

Changeset 35376


Ignore:
Timestamp:
10/23/2015 04:47:57 PM (11 years ago)
Author:
SergeyBiryukov
Message:

After [34891], rename new post type and taxonomy label keys to match the default strings.

See #32147.

Location:
trunk/src
Files:
4 edited

Legend:

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

    r34891 r35376  
    5656
    5757get_current_screen()->set_screen_reader_content( array(
    58         'heading_pagination' => $tax->labels->pagination,
    59         'heading_list'       => $tax->labels->list,
     58        'heading_pagination' => $tax->labels->items_list_navigation,
     59        'heading_list'       => $tax->labels->items_list,
    6060) );
    6161
  • trunk/src/wp-admin/edit.php

    r35357 r35376  
    250250
    251251get_current_screen()->set_screen_reader_content( array(
    252         'heading_views'      => $post_type_object->labels->views,
    253         'heading_pagination' => $post_type_object->labels->pagination,
    254         'heading_list'       => $post_type_object->labels->list,
     252        'heading_views'      => $post_type_object->labels->filter_items_list,
     253        'heading_pagination' => $post_type_object->labels->items_list_navigation,
     254        'heading_list'       => $post_type_object->labels->items_list,
    255255) );
    256256
  • trunk/src/wp-includes/post-functions.php

    r35240 r35376  
    13311331 * - use_featured_image - Default is Use as featured image.
    13321332 * - menu_name - Default is the same as `name`.
    1333  * - views - String for the table views hidden heading.
    1334  * - pagination - String for the table pagination hidden heading.
    1335  * - list - String for the table hidden heading.
     1333 * - filter_items_list - String for the table views hidden heading.
     1334 * - items_list_navigation - String for the table pagination hidden heading.
     1335 * - items_list - String for the table hidden heading.
    13361336 *
    13371337 * Above, the first default value is for non-hierarchical post types (like posts)
    … …  
    13681368                'remove_featured_image' => array( __( 'Remove featured image' ), __( 'Remove featured image' ) ),
    13691369                'use_featured_image' => array( __( 'Use as featured image' ), __( 'Use as featured image' ) ),
    1370                 'views' => array( __( 'Filter posts list' ), __( 'Filter pages list' ) ),
    1371                 'pagination' => array( __( 'Posts list navigation' ), __( 'Pages list navigation' ) ),
    1372                 'list' => array( __( 'Posts list' ), __( 'Pages list' ) ),
     1370                'filter_items_list' => array( __( 'Filter posts list' ), __( 'Filter pages list' ) ),
     1371                'items_list_navigation' => array( __( 'Posts list navigation' ), __( 'Pages list navigation' ) ),
     1372                'items_list' => array( __( 'Posts list' ), __( 'Pages list' ) ),
    13731373        );
    13741374        $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name'];
  • trunk/src/wp-includes/taxonomy-functions.php

    r35333 r35376  
    495495 * - not_found - Default is "No tags found"/"No categories found", used in the meta box and taxonomy list table.
    496496 * - no_terms - Default is "No tags"/"No categories", used in the posts and media list tables.
    497  * - pagination - String for the table pagination hidden heading.
    498  * - list - String for the table hidden heading.
     497 * - items_list_navigation - String for the table pagination hidden heading.
     498 * - items_list - String for the table hidden heading.
    499499 *
    500500 * Above, the first default value is for non-hierarchical taxonomies (like tags) and the second one is for hierarchical taxonomies (like categories).
    … …  
    535535                'not_found' => array( __( 'No tags found.' ), __( 'No categories found.' ) ),
    536536                'no_terms' => array( __( 'No tags' ), __( 'No categories' ) ),
    537                 'pagination' => array( __( 'Tags list navigation' ), __( 'Categories list navigation' ) ),
    538                 'list' => array( __( 'Tags list' ), __( 'Categories list' ) ),
     537                'items_list_navigation' => array( __( 'Tags list navigation' ), __( 'Categories list navigation' ) ),
     538                'items_list' => array( __( 'Tags list' ), __( 'Categories list' ) ),
    539539        );
    540540        $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name'];
Note: See TracChangeset for help on using the changeset viewer.