Don't display Standard post format twice in the meta box if the theme unnecessarily mentions it in the add_theme_support() call.
props ptahdunbar, nacin, pushplaybang, obenland. fixes #16555. Built from https://develop.svn.wordpress.org/trunk@30038 git-svn-id: http://core.svn.wordpress.org/trunk@30038 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9f379e6b6c
commit
ed4a827365
|
@ -1472,8 +1472,12 @@ function add_theme_support( $feature ) {
|
||||||
|
|
||||||
switch ( $feature ) {
|
switch ( $feature ) {
|
||||||
case 'post-formats' :
|
case 'post-formats' :
|
||||||
if ( is_array( $args[0] ) )
|
if ( is_array( $args[0] ) ) {
|
||||||
$args[0] = array_intersect( $args[0], array_keys( get_post_format_slugs() ) );
|
$post_formats = get_post_format_slugs();
|
||||||
|
unset( $post_formats['standard'] );
|
||||||
|
|
||||||
|
$args[0] = array_intersect( $args[0], array_keys( $post_formats ) );
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'html5' :
|
case 'html5' :
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.1-alpha-30037';
|
$wp_version = '4.1-alpha-30038';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue