WordPress.org

Make WordPress Core

Changeset 4117


Ignore:
Timestamp:
08/25/2006 12:27:15 AM (15 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.