WordPress.org

Make WordPress Core

Changeset 14117


Ignore:
Timestamp:
04/16/10 21:39:10 (4 years ago)
Author:
nacin
Message:

Allow for removing all tags in quick edit. Check only if $tags_input isset (can be empty) before running wp_set_post_tags. props sivel, fixes #12318.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r14108 r14117  
    20662066            $post_category = array(); 
    20672067    } 
    2068  
    2069     // Set the default tag list 
    2070     if ( !isset($tags_input) ) 
    2071         $tags_input = array(); 
    20722068 
    20732069    if ( empty($post_author) ) 
     
    22162212    wp_set_post_categories( $post_ID, $post_category ); 
    22172213    // old-style tags_input 
    2218     if ( !empty($tags_input) ) 
     2214    if ( isset( $tags_input ) ) 
    22192215        wp_set_post_tags( $post_ID, $tags_input ); 
    22202216    // new-style support for all tag-like taxonomies 
Note: See TracChangeset for help on using the changeset viewer.