WordPress.org

Make WordPress Core

Ticket #42257: 42257.diff

File 42257.diff, 1.1 KB (added by dlh, 2 years ago)
  • src/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php

     
    697697                $menu_item_value['original_title'] = sanitize_text_field( $menu_item_value['original_title'] );
    698698
    699699                // Apply the same filters as when calling wp_insert_post().
     700
     701                /** This filter is documented in wp-includes/post.php */
    700702                $menu_item_value['title'] = wp_unslash( apply_filters( 'title_save_pre', wp_slash( $menu_item_value['title'] ) ) );
     703
     704                /** This filter is documented in wp-includes/post.php */
    701705                $menu_item_value['attr_title'] = wp_unslash( apply_filters( 'excerpt_save_pre', wp_slash( $menu_item_value['attr_title'] ) ) );
     706
     707                /** This filter is documented in wp-includes/post.php */
    702708                $menu_item_value['description'] = wp_unslash( apply_filters( 'content_save_pre', wp_slash( $menu_item_value['description'] ) ) );
    703709
    704710                if ( '' !== $menu_item_value['url'] ) {