[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
Thu Dec 17 09:33:03 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: assigned
Priority: normal | Milestone: 4.4.1
Component: Bootstrap/Load | Version: 4.4
Severity: normal | Resolution:
Keywords: has-patch commit | Focuses:
------------------------------+-------------------------
Comment (by SergeyBiryukov):
Replying to [comment:8 swissspidy]:
> Since this is a rather small change, we can manually add them when
committing. I'd probably do it like this:
>
> {{{#!php
>
> if ($wp_query->post instanceof WP_Post ) ) {
> $p = clone $wp_query->post;
> }
> }}}
+1, would be consistent with [31188].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35013#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list