Changeset 7130 for trunk/wp-includes/functions.php
- Timestamp:
- 03/02/2008 08:17:30 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/functions.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r7114 r7130 6 6 if ( empty( $m ) ) 7 7 return false; 8 8 9 9 if( 'G' == $dateformatstring ) { 10 10 return gmmktime( … … 13 13 ); 14 14 } 15 15 16 16 $i = mktime( 17 17 (int) substr( $m, 11, 2 ), (int) substr( $m, 14, 2 ), (int) substr( $m, 17, 2 ), … … 907 907 } 908 908 909 do_action( $hook, $wp_query->is_comment_feed ); 909 do_action( $hook, $wp_query->is_comment_feed ); 910 910 } 911 911 … … 1044 1044 if ( strlen($path) == 0 || $path{0} == '.' ) 1045 1045 return false; 1046 1046 1047 1047 // windows allows absolute paths like this 1048 1048 if ( preg_match('#^[a-zA-Z]:\\\\#', $path) ) … … 1057 1057 if ( path_is_absolute($path) ) 1058 1058 return $path; 1059 1059 1060 1060 return rtrim($base, '/') . '/' . ltrim($path, '/'); 1061 1061 } … … 1065 1065 $siteurl = get_option( 'siteurl' ); 1066 1066 $upload_path = $dir = get_option( 'upload_path' ); 1067 1067 1068 1068 // $dir is absolute, $path is (maybe) relative to ABSPATH 1069 1069 $dir = path_join( ABSPATH, $upload_path ); … … 1090 1090 $subdir = "/$y/$m"; 1091 1091 } 1092 1092 1093 1093 $dir .= $subdir; 1094 1094 $url .= $subdir; … … 1185 1185 'text' => array('txt'), 1186 1186 'archive' => array('tar','bz2','gz','cab','dmg','rar','sea','sit','sqx','zip'), 1187 'code' => array('css','html','php','js'), 1187 'code' => array('css','html','php','js'), 1188 1188 )); 1189 1189 foreach ( $ext2type as $type => $exts )
Note: See TracChangeset
for help on using the changeset viewer.