[wp-trac] [WordPress Trac] #48083: Use `**` operator to replace`pow()` function calls
WordPress Trac
noreply at wordpress.org
Sat Sep 21 12:48:39 UTC 2019
#48083: Use `**` operator to replace`pow()` function calls
------------------------------+--------------------------------------------
Reporter: ayeshrajans | Owner: SergeyBiryukov
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.3
Component: General | Version: trunk
Severity: trivial | Resolution: fixed
Keywords: has-patch commit | Focuses: performance, coding-standards
------------------------------+--------------------------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"46225" 46225]:
{{{
#!CommitTicketReference repository="" revision="46225"
Code Modernization: Use the `**` operator instead of the `pow()` function
in `wp_convert_bytes_to_hr()` for better performance.
Use the `MB_IN_BYTES` constant instead of the `pow()` function in
`WP_Customize_Manager::_validate_header_video()` for better readability.
Props ayeshrajans, jrf.
Fixes #48083.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48083#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list