Upgarded to 4.17.4

This commit is contained in:
2022-06-23 13:17:18 +01:00
parent 80f1e87db9
commit a04fb0c7af
404 changed files with 54683 additions and 4417 deletions

View File

@ -223,11 +223,22 @@ class ET_Builder_Post_Feature_Base {
$tb_data[ $tb_id ] = $tb_post->post_modified_gmt;
}
// Ignore WP Editor template if current page use TB.
$wpe_data = [];
if ( empty( $tb_data ) ) {
$wpe_ids = $dynamic_assets->get_wp_editor_template_ids();
foreach ( $wpe_ids as $wpe_id ) {
$wpe_post = get_post( $wpe_id );
$wpe_data[ $wpe_id ] = $wpe_post->post_modified_gmt;
}
}
return array(
'gph' => ET_Builder_Global_Presets_History::instance()->get_global_history_index(),
'divi' => et_get_theme_version(),
'wp' => $wp_version,
'tb' => $tb_data,
'wpe' => $wpe_data,
);
}