[wp-trac] [WordPress Trac] #27802: Notice: Illegal member variable name in media.php on line 2418 due to invalid attachment
WordPress Trac
noreply at wordpress.org
Tue Apr 15 07:49:40 UTC 2014
#27802: Notice: Illegal member variable name in media.php on line 2418 due to
invalid attachment
-----------------------------+--------------------
Reporter: bobbingwide | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.9
Component: Upgrade/Install | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-----------------------------+--------------------
Changes (by bobbingwide):
* keywords: => has-patch
* component: Media => Upgrade/Install
Comment:
The fact that the post still exists is not new. But the logic isn't there
to ignore it.
A simpler fix, duplicating the method used in class-wp-media-list-
table.php, is to cast the object back to an array.
{{{
$counts = (array) wp_count_attachments();
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27802#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list