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:
parent
e3eda04c70
commit
3bbd4cf939
@ -130,7 +130,7 @@ foreach ( get_object_taxonomies( $post ) as $tax_name ) {
|
|||||||
$format_class = '';
|
$format_class = '';
|
||||||
$post_format_set_class = '';
|
$post_format_set_class = '';
|
||||||
$post_format_options = '';
|
$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( 'post-formats' );
|
||||||
wp_enqueue_script( 'wp-mediaelement' );
|
wp_enqueue_script( 'wp-mediaelement' );
|
||||||
wp_enqueue_style( 'wp-mediaelement' );
|
wp_enqueue_style( 'wp-mediaelement' );
|
||||||
@ -450,7 +450,7 @@ if ( has_action( 'edit_form_after_title' ) ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// post format fields
|
// 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' );
|
require_once( './includes/post-formats.php' );
|
||||||
|
|
||||||
if ( post_type_supports($post_type, 'editor') ) {
|
if ( post_type_supports($post_type, 'editor') ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user