Make WordPress Core


Ignore:
Timestamp:
10/24/2017 10:49:13 PM (9 years ago)
Author:
johnbillion
Message:

Docs: Improve the docs for validate_file() and validate_file_to_edit().

See #42016, #36170, #41017

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/file.php

    r41806 r42007  
    654654
    655655/**
    656  * Make sure that the file that was requested to edit, is allowed to be edited
    657  *
    658  * Function will die if you are not allowed to edit the file
     656 * Makes sure that the file that was requested to be edited is allowed to be edited.
     657 *
     658 * Function will die if you are not allowed to edit the file.
    659659 *
    660660 * @since 1.5.0
    661661 *
    662  * @param string $file file the users is attempting to edit
    663  * @param array $allowed_files Array of allowed files to edit, $file must match an entry exactly
     662 * @param string $file          File the user is attempting to edit.
     663 * @param array  $allowed_files Optional. Array of allowed files to edit, $file must match an entry exactly.
    664664 * @return string|null
    665665 */
Note: See TracChangeset for help on using the changeset viewer.