Ticket #11549: wp-settings.php.diff
File wp-settings.php.diff, 333 bytes (added by , 15 years ago) |
---|
Line | |
---|---|
1 | 11a12,13 |
2 | > global $wpdb, $wp_embed, $wp_widget_factory, $_wp_deprecated_widgets_callbacks; |
3 | > |
4 | 675c677,681 |
5 | < $wp_widget_factory =& new WP_Widget_Factory(); |
6 | --- |
7 | > if (version_compare(phpversion(), '5.0.0', '>=')) { |
8 | > $wp_widget_factory = new WP_Widget_Factory(); |
9 | > } else { |
10 | > $wp_widget_factory =& new WP_Widget_Factory(); |
11 | > } |