[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 Dec 14 05:54:38 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 fixed-5.0  |     Focuses:  administration
---------------------------------+-----------------------------
Changes (by pento):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"44170" 44170]:
 {{{
 #!CommitTicketReference repository="" revision="44170"
 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`.

 Merges [43830] from the 5.0 branch to trunk.

 Props DrewAPicture.
 Fixes #45192.
 }}}

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


More information about the wp-trac mailing list