Changeset 4117

Show
Ignore:
Timestamp:
08/25/06 00:27:15 (2 years ago)
Author:
ryan
Message:

Don't save if both title and content are empty. fixes #2390

Files:

Legend:

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

    r4078 r4117  
    507507        $ping_status     = apply_filters('ping_status_pre',    $ping_status); 
    508508    } 
     509 
     510    if ( ('' == $post_content) && ('' == $post_title) ) 
     511        return 0; 
    509512 
    510513    // Make sure we set a valid category