[wp-trac] [WordPress Trac] #35013: WP4.4 function handle_404 yelds a fatal error on line 613 when trying to clone $wp_query->post if it's not an object

WordPress Trac noreply at wordpress.org
Wed Dec 23 01:41:26 UTC 2015


#35013: WP4.4 function handle_404 yelds a fatal error on line 613 when trying to
clone $wp_query->post if it's not an object
------------------------------------------+-------------------------
 Reporter:  jdmweb                        |       Owner:  swissspidy
     Type:  defect (bug)                  |      Status:  closed
 Priority:  normal                        |   Milestone:  4.4.1
Component:  Bootstrap/Load                |     Version:  4.4
 Severity:  normal                        |  Resolution:  fixed
 Keywords:  has-patch commit fixed-major  |     Focuses:
------------------------------------------+-------------------------
Changes (by dd32):

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


Comment:

 In [changeset:"36064"]:
 {{{
 #!CommitTicketReference repository="" revision="36064"
 In `WP::handle_404()`, make sure `$wp_query->post` is a `WP_Post` object
 before cloning it.

 Merges [35994] to the 4.4 branch.
 Props igmoweb, swissspidy.
 Fixes #35013.
 }}}

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


More information about the wp-trac mailing list