From 3bbd4cf9399480bcf5d74db934f42e4bcc3149a0 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 22 Apr 2013 21:07:42 +0000 Subject: [PATCH] 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 --- wp-admin/edit-form-advanced.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index 4a9ac7b2da..09e9706f7e 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -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') ) {