Make WordPress Core


Ignore:
Timestamp:
12/01/2009 10:03:13 PM (16 years ago)
Author:
ryan
Message:

Fix file validation in theme editor. Props dd32. fixes #11032

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r12309 r12310  
    30693069        return 1;
    30703070
     3071    if (!empty ( $allowed_files ) && (!in_array( $file, $allowed_files ) ) )
     3072        return 3;
     3073
    30713074    if (':' == substr( $file, 1, 1 ))
    30723075        return 2;
    3073 
    3074     if (!empty ( $allowed_files ) && (!in_array( $file, $allowed_files ) ) )
    3075         return 3;
    30763076
    30773077    return 0;
Note: See TracChangeset for help on using the changeset viewer.