[wp-trac] [WordPress Trac] #34971: Embedding static front pages on multisite does not work
WordPress Trac
noreply at wordpress.org
Fri Dec 11 15:13:23 UTC 2015
#34971: Embedding static front pages on multisite does not work
--------------------------+------------------------------
Reporter: thomaslhotta | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Embeds | Version: 4.4
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by thomaslhotta):
I did some further testing of this. The front page has no endpoint as you
say, but adding ?embed=true does pass the required query var to
{{{WP_Query}}}. However it returns the blog archive page instead of the
front page. I tracked the problem down to line 2617 in {{{query.php}}}:
{{{#!php
if ( $this->is_home && ( empty($this->query) || $q['preview'] == 'true')
&& ( 'page' == get_option('show_on_front') ) &&
get_option('page_on_front') ) {
$this->is_page = true;
$this->is_home = false;
$q['page_id'] = get_option('page_on_front');
}
}}}
{{{empty($this->query)}}} prevents the front pages from being set as it
contains the embed query var. I tried commenting it out but there are also
other things going wrong further down the line.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34971#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list