From e914c0447cc7a416cebba1f2e1443bd96e819aee Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Wed, 18 Oct 2017 04:57:50 +0000 Subject: [PATCH] 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 --- .../customize/class-wp-customize-nav-menu-item-setting.php | 6 ++++++ wp-includes/version.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php b/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php index 15a68cfeb5..b3a9954d22 100644 --- a/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php +++ b/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php @@ -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'] ); // 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'] ) ) ); + + /** 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'] ) ) ); + + /** 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'] ) ) ); if ( '' !== $menu_item_value['url'] ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index be0f537ca6..dde47d321e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @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.