Ticket #32816: 32816.diff
File 32816.diff, 685 bytes (added by , 8 years ago) |
---|
-
class-wp-customize-nav-menu-item-setting.php
723 723 $menu_item_value['description'] = wp_unslash( apply_filters( 'content_save_pre', wp_slash( $menu_item_value['description'] ) ) ); 724 724 725 725 $menu_item_value['url'] = esc_url_raw( $menu_item_value['url'] ); 726 if( '' === $menu_item_value['url'] ) { 727 return new WP_Error( 'invalid_url', __( 'Invalid URL.' ) ); 728 } 726 729 if ( 'publish' !== $menu_item_value['status'] ) { 727 730 $menu_item_value['status'] = 'draft'; 728 731 }