We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1a45e2 commit 878bebbCopy full SHA for 878bebb
src/Validation/ScannableURLProvider.php
@@ -71,10 +71,12 @@ public function get_supportable_templates() {
71
'is_singular',
72
];
73
if ( 'page' === get_option( 'show_on_front' ) ) {
74
- if ( get_option( 'page_for_posts' ) && amp_is_post_supported( get_option( 'page_for_posts' ) ) ) {
+ $page_for_posts = get_option( 'page_for_posts' );
75
+ if ( $page_for_posts && amp_is_post_supported( $page_for_posts ) ) {
76
$allowed_templates[] = 'is_home';
77
}
- if ( get_option( 'page_on_front' ) && amp_is_post_supported( get_option( 'page_for_posts' ) ) ) {
78
+ $page_on_front = get_option( 'page_on_front' );
79
+ if ( $page_on_front && amp_is_post_supported( $page_on_front ) ) {
80
$allowed_templates[] = 'is_front_page';
81
82
0 commit comments