Subir ajustes de acordeon y SEO

This commit is contained in:
Gabriel
2026-10-23 11:18:13 -06:00
parent 03333c3ce7
commit 14b96152a5
103 changed files with 6638 additions and 5316 deletions
+14 -3
View File
@@ -343,11 +343,22 @@ function _get_block_template_file( $template_type, $slug ) {
);
foreach ( $themes as $theme_slug => $theme_dir ) {
$template_base_paths = get_block_theme_folders( $theme_slug );
$file_path = $theme_dir . '/' . $template_base_paths[ $template_type ] . '/' . $slug . '.html';
if ( file_exists( $file_path ) ) {
$template_dir = $theme_dir . '/' . $template_base_paths[ $template_type ];
$file_path = $template_dir . '/' . $slug . '.html';
$template_file = realpath( $file_path );
$template_root = realpath( $template_dir );
if (
false !== $template_file &&
false !== $template_root &&
str_starts_with(
wp_normalize_path( $template_file ),
trailingslashit( wp_normalize_path( $template_root ) )
)
) {
$new_template_item = array(
'slug' => $slug,
'path' => $file_path,
'path' => $template_file,
'theme' => $theme_slug,
'type' => $template_type,
);