WordPress.org

Make WordPress Core

Changeset 16820


Ignore:
Timestamp:
12/08/10 21:22:16 (5 years ago)
Author:
markjaquith
Message:

Do not store empty _wp_old_slug values. fixes #15736

File:
1 edited

Legend:

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

    r16819 r16820  
    40324032 
    40334033    // if we haven't added this old slug before, add it now 
    4034     if ( !in_array($post_before->post_name, $old_slugs) ) 
     4034    if ( !empty( $post_before->post_name ) && !in_array($post_before->post_name, $old_slugs) ) 
    40354035        add_post_meta($post_id, '_wp_old_slug', $post_before->post_name); 
    40364036 
Note: See TracChangeset for help on using the changeset viewer.