[wp-trac] [WordPress Trac] #38686: Incorrect fallback value for label_count when registering a custom post status

WordPress Trac noreply at wordpress.org
Fri Nov 11 20:40:12 UTC 2016


#38686: Incorrect fallback value for label_count when registering a custom post
status
--------------------------------------+------------------------------
 Reporter:  johnbillion               |       Owner:
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Posts, Post Types         |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  good-first-bug has-patch  |     Focuses:  administration
--------------------------------------+------------------------------

Comment (by xrmx):

 The test is failing with this error, any hint would be helpful:

 1) Tests_Admin_includesListTable::test_label_count_fallback_no_notices
 Undefined property: stdClass::$trash

 /srv/www/wordpress-develop/src/wp-admin/includes/class-wp-posts-list-
 table.php:283
 /srv/www/wordpress-develop/src/wp-admin/includes/class-wp-list-
 table.php:240
 /srv/www/wordpress-
 develop/tests/phpunit/tests/admin/includesListTable.php:259

 ERRORS!
 Tests: 10, Assertions: 26, Errors: 1.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38686#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list