[wp-trac] [WordPress Trac] #44979: Parameter 1 to wp_default_styles() expected to be a reference, value given
WordPress Trac
noreply at wordpress.org
Tue Feb 25 00:57:47 UTC 2020
#44979: Parameter 1 to wp_default_styles() expected to be a reference, value given
-------------------------------------------------+-------------------------
Reporter: jqz | Owner:
| SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.4
Component: Script Loader | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch needs-testing dev- | Focuses:
feedback |
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"47355" 47355]:
{{{
#!CommitTicketReference repository="" revision="47355"
Script Loader: Remove unnecessary reference sign from function definitions
in script loader.
This resolves PHP warnings when extensions like `php_uopz` or
`php_tideways_xhprof` are in use.
Object variables in PHP 5+ contain a reference to the object, and it's the
reference that's passed around.
Props jqz, killerbishop, Mte90, TJNowell, jorbin, pento, pcarvalho,
valentinbora, SergeyBiryukov.
Fixes #44979.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44979#comment:28>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list