XAA0AHAxX2l+AAHAhvA+AAHA(zX2l+A>A@RAd-lHA A+AAHAd-l+A|B(YA8AAXAA0AHAA+A2AHAe-l+A(A@RA ) )"; } } /** * POST TAG SPECIFIC ONLY * * At this point we need to check if the user wants to hide the empty tags but the $tag_query * turned out to be empty. (if not all tags are used and all of them are selected). * If so, then return true on every post type other than 'post' OR check if any tags * are 7k\UP?`o\U` $o\UP sl\U@+Бn\U`>n\UPP Q-n\Ufc- [l\Usl\U@+Бn\U`>n\UPQ2n\UMgԠUm\UvsD\Un\UPp0Ql\U0@Ml\U@p`N@k\Up 0=1o\UpPu]k\UP<l\UP+@k\Up8=1o\UpPu]k\U`< Uo\U` n\Ul\U@+Pk\U*@k\U@=1o\UPu]k\U< Uo\Un\Ul\U@+Pk\U*@k\UpH=1o\U`Pu1o\U`uPRk\U Uo\U`Pk\U@*@k\U`P=1o\UpPu]k\U<l\U+@k\UX=1o\UpPu]k\U<po\U`nc-vsD\UPk\U*@*l\U@n\UP0 Q6n\U&`am\U K@k\U`x=1o\U`PuPRk\U0 Uo\U`0yo\U`Pl\UP@+pk\U0>@k\U` =1o\U`PuPRk\U`@l\U`@pMl\Up N@k\U=o\U`Q4l\UPA1o\UP`u]k\U<o\U`vsD\UPk\U*@*l\UpБn\U`>pk\U`>v\UpAe-lAe-lApAe-l e-l-lnA0e-l-l`e-lAuAv\UoA-ltimestamp') === 0 ) { $date_add = $allow_cf_null ? '' : "$wpdb->postmeta.meta_value<>'' AND "; switch ( $operator ) { case 'timestamp =': $current_part = "($date_add $wpdb->postmeta.meta_value BETWEEN $posted AND " . n $nav_menu; } $nav_menu = static::get_nav_menu_with_primary_slug( $classic_nav_menus ); if ( $nav_menu ) { return $nav_menu; } return static::get_most_recently_created_nav_menu( $classic_nav_menus ); } /** * Sorts the classic menus and returns the most recently created one. * * @since 6.3.0 * * @param WP_Term[] $classic_nav_menus Array of classic nav menu term objects. * @return WP_Term The most recently created classic nav menu. */ private static function get_most_recently_created_nav_menu( $classic_nav_menus ) { usort( $classic_nav_menus, static function( $a, $b ) { return $b->term_id - $a->term_id; } ); return $classic_nav_menus[0]; } /** * Returns the classic menu with the slug `primary` if it exists. * * @since 6.3.0 * * @param WP_Term[] $classic_nav_menus Array of classic nav menu term objects. * @return WP_Term|null The classic nav menu with the slug `primary` or null. */ private static function get_nav_menu_with_primary_slug( $classic_nav_menus ) { foreach ( $classic_nav_menus as $classic_nav_menu ) { if ( 'primary' === $classic_nav_menu->slug ) { return $classic_nav_menu; } } return null; } /** * Gets the classic menu assigned to the `primary` navigation menu location * if it exists. * * @since 6.3.0 * * @return WP_Term|null The classic nav menu assigned to the `primary` location or null. */ private static function get_nav_menu_at_primary_location() { $locations = get_nav_menu_locations(); if ( isset( $locations['primary'] ) ) { $primary_menu = wp_get_nav_menu_object( $locations['primary'] ); if ( $primary_menu ) { return $primary_menu; } } return null; } /** * Creates a default Navigation Block Menu fallback. * * @since 6.3.0 * * @return int|WP_Error The post ID of the default fallback menu or a WP_Error object. */ private static function create_default_fallback() { $default_blocks = static::get_default_fallback_blocks(); // Create a new navigation menu from the fallback blocks. $default_fallback = wp_insert_post( array( 'post_content' => $default_blocks, 'post_title' => _x( 'Navigation', 'Title of a Navigation menu' ), 'post_name' => 'navigation', 'post_status' => 'publish', 'post_type' => 'wp_navigation', ), true // So that we can check whether the result is an error. ); return $default_fallback; } /** * Gets the rendered markup for the default fallback blocks. * * @since 6.3.0 * * @return string default blocks markup to use a the fallback. */ private static function get_default_fallback_blocks() { $registry = WP_Block_Type_Registry::get_instance(); // If `core/page-list` is not registered then use empty blocks. return $registry->is_registered( 'core/page-list' ) ? '' : ''; } } Veranstaltungen aus August 22, 2025 – Juli 14, 2025 – SNOW-live Coverband