Changeset 8629 for trunk/wp-includes/theme.php
- Timestamp:
- 08/12/2008 09:13:25 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/theme.php
r8624 r8629 506 506 return; 507 507 508 $_GET[ template] = preg_replace('|[^a-z0-9_.-]|i', '', $_GET[template]);509 510 if ( validate_file($_GET[ template]) )508 $_GET['template'] = preg_replace('|[^a-z0-9_.-]|i', '', $_GET['template']); 509 510 if ( validate_file($_GET['template']) ) 511 511 return; 512 512 513 add_filter('template', create_function('', "return ' $_GET[template]';") );513 add_filter('template', create_function('', "return '{$_GET['template']}';") ); 514 514 515 515 if ( isset($_GET['stylesheet']) ) { 516 $_GET[ stylesheet] = preg_replace('|[^a-z0-9_.-]|i', '', $_GET[stylesheet]);517 if ( validate_file($_GET[ stylesheet]) )516 $_GET['stylesheet'] = preg_replace('|[^a-z0-9_.-]|i', '', $_GET['stylesheet']); 517 if ( validate_file($_GET['stylesheet']) ) 518 518 return; 519 add_filter('stylesheet', create_function('', "return ' $_GET[stylesheet]';") );519 add_filter('stylesheet', create_function('', "return '{$_GET['stylesheet']}';") ); 520 520 } 521 521
Note: See TracChangeset
for help on using the changeset viewer.