WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/28/2012 08:29:33 PM (9 years ago)
Author:
duck_
Message:

Reduce references to the $wp_rewrite global because it's no longer used or a wrapper function can be used instead. Fixes #14546.#14546.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/misc.php

    r19712 r20023  
    197197 * @since 2.1.0
    198198 *
    199  * @param unknown_type $old_value
    200  * @param unknown_type $value
     199 * @param string $old_value
     200 * @param string $value
    201201 */
    202202function update_home_siteurl( $old_value, $value ) {
    203     global $wp_rewrite;
    204 
    205203    if ( defined( "WP_INSTALLING" ) )
    206204        return;
    207205
    208206    // If home changed, write rewrite rules to new location.
    209     $wp_rewrite->flush_rules();
     207    flush_rewrite_rules();
    210208}
    211209
Note: See TracChangeset for help on using the changeset viewer.