[wp-trac] [WordPress Trac] #44591: PHP notice if optional argument isn't passed to map_meta_cap()
WordPress Trac
noreply at wordpress.org
Sat Feb 19 07:57:00 UTC 2022
#44591: PHP notice if optional argument isn't passed to map_meta_cap()
----------------------------------------+-----------------------------
Reporter: henry.wright | Owner: SergeyBiryukov
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 6.0
Component: Users | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses:
----------------------------------------+-----------------------------
Comment (by azouamauriac):
44591-3.diff LGTM I'll just suggest that as the guard's code is repetitive
if we can wrap it into a function to respect DRY principe it will be good.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44591#comment:30>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list