Changeset 31042 for trunk/src/wp-includes/post.php
- Timestamp:
- 01/04/2015 02:31:29 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r31020 r31042 2479 2479 2480 2480 foreach ( (array) $wildcard_mime_types as $type ) { 2481 $regex = str_replace( '__wildcard__', $wild, preg_quote( str_replace( '*', '__wildcard__', $type ) ) ); 2482 $patternses[1][$type] = "^$regex$"; 2483 if ( false === strpos($type, '/') ) { 2484 $patternses[2][$type] = "^$regex/"; 2485 $patternses[3][$type] = $regex; 2481 $mimes = array_map( 'trim', explode( ',', $type ) ); 2482 foreach ( $mimes as $mime ) { 2483 $regex = str_replace( '__wildcard__', $wild, preg_quote( str_replace( '*', '__wildcard__', $mime ) ) ); 2484 $patternses[][$type] = "^$regex$"; 2485 if ( false === strpos( $mime, '/' ) ) { 2486 $patternses[][$type] = "^$regex/"; 2487 $patternses[][$type] = $regex; 2488 } 2486 2489 } 2487 2490 }
Note: See TracChangeset
for help on using the changeset viewer.