WordPress.org

Make WordPress Core

Changeset 4571


Ignore:
Timestamp:
12/01/06 04:51:09 (7 years ago)
Author:
markjaquith
Message:

cast to array when checking for old post slugs. fixes #3202

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-functions.php

    r4556 r4571  
    20852085        return $post_id; 
    20862086 
    2087     $old_slugs = get_post_meta($post_id, '_wp_old_slug'); 
     2087    $old_slugs = (array) get_post_meta($post_id, '_wp_old_slug'); 
    20882088 
    20892089    // if we haven't added this old slug before, add it now 
Note: See TracChangeset for help on using the changeset viewer.