Customize: Add missing filter docs in WP_Customize_Nav_Menu_Item_Setting::sanitize().
Props dlh. Fixes #42257. Built from https://develop.svn.wordpress.org/trunk@41894 git-svn-id: http://core.svn.wordpress.org/trunk@41728 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -697,8 +697,14 @@ class WP_Customize_Nav_Menu_Item_Setting extends WP_Customize_Setting {
|
|||||||
$menu_item_value['original_title'] = sanitize_text_field( $menu_item_value['original_title'] );
|
$menu_item_value['original_title'] = sanitize_text_field( $menu_item_value['original_title'] );
|
||||||
|
|
||||||
// Apply the same filters as when calling wp_insert_post().
|
// Apply the same filters as when calling wp_insert_post().
|
||||||
|
|
||||||
|
/** This filter is documented in wp-includes/post.php */
|
||||||
$menu_item_value['title'] = wp_unslash( apply_filters( 'title_save_pre', wp_slash( $menu_item_value['title'] ) ) );
|
$menu_item_value['title'] = wp_unslash( apply_filters( 'title_save_pre', wp_slash( $menu_item_value['title'] ) ) );
|
||||||
|
|
||||||
|
/** This filter is documented in wp-includes/post.php */
|
||||||
$menu_item_value['attr_title'] = wp_unslash( apply_filters( 'excerpt_save_pre', wp_slash( $menu_item_value['attr_title'] ) ) );
|
$menu_item_value['attr_title'] = wp_unslash( apply_filters( 'excerpt_save_pre', wp_slash( $menu_item_value['attr_title'] ) ) );
|
||||||
|
|
||||||
|
/** This filter is documented in wp-includes/post.php */
|
||||||
$menu_item_value['description'] = wp_unslash( apply_filters( 'content_save_pre', wp_slash( $menu_item_value['description'] ) ) );
|
$menu_item_value['description'] = wp_unslash( apply_filters( 'content_save_pre', wp_slash( $menu_item_value['description'] ) ) );
|
||||||
|
|
||||||
if ( '' !== $menu_item_value['url'] ) {
|
if ( '' !== $menu_item_value['url'] ) {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.9-beta2-41893';
|
$wp_version = '4.9-beta2-41894';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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.
|
||||||
|
|||||||
Reference in New Issue
Block a user