[wp-trac] [WordPress Trac] #37772: Not working "wp_default_styles" on PHP 7.1.0

WordPress Trac noreply at wordpress.org
Mon Aug 22 20:56:32 UTC 2016


#37772: Not working "wp_default_styles" on PHP 7.1.0
--------------------------+-----------------------------
 Reporter:  dandare       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Customize     |    Version:  4.6
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Hello.
 I have error when installing wordpress:
 "Warning: Parameter 1 to wp_default_styles() expected to be a reference,
 value given in /var/www/sitename.com/wp-includes/plugin.php on line 600"

 Fix:
 /wp-includes/class.wp-styles.php (line 127)

 {{{
 do_action_ref_array( 'wp_default_styles', array(&$this) );
 }}}

 change

 {{{
 do_action( 'wp_default_styles', array(&$this));
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37772>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list