Make WordPress Core


Ignore:
Timestamp:
03/19/2010 09:29:21 PM (12 years ago)
Author:
nacin
Message:

Remove redundant isset() and empty() checks.

File:
1 edited

Legend:

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

    r13733 r13770  
    20792079    // Create a valid post name.  Drafts and pending posts are allowed to have an empty
    20802080    // post name.
    2081     if ( !isset($post_name) || empty($post_name) ) {
     2081    if ( empty($post_name) ) {
    20822082        if ( !in_array( $post_status, array( 'draft', 'pending', 'auto-draft' ) ) )
    20832083            $post_name = sanitize_title($post_title);
Note: See TracChangeset for help on using the changeset viewer.