From 3739c3a14e570499c1cd6c5e29463a7a4fc7a079 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 29 Mar 2013 17:33:35 +0000 Subject: [PATCH] Fix incorrect script handle and a notice. props ocean90. fixes #23896. git-svn-id: https://develop.svn.wordpress.org/trunk@23868 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/edit-form-advanced.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index c2a777ed13..52381b7507 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -138,9 +138,8 @@ if ( post_type_supports( $post_type, 'post-formats' ) ) { $post_format = 'standard'; $format_class = " class='wp-format-{$post_format}'"; -} -if ( post_type_supports( $post_type, 'post-formats' ) ) { + $all_post_formats = array( 'standard' => array ( 'description' => __( 'Add a title and use the editor to compose your post.' ) @@ -186,10 +185,10 @@ if ( post_type_supports( $post_type, 'post-formats' ) ) { $post_format_options .= '
'; } -} -$current_post_format = array( 'currentPostFormat' => esc_html( $active_post_type_slug ) ); -wp_localize_script( 'post', 'postFormats', $current_post_format ); + $current_post_format = array( 'currentPostFormat' => esc_html( $active_post_type_slug ) ); + wp_localize_script( 'post-formats', 'postFormats', $current_post_format ); +} if ( post_type_supports($post_type, 'page-attributes') ) add_meta_box('pageparentdiv', 'page' == $post_type ? __('Page Attributes') : __('Attributes'), 'page_attributes_meta_box', null, 'side', 'core');