WordPress.org

Make WordPress Core

Changeset 4773


Ignore:
Timestamp:
01/19/07 20:36:35 (9 years ago)
Author:
ryan
Message:

Delete page_uris option before updating it to avoid possibly expensive array comparison. #3614

File:
1 edited

Legend:

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

    r4722 r4773  
    11821182        } 
    11831183 
     1184        delete_option('page_uris'); 
    11841185        update_option('page_uris', $page_uris); 
    11851186 
    1186         if ( $page_attachment_uris ) 
     1187        if ( $page_attachment_uris ) { 
     1188            delete_option('page_attachment_uris'); 
    11871189            update_option('page_attachment_uris', $page_attachment_uris); 
     1190        } 
    11881191    } 
    11891192} 
Note: See TracChangeset for help on using the changeset viewer.