Make WordPress Core

Changeset 31610


Ignore:
Timestamp:
03/04/2015 07:44:22 PM (10 years ago)
Author:
helen
Message:

List tables: Display front and posts page indicators.

fixes #30190.

File:
1 edited

Legend:

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

    r31599 r31610  
    16781678        $post_states['sticky'] = __('Sticky');
    16791679
     1680    if ( get_option( 'page_on_front' ) == $post->ID ) {
     1681        $post_states['page_on_front'] = __( 'Front Page' );
     1682    }
     1683
     1684    if ( get_option( 'page_for_posts' ) == $post->ID ) {
     1685        $post_states['page_for_posts'] = __( 'Posts Page' );
     1686    }
     1687
    16801688    /**
    1681      * Filter the default post display states used in the Posts list table.
     1689     * Filter the default post display states used in the posts list table.
    16821690     *
    16831691     * @since 2.8.0
    16841692     *
    1685      * @param array $post_states An array of post display states. Values include 'Password protected',
    1686      *                           'Private', 'Draft', 'Pending', and 'Sticky'.
     1693     * @param array $post_states An array of post display states.
    16871694     * @param int   $post        The post ID.
    16881695     */
Note: See TracChangeset for help on using the changeset viewer.