From 6813288d5962ea24bec0e1335ffcb81ea4fcd95a Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 29 Mar 2013 11:07:09 +0000 Subject: [PATCH] Remove duplicate array keys. props kovshenin. see #19570. git-svn-id: https://develop.svn.wordpress.org/trunk@23861 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index 2bf7b2b2a5..31c865978e 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -200,7 +200,7 @@ function edit_post( $post_data = null ) { update_post_meta( $post_ID, '_wp_format_url', wp_slash( esc_url_raw( wp_unslash( $post_data['_wp_format_url'] ) ) ) ); } - $format_keys = array( 'quote', 'quote_source', 'image', 'gallery', 'image', 'gallery', 'audio', 'video' ); + $format_keys = array( 'quote', 'quote_source', 'image', 'gallery', 'audio', 'video' ); foreach ( $format_keys as $key ) { if ( isset( $post_data[ '_wp_format_' . $key ] ) )