Make WordPress Core

Changeset 39133


Ignore:
Timestamp:
11/03/2016 10:43:43 PM (8 years ago)
Author:
westonruter
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r39128 r39133  
    12331233        add_action( 'wp_head', array( $this, 'customize_preview_loading_style' ) );
    12341234        add_action( 'wp_footer', array( $this, 'customize_preview_settings' ), 20 );
     1235        add_filter( 'get_edit_post_link', '__return_empty_string' );
    12351236
    12361237        /**
Note: See TracChangeset for help on using the changeset viewer.