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.

git-svn-id: https://develop.svn.wordpress.org/trunk@24063 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2013-04-22 21:07:42 +00:00
parent e3eda04c70
commit 3bbd4cf939
1 changed files with 2 additions and 2 deletions

View File

@ -130,7 +130,7 @@ foreach ( get_object_taxonomies( $post ) as $tax_name ) {
$format_class = '';
$post_format_set_class = '';
$post_format_options = '';
if ( post_type_supports( $post_type, 'post-formats' ) && apply_filters( 'show_post_format_ui', true, $post ) ) {
if ( post_type_supports( $post_type, 'post-formats' ) && apply_filters( 'enable_post_format_ui', true, $post ) ) {
wp_enqueue_script( 'post-formats' );
wp_enqueue_script( 'wp-mediaelement' );
wp_enqueue_style( 'wp-mediaelement' );
@ -450,7 +450,7 @@ if ( has_action( 'edit_form_after_title' ) ) {
}
// post format fields
if ( post_type_supports( $post_type, 'post-formats' ) && apply_filters( 'show_post_format_ui', true, $post ) )
if ( post_type_supports( $post_type, 'post-formats' ) && apply_filters( 'enable_post_format_ui', true, $post ) )
require_once( './includes/post-formats.php' );
if ( post_type_supports($post_type, 'editor') ) {