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: http://core.svn.wordpress.org/trunk@24063 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8ec637b13d
commit
874f650a39
|
@ -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') ) {
|
||||
|
|
Loading…
Reference in New Issue