WordPress.org

Make WordPress Core

Ticket #17749: globalise_wp_rewrite.diff

File globalise_wp_rewrite.diff, 319 bytes (added by mrtorrent, 2 years ago)

Explicitly globalise $wp_rewrite

  • wp-settings.php

    diff --git wp-settings.php wp-settings.php
    index 7897e73..cd089a8 100644
    $wp_query =& $wp_the_query; 
    237237 * @global object $wp_rewrite 
    238238 * @since 1.5.0 
    239239 */ 
    240 $wp_rewrite = new WP_Rewrite(); 
     240$GLOBALS['wp_rewrite'] = new WP_Rewrite(); 
    241241 
    242242/** 
    243243 * WordPress Object