Ticket #43515: 43515.1.patch
File 43515.1.patch, 1.0 KB (added by , 2 years ago) |
---|
-
src/wp-content/themes/twentyseventeen/inc/customizer.php
144 144 'section' => 'theme_options', 145 145 'type' => 'dropdown-pages', 146 146 'allow_addition' => true, 147 'active_callback' => 'twentyseventeen_is_ static_front_page',147 'active_callback' => 'twentyseventeen_is_frontpage', 148 148 ) 149 149 ); 150 150 … … 221 221 222 222 /** 223 223 * Return whether we're previewing the front page and it's a static page. 224 * 225 * This function is an alias for twentyseventeen_is_frontpage(). 226 * 227 * @since Twenty Seventeen 1.0 228 * @since Twenty Seventeen 3.3 Converted function to an alias. 229 * 230 * @return bool Whether the current page is the front page and static. 224 231 */ 225 232 function twentyseventeen_is_static_front_page() { 226 return ( is_front_page() && ! is_home());233 return twentyseventeen_is_frontpage(); 227 234 } 228 235 229 236 /**