[wp-trac] [WordPress Trac] #38673: Introduce helper function for DISALLOW_FILE_MODS checks

WordPress Trac noreply at wordpress.org
Wed May 10 12:36:00 UTC 2017


#38673: Introduce helper function for DISALLOW_FILE_MODS checks
-----------------------------+-------------------------
 Reporter:  MaximeCulea      |       Owner:  swissspidy
     Type:  enhancement      |      Status:  reopened
 Priority:  normal           |   Milestone:  4.8
Component:  Upgrade/Install  |     Version:  4.7
 Severity:  normal           |  Resolution:
 Keywords:  needs-patch      |     Focuses:
-----------------------------+-------------------------

Comment (by swissspidy):

 @MaximeCulea `wp_is_file_mod_allowed()` has the opposite meaning of
 `wp_disallow_file_mods()` so all the checks would need to be negated, i.e.
 `wp_is_file_mod_allowed() === ! wp_disallow_file_mods()`

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38673#comment:34>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list