Changeset 5209 for trunk/includes/core/template-functions.php
- Timestamp:
- 11/27/2013 07:40:35 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/core/template-functions.php
r5204 r5209 159 159 if ( !empty( $located ) ) { 160 160 161 // Make path to file relative to site URL 162 $located = trailingslashit( WP_CONTENT_URL ) . ltrim( str_replace( WP_CONTENT_DIR, '', $located ), '/' ); 161 $content_dir = constant( 'WP_CONTENT_DIR' ); 162 163 // IIS (Windows) here 164 // Replace back slashes with forward slash 165 if ( strpos( $located, '\\' ) !== false ) { 166 $located = str_replace( '\\', '/', $located ); 167 $content_dir = str_replace( '\\', '/', $content_dir ); 168 } 169 170 // Make path to file relative to site URL 171 $located = str_replace( $content_dir, WP_CONTENT_URL, $located ); 163 172 164 173 // Enqueue the style … … 218 227 if ( !empty( $located ) ) { 219 228 220 // Make path to file relative to site URL 221 $located = trailingslashit( WP_CONTENT_URL ) . ltrim( str_replace( WP_CONTENT_DIR, '', $located ), '/' ); 229 $content_dir = constant( 'WP_CONTENT_DIR' ); 230 231 // IIS (Windows) here 232 // Replace back slashes with forward slash 233 if ( strpos( $located, '\\' ) !== false ) { 234 $located = str_replace( '\\', '/', $located ); 235 $content_dir = str_replace( '\\', '/', $content_dir ); 236 } 237 238 // Make path to file relative to site URL 239 $located = str_replace( $content_dir, WP_CONTENT_URL, $located ); 222 240 223 241 // Enqueue the style
Note: See TracChangeset
for help on using the changeset viewer.