if ( ( 'theme' !==
$origin ) || ( 'theme' ===
$origin &&
$override_preset ) ) { _wp_array_set( $this->theme_json,
$path,
$content );
} else { $slugs_node =
static::
get_default_slugs( $this->theme_json,
$node['path'
] );
$slugs =
array_merge_recursive( $slugs_global,
$slugs_node );
$slugs_for_preset =
_wp_array_get( $slugs,
$preset['path'
], array
() );
$content =
static::
filter_slugs( $content,
$slugs_for_preset );
_wp_array_set( $this->theme_json,
$path,
$content );
} } } } } /**
* Converts all filter (duotone) presets into SVGs.
*
* @since 5.9.1
*
* @param array $origins List of origins to process.
* @return string SVG filters.
*/