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. Built from https://develop.svn.wordpress.org/trunk@39133 git-svn-id: http://core.svn.wordpress.org/trunk@39073 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e4b4f3efe3
commit
6ccb29bee0
|
@ -1232,6 +1232,7 @@ final class WP_Customize_Manager {
|
||||||
wp_enqueue_script( 'customize-preview' );
|
wp_enqueue_script( 'customize-preview' );
|
||||||
add_action( 'wp_head', array( $this, 'customize_preview_loading_style' ) );
|
add_action( 'wp_head', array( $this, 'customize_preview_loading_style' ) );
|
||||||
add_action( 'wp_footer', array( $this, 'customize_preview_settings' ), 20 );
|
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
|
* Fires once the Customizer preview has initialized and JavaScript
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.7-beta1-39132';
|
$wp_version = '4.7-beta1-39133';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue