Getting notices on version 1.3.7 for custom "Front page displays"
-
Iam getting 4 notices on startpage when having a custom “Front page displays” (Settings > Reading > Front page displays > Front page: > My startpage).
You probably do the is_front_page() to early.
In siteorigin-panels.php:152
/** * If this is the main query, store that we're accessing the front page * @param $wp_query */ function siteorigin_panels_render_home_page_prepare($wp_query) { if( $wp_query->is_main_query() ) $GLOBALS['siteorigin_panels_is_home'] = is_front_page(); } add_action('pre_get_posts', 'siteorigin_panels_render_home_page_prepare');
My hotfix but Iam not sure it will cover all cases.
/** * If this is the main query, store that we're accessing the front page * @param $wp_query */ function siteorigin_panels_render_home_page_prepare() { global $wp_query; if( $wp_query->is_main_query() ) $GLOBALS['siteorigin_panels_is_home'] = is_front_page(); } add_action('wp', 'siteorigin_panels_render_home_page_prepare');
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Getting notices on version 1.3.7 for custom "Front page displays"’ is closed to new replies.