mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-22 06:29:30 +00:00
Fix notice in get_media_items().
git-svn-id: http://svn.automattic.com/wordpress/trunk@14059 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e0eea8e857
commit
0de035558e
@ -1120,6 +1120,7 @@ function get_attachment_fields_to_edit($post, $errors = null) {
|
||||
* @return string
|
||||
*/
|
||||
function get_media_items( $post_id, $errors ) {
|
||||
$attachments = array();
|
||||
if ( $post_id ) {
|
||||
$post = get_post($post_id);
|
||||
if ( $post && $post->post_type == 'attachment' )
|
||||
|
Loading…
x
Reference in New Issue
Block a user