Support » Requests and Feedback » Why assign by reference ?

  • Many of the WP_* global objects are created in wp-setings.php with assign by reference:
    $wp_widget_factory =& new WP_Widget_Factory();

    What are the benefits of this approach. It breaks some of my scripts, and makes it impossible to load the WordPress enviroment from external PHP files.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Why assign by reference ?’ is closed to new replies.