From ed37aaa664a38ec69b1a8c4b1fed9e79470e4a7b Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Thu, 3 Nov 2016 22:43:43 +0000 Subject: [PATCH] Customize: No-op `edit_post_link()` when in customizer preview. Edit links can be restored in plugins by removing the `__return_empty_string` function from the `get_edit_post_link` filter at the `customize_preview_init` action. Fixes #38648. git-svn-id: https://develop.svn.wordpress.org/trunk@39133 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-customize-manager.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-includes/class-wp-customize-manager.php b/src/wp-includes/class-wp-customize-manager.php index 8d976486dc..a67ccfbb90 100644 --- a/src/wp-includes/class-wp-customize-manager.php +++ b/src/wp-includes/class-wp-customize-manager.php @@ -1232,6 +1232,7 @@ final class WP_Customize_Manager { wp_enqueue_script( 'customize-preview' ); add_action( 'wp_head', array( $this, 'customize_preview_loading_style' ) ); add_action( 'wp_footer', array( $this, 'customize_preview_settings' ), 20 ); + add_filter( 'get_edit_post_link', '__return_empty_string' ); /** * Fires once the Customizer preview has initialized and JavaScript