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

WordPress Trac noreply at wordpress.org
Fri Apr 21 22:37:04 UTC 2017


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

Comment (by johnjamesjacoby):

 Just ran into this, and the function name seems incorrect.

 How about `wp_is_file_mod_allowed()` instead?

 (`wp_disallow_file_mods()` reads (to me) like I would use it to disallow
 file modifications.)

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


More information about the wp-trac mailing list