ȿ humiditydto p `#Wό temperatdtl(p CEp geoloc_LdtlPp fEEp geoloc_LdtlՓxp >Ep geoloc_Adtlջp X?s time_stadtlcp humiditydtlp `#Wό temperatdtl3q X?s time_stadtl@q humiditydtlԃhq `#Wό temperatdtlԫq X?s time_stadtlSq humiditydtl{q `#Wό temperatdtl#r >n pressuredtl0r X?s time_stadtlXr humiditydtlכr `#Wό temperatdtlCr X?s time_stadtlkr humiditydtlr `#Wό temperatdtl; s X?s time_stadtlHs humiditydtlps `#Wό temperatdtlֳs o?R battery_dtl[s X?s time_stadtls humiditydtl+t `#Wό temperatdtl8t X?s time_stadtl`t humiditydtlѣt `#Wό temperatdtlKt X?s time_stadtlst humiditydtl u `#Wό temperatdtl(u CEp geoloc_LdtlPu fEEp geoloc_LdtlГxu >Ep geoloc_Adtlлu X?s time_stadtlcu humiditydtlu `#Wό temperatdtl3v X?s time_stadtl@v humiditydtlӃhv `#Wό temperatdtlӫv X?s time_stadtlSv humiditydtl{v `#Wό temperatdtl#w >n pressuredtl0w X?s time_stadtlXw humiditydtlқw `#Wό temperatdtlCw X?s time_stadtlkw humiditydtlw `#Wό temperatdtl; x X?s time_stadtlHx humiditydtlpx `#Wό temperatdtlݳx o?R battery_dtl[x X?s time_stadtlx humiditydtl+y `#Wό temperatdtl8y X?s time_stadtl`y humiditydtlܣy `#Wό temperatdtlKy X?s time_stadtlsy humiditydtl z `#Wό temperatdtl(z CEp geoloc_LdtlPz fEEp geoloc_Ldtlߓxz >Ep geoloc_Adtlz X?s time_stadtlcz humiditydtlz `#Wό temperatdtl3{ X?s time_stadtl@{ humiditydtlރh{ `#Wό temperatdtlޫ{ X?s time_stadtlS{ humiditydtl{{ `#Wό temperatdtl#| >n pressuredtl0| X?s time_stadtlX| humiditydtlٛ| `#Wό temperatdtlC| X?s time_stadtlk| humiditydtl| `#Wό temperatdtl; } X?s time_stadtlH} humiditydtl؋p} `#Wό temperatdtlس} o?R battery_dtl[} X?s time_stadtl} humiditydtl+~ `#Wό temperatdtl8~ X?s time_stadtl`~ humiditydtlۣ~ `#Wό temperatdtlK~ X?s time_stadtls~ humiditydtl `#Wό temperatdtl( CEp geoloc_LdtlP fEEp geoloc_Ldtlړx >Ep geoloc_Adtlڻ X?s time_stadtlc rn plate` parameter. * * @param string $template_type The current template type. * @param string[] $template_hierarchy The current template hierarchy, ordered by priority. * @param string $fallback_template A PHP fallback template to use if no matching block template is found. * @return WP_Block_Template|null template A template object, or null if none could be found. */ function resolve_block_template( $template_type, $template_hierarchy, $fallback_template ) { if ( ! $template_type ) { return null; } if ( empty( $template_hierarchy ) ) { $template_hierarchy = array( $template_type ); } $slugs = array_map( '_strip_template_file_suffix', $template_hierarchy ); // Find all potential templates 'wp_template' post matching the hierarchy. $query = array( 'theme' => wp_get_theme()->get_stylesheet(), 'slug__in' => $slugs, ); $templates = get_block_templates( $query ); // Order these templates per slug priority. // Build map of template slugs to their priority in the current hierarchy. $slug_priorities = array_flip( $slugs ); usort( $templates, static function ( $template_a, $template_b ) use ( $slug_priorities ) { return $slug_priorities[ $template_a->slug ] - $slug_priorities[ $template_b->slug ]; } ); $theme_base_path = get_stylesheet_directory() . DIRECTORY_SEPARATOR; $parent_theme_base_path = get_template_directory() . DIRECTORY_SEPARATOR; // Is the active theme a child theme, and is the PHP fallback template part of it? if ( strpos( $fallback_template, $theme_base_path ) === 0 && strpos( $fallback_template, $parent_theme_base_path ) === false ) { $fallback_template_slug = substr( $fallback_template, // Starting position of slug. strpos( $fallback_template, $theme_base_path ) + strlen( $theme_base_path ), // Remove '.php' suffix. -4 ); // Is our candidate block template's slug identical to our PHP fallback template's? if ( count( $templates ) && $fallback_template_slug === $templates[0]->slug && 'theme' === $templates[0]->source ) { // Unfortunately, we cannot trust $templates[0]->theme, since it will always // be set to the active theme's slug by _build_block_template_result_from_file(), // even if the block template is really coming from the active theme's parent. // (The reason for this is that we want it to be associated with the active theme // -- not its parent -- once we edit it and store it to the DB as a wp_template CPT.) // Instead, we use _get_block_template_file() to locate the block template file. $template_file = _get_block_template_file( 'wp_template', $fallback_template_slug ); if ( $template_file && get_template() === $template_file['theme'] ) { // The block template is part of the parent theme, so we // have to give precedence to the child theme's PHP template. array_shift( $templates ); } } } return count( $templates ) ? $templates[0] : null; } /** * Displays title tag with content, regardless of whether theme has title-tag support. * * @access private * @since 5.8.0 * * @see _wp_render_title_tag() */ function _block_template_render_title_tag() { echo '