WordPress.org

Make WordPress Core

Changes between Version 4 and Version 5 of Ticket #38673, comment 8


Ignore:
Timestamp:
11/08/2016 11:40:48 PM (4 years ago)
Author:
MaximeCulea
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #38673, comment 8

    v4 v5  
    11Please find the according patch in attached files : patch-38673.diff.
    22
    3 By applying this patch, people can now filter the `DISALLOW_FILE_MODS` constant. So, to conclude with the way to allow people adding languages, or whatever, while `DISALLOW_FILE_MODS` is activated, it is only needed to filter `wp_disallow_file_mods()` like this :
     3By applying this patch, people can now filter the `DISALLOW_FILE_MODS` constant. So, to conclude on the way to add languages, or whatever, while `DISALLOW_FILE_MODS` is activated, it is only needed to filter `wp_disallow_file_mods()` like this :
    44{{{#!php
    55<?php add_action( 'disallow_file_mods_download_language_pack', '__return_false' );