Archive | /wp-includes/functions.php RSS feed for this section

wp_die

Kill WordPress execution and display HTML message with error message.This function complements the die() PHP function. The difference is that HTML will be displayed to the user. It is recommended to use this function only, when the execution should not continue any further. It is not recommended to call this function very often and try to handle as many errors as possible silently.

3607

Continue reading

wp_check_filetype

Retrieve the file type from the file name.You can optionally define the mime array, if needed.

3459

Continue reading

validate_file

File validates against allowed set of defined rules.A return value of ‘1’ means that the $file contains either ‘..’ or ‘./’. A return value of ‘2’ means that the $file contains ‘:’ after the first character. A return value of ‘3’ means that the file is not in the allowed files list.

3323

Continue reading