[wp-trac] [WordPress Trac] #45192: WP_DEBUG notice when classic editor is forced and static methods used causes fatal errors.

WordPress Trac noreply at wordpress.org
Fri Oct 26 08:10:22 UTC 2018


#45192: WP_DEBUG notice when classic editor is forced and static methods used
causes fatal errors.
--------------------------+-----------------------------
 Reporter:  claudiulodro  |       Owner:  pento
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  5.0
Component:  Editor        |     Version:  5.0
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:  administration
--------------------------+-----------------------------
Changes (by pento):

 * owner:  (none) => pento
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"43830" 43830]:
 {{{
 #!CommitTicketReference repository="" revision="43830"
 Meta Boxes: Fix error when a meta box is rendered with a static method
 callback.

 When `WP_DEBUG` is set, ensure that a static method callback is passed to
 `ReflectionMethod`, instead of `ReflectionFunction`.

 Props DrewAPicture.
 Fixes #45192.
 }}}

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


More information about the wp-trac mailing list