WordPress.org

Make WordPress Core

Changeset 24063


Ignore:
Timestamp:
04/22/13 21:07:42 (12 months ago)
Author:
nacin
Message:

Rename the show_post_format_ui filter to enable_post_format_ui. 'show' is a different concept - this filter entirely disables the UI. see #23929.

File:
1 edited

Legend:

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

    r24034 r24063  
    131131$post_format_set_class = ''; 
    132132$post_format_options = ''; 
    133 if ( post_type_supports( $post_type, 'post-formats' ) && apply_filters( 'show_post_format_ui', true, $post ) ) { 
     133if ( post_type_supports( $post_type, 'post-formats' ) && apply_filters( 'enable_post_format_ui', true, $post ) ) { 
    134134    wp_enqueue_script( 'post-formats' ); 
    135135    wp_enqueue_script( 'wp-mediaelement' ); 
     
    451451 
    452452// post format fields 
    453 if ( post_type_supports( $post_type, 'post-formats' ) && apply_filters( 'show_post_format_ui', true, $post ) ) 
     453if ( post_type_supports( $post_type, 'post-formats' ) && apply_filters( 'enable_post_format_ui', true, $post ) ) 
    454454    require_once( './includes/post-formats.php' ); 
    455455 
Note: See TracChangeset for help on using the changeset viewer.