Changeset 8335 for branches/crazyhorse/wp-includes/functions.php
- Timestamp:
- 07/15/2008 02:01:08 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/crazyhorse/wp-includes/functions.php
r8242 r8335 491 491 $newvalue = sanitize_option( $option_name, $newvalue ); 492 492 493 $oldvalue = get_option( $safe_option_name ); 494 495 $newvalue = apply_filters( 'pre_update_option_' . $option_name, $newvalue, $oldvalue ); 496 493 497 // If the new and old values are the same, no need to update. 494 $oldvalue = get_option( $safe_option_name );495 498 if ( $newvalue === $oldvalue ) 496 499 return false; … … 1493 1496 $url = trailingslashit( $siteurl ) . UPLOADS; 1494 1497 } 1495 1498 1499 $bdir = $dir; 1500 $burl = $url; 1501 1496 1502 $subdir = ''; 1497 1503 if ( get_option( 'uploads_use_yearmonth_folders' ) ) { … … 1513 1519 } 1514 1520 1515 $uploads = array( 'path' => $dir, 'url' => $url, 'subdir' => $subdir, ' error' => false );1521 $uploads = array( 'path' => $dir, 'url' => $url, 'subdir' => $subdir, 'basedir' => $bdir, 'baseurl' => $burl, 'error' => false ); 1516 1522 return apply_filters( 'upload_dir', $uploads ); 1517 1523 } … … 2254 2260 */ 2255 2261 function is_ssl() { 2256 return ( 'on' == strtolower($_SERVER['HTTPS']) ) ? true : false;2262 return ( isset($_SERVER['HTTPS']) && 'on' == strtolower($_SERVER['HTTPS']) ) ? true : false; 2257 2263 } 2258 2264
Note: See TracChangeset
for help on using the changeset viewer.