[wp-trac] [WordPress Trac] #27439: Warning on WP Media List Table when Custom Post Type No Longer Active

WordPress Trac noreply at wordpress.org
Wed Mar 19 14:24:58 UTC 2014


#27439: Warning on WP Media List Table when Custom Post Type No Longer Active
------------------------------------+-----------------------------
 Reporter:  wpsmith                 |       Owner:  SergeyBiryukov
     Type:  defect (bug)            |      Status:  closed
 Priority:  normal                  |   Milestone:  3.9
Component:  Media                   |     Version:  3.7
 Severity:  normal                  |  Resolution:  fixed
 Keywords:  has-patch dev-feedback  |     Focuses:  administration
------------------------------------+-----------------------------

Comment (by afercia):

 sorry Sergey, maybe I'm in a dumb moment but I still can see those PHP
 notices.. please check attached screenshot, where you can see I'm testing
 on trunk 27615.

 Just checking capabilities.php on line 1112, seems to me that $post_type
 at that point is NULL, and that's (and following lines) the reason for the
 notices.

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


More information about the wp-trac mailing list