ld match the default ones and * affect the generated CSS. */ if ( isset( $old['settings']['typography']['fontSizes'] ) ) { $new['settings']['typography']['defaultFontSizes'] = false; } /* * Similarly to defaultFontSizes, we need to migrate defaultSpacingSizes * as it controls the PRESETS_METADATA prevent_override which was * previously hardcoded to false. This only needs to happen when the * theme provided spacing sizes via spacingSizes or spacingScale. */ if ( isset( $old['settings']['spacing']['spacingSizes'] ) || isset( $old['settings']['spacing']['spacingScale'] ) ) { $new['settings']['spacing']['defaultSpacingSizes'] = false; } /* * In v3 spacingSizes is merged with the generated spacingScale sizes * instead of completely replacing them. The v3 behavior is what was * documented for the v2 schema, but the code never actually did work * that way. Instead of surprising users with a behavior change two * years after the fact at the same time as a v3 update is introduced, * we'll continue using the "bugged" behavior for v2 themes. And treat * the "bug fix" as a breaking change for v3. */ if ( isset( $old['settings']['spacing']['spacingSizes'] ) ) { unset( $new['settings']['spacing']['spacingScale'] ); } return $new; } /** * Processes the settings subtree. * * @since 5.9.0 * * @param array $settings Array to process. * @param array $paths_to_rename Paths to rename. * * @return array The settings in the new format. */ private static function rename_paths( $settings, $paths_to_rename ) { $new_settings = $settings; // Process any renamed/moved paths within default settings. self::rename_settings( $new_settings, $paths_to_rename ); // Process individual block settings. if ( isset( $new_settings['blocks'] ) && is_array( $new_settings['blocks'] ) ) { foreach ( $new_settings['blocks'] as &$block_settings ) { self::rename_settings( $block_settings, $paths_to_rename ); } } return $new_settings; } /** * Processes a settings array, renaming or moving properties. * * @since 5.9.0 * * @param array $settings Reference to settings either defaults or an individual block's. * @param array $paths_to_rename Paths to rename. */ private static function rename_settings( &$settings, $paths_to_rename ) { foreach ( $paths_to_rename as $original => $renamed ) { $original_path = explode( '.', $original ); $renamed_path = explode( '.', $renamed ); $current_value = _wp_array_get( $settings, $original_path, null ); if ( null !== $current_value ) { _wp_array_set( $settings, $renamed_path, $current_value ); self::unset_setting_by_path( $settings, $original_path ); } } } /** * Removes a property from within the provided settings by its path. * * @since 5.9.0 * * @param array $settings Reference to the current settings array. * @param array $path Path to the property to be removed. */ private static function unset_setting_by_path( &$settings, $path ) { $tmp_settings = &$settings; $last_key = array_pop( $path ); foreach ( $path as $key ) { $tmp_settings = &$tmp_settings[ $key ]; } unset( $tmp_settings[ $last_key ] ); } } {"id":437,"count":1,"description":"","link":"https:\/\/justeinfos.net\/tag\/village-de-akroaba-de-grand-bassam\/","name":"Village de Akroaba de Grand-Bassam","slug":"village-de-akroaba-de-grand-bassam","taxonomy":"post_tag","meta":[],"yoast_head":"\nVillage de Akroaba de Grand-Bassam Archives - JusteInfos- Information g\u00e9n\u00e9rale<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/justeinfos.net\/tag\/village-de-akroaba-de-grand-bassam\/\" \/>\n<meta property=\"og:locale\" content=\"fr_FR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Village de Akroaba de Grand-Bassam Archives - JusteInfos- Information g\u00e9n\u00e9rale\" \/>\n<meta property=\"og:url\" content=\"https:\/\/justeinfos.net\/tag\/village-de-akroaba-de-grand-bassam\/\" \/>\n<meta property=\"og:site_name\" content=\"JusteInfos- Information g\u00e9n\u00e9rale\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"CollectionPage\",\"@id\":\"https:\/\/justeinfos.net\/tag\/village-de-akroaba-de-grand-bassam\/\",\"url\":\"https:\/\/justeinfos.net\/tag\/village-de-akroaba-de-grand-bassam\/\",\"name\":\"Village de Akroaba de Grand-Bassam Archives - JusteInfos- Information g\u00e9n\u00e9rale\",\"isPartOf\":{\"@id\":\"https:\/\/justeinfos.net\/#website\"},\"breadcrumb\":{\"@id\":\"https:\/\/justeinfos.net\/tag\/village-de-akroaba-de-grand-bassam\/#breadcrumb\"},\"inLanguage\":\"fr-FR\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/justeinfos.net\/tag\/village-de-akroaba-de-grand-bassam\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/justeinfos.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Village de Akroaba de Grand-Bassam\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/justeinfos.net\/#website\",\"url\":\"https:\/\/justeinfos.net\/\",\"name\":\"JusteInfos- Information g\u00e9n\u00e9rale\",\"description\":\"L'Information-Juste M\u00e9sur\u00e9e ett Sans Passion\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/justeinfos.net\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fr-FR\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Village de Akroaba de Grand-Bassam Archives - JusteInfos- Information g\u00e9n\u00e9rale","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/justeinfos.net\/tag\/village-de-akroaba-de-grand-bassam\/","og_locale":"fr_FR","og_type":"article","og_title":"Village de Akroaba de Grand-Bassam Archives - JusteInfos- Information g\u00e9n\u00e9rale","og_url":"https:\/\/justeinfos.net\/tag\/village-de-akroaba-de-grand-bassam\/","og_site_name":"JusteInfos- Information g\u00e9n\u00e9rale","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"CollectionPage","@id":"https:\/\/justeinfos.net\/tag\/village-de-akroaba-de-grand-bassam\/","url":"https:\/\/justeinfos.net\/tag\/village-de-akroaba-de-grand-bassam\/","name":"Village de Akroaba de Grand-Bassam Archives - JusteInfos- Information g\u00e9n\u00e9rale","isPartOf":{"@id":"https:\/\/justeinfos.net\/#website"},"breadcrumb":{"@id":"https:\/\/justeinfos.net\/tag\/village-de-akroaba-de-grand-bassam\/#breadcrumb"},"inLanguage":"fr-FR"},{"@type":"BreadcrumbList","@id":"https:\/\/justeinfos.net\/tag\/village-de-akroaba-de-grand-bassam\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/justeinfos.net\/"},{"@type":"ListItem","position":2,"name":"Village de Akroaba de Grand-Bassam"}]},{"@type":"WebSite","@id":"https:\/\/justeinfos.net\/#website","url":"https:\/\/justeinfos.net\/","name":"JusteInfos- Information g\u00e9n\u00e9rale","description":"L'Information-Juste M\u00e9sur\u00e9e ett Sans Passion","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/justeinfos.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fr-FR"}]}},"_links":{"self":[{"href":"https:\/\/justeinfos.net\/wp-json\/wp\/v2\/tags\/437","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/justeinfos.net\/wp-json\/wp\/v2\/tags"}],"about":[{"href":"https:\/\/justeinfos.net\/wp-json\/wp\/v2\/taxonomies\/post_tag"}],"wp:post_type":[{"href":"https:\/\/justeinfos.net\/wp-json\/wp\/v2\/posts?tags=437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}