Skip to content

Commit

Permalink
preview dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
picocodes committed Jan 21, 2025
1 parent f21deac commit e7b0624
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions build/Emails/Preview.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public static function view_in_browser( $value, $request ) {
* Admin preview.
*/
public static function admin_preview( $template ) {
remove_filter( 'get_post_metadata', '_wp_preview_meta_filter' );

// Check if we are previewing the post type noptin-campaign.
if ( ! is_singular( 'noptin-campaign' ) ) {
Expand Down
2 changes: 1 addition & 1 deletion build/Emails/assets/js/email-editor.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-format-library', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-preferences', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => '55393bd8b6a41d9c623a');
<?php return array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-format-library', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-preferences', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => '56948a953c259c5bc69d');
Loading

0 comments on commit e7b0624

Please sign in to comment.