Make WordPress Core


Ignore:
Timestamp:
05/31/2015 04:53:12 PM (9 years ago)
Author:
johnbillion
Message:

Introduce featured_image, set_featured_image, remove_featured_image, and use_featured_image post type labels when registering a post type in order to override the 'Featured Image' text and its related phrases.

Props johnbillion, mordauk, valendesigns.
Fixes #19257.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r32647 r32673  
    16251625 *                       ones the default is 'Parent Page:'.
    16261626 * - all_items - String for the submenu. Default is All Posts/All Pages.
     1627 * - featured_image - Default is Featured Image.
     1628 * - set_featured_image - Default is Set featured image.
     1629 * - remove_featured_image - Default is Remove featured image.
     1630 * - use_featured_image - Default is Use as featured image.
    16271631 * - menu_name - Default is the same as `name`.
    16281632 *
     
    16311635 *
    16321636 * @since 3.0.0
     1637 * @since 4.3.0 Added the `featured_image`, `set_featured_image`, `remove_featured_image`, and `use_featured_image` labels.
    16331638 * @access private
    16341639 *
     
    16491654        'not_found_in_trash' => array( __('No posts found in Trash.'), __('No pages found in Trash.') ),
    16501655        'parent_item_colon' => array( null, __('Parent Page:') ),
    1651         'all_items' => array( __( 'All Posts' ), __( 'All Pages' ) )
     1656        'all_items' => array( __( 'All Posts' ), __( 'All Pages' ) ),
     1657        'featured_image' => array( __( 'Featured Image' ), __( 'Featured Image' ) ),
     1658        'set_featured_image' => array( __( 'Set featured image' ), __( 'Set featured image' ) ),
     1659        'remove_featured_image' => array( __( 'Remove featured image' ), __( 'Remove featured image' ) ),
     1660        'use_featured_image' => array( __( 'Use as featured image' ), __( 'Use as featured image' ) ),
    16521661    );
    16531662    $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name'];
Note: See TracChangeset for help on using the changeset viewer.