Changeset 8600 for trunk/wp-includes/functions.php
- Timestamp:
- 08/09/2008 05:36:14 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r8598 r8600 1475 1475 if ( $echo ) 1476 1476 echo $nonce_field; 1477 1477 1478 1478 if ( $referer ) 1479 1479 wp_referer_field( $echo, 'previous' ); 1480 1480 1481 1481 return $nonce_field; 1482 1482 } … … 1600 1600 if ( empty($upload_path) ) 1601 1601 $dir = WP_CONTENT_DIR . '/uploads'; 1602 else 1602 else 1603 1603 $dir = $upload_path; 1604 1604 1605 1605 // $dir is absolute, $path is (maybe) relative to ABSPATH 1606 1606 $dir = path_join( ABSPATH, $dir ); 1607 1607 1608 1608 if ( !$url = get_option( 'upload_url_path' ) ) { 1609 1609 if ( empty($upload_path) or ( $upload_path == $dir ) ) … … 1618 1618 } 1619 1619 1620 $bdir = $dir; 1620 $bdir = $dir; 1621 1621 $burl = $url; 1622 1622 … … 1639 1639 return array( 'error' => $message ); 1640 1640 } 1641 1641 1642 1642 $uploads = array( 'path' => $dir, 'url' => $url, 'subdir' => $subdir, 'basedir' => $bdir, 'baseurl' => $burl, 'error' => false ); 1643 1643 … … 1886 1886 $trans['activate']['plugin'] = array( __( 'Your attempt to activate this plugin: "%s" has failed.' ), 'use_id' ); 1887 1887 $trans['deactivate']['plugin'] = array( __( 'Your attempt to deactivate this plugin: "%s" has failed.' ), 'use_id' ); 1888 $trans['upgrade']['plugin'] = array( __( 'Your attempt to upgrade this plugin: "%s" has failed.' ), 'use_id' ); 1888 $trans['upgrade']['plugin'] = array( __( 'Your attempt to upgrade this plugin: "%s" has failed.' ), 'use_id' ); 1889 1889 1890 1890 $trans['add']['post'] = array( __( 'Your attempt to add this post has failed.' ), false ); … … 2525 2525 */ 2526 2526 function is_ssl() { 2527 return ( isset($_SERVER['HTTPS']) && 'on' == strtolower($_SERVER['HTTPS']) ) ? true : false; 2527 return ( isset($_SERVER['HTTPS']) && 'on' == strtolower($_SERVER['HTTPS']) ) ? true : false; 2528 2528 } 2529 2529
Note: See TracChangeset
for help on using the changeset viewer.