Changeset 6364 for trunk/wp-includes/functions.php
- Timestamp:
- 12/06/2007 07:49:33 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r6340 r6364 109 109 110 110 111 function get_weekstartend( $mysqlstring, $start_of_week ) {111 function get_weekstartend( $mysqlstring, $start_of_week = '' ) { 112 112 $my = substr( $mysqlstring, 0, 4 ); 113 113 $mm = substr( $mysqlstring, 8, 2 ); … … 116 116 $weekday = date( 'w', $day ); 117 117 $i = 86400; 118 119 if ( $weekday < get_option( 'start_of_week' ) ) 120 $weekday = 7 - ( get_option( 'start_of_week' ) - $weekday ); 121 122 while ( $weekday > get_option( 'start_of_week' ) ) { 118 if( !is_numeric($a) ) 119 $start_of_week = get_option( 'start_of_week' ); 120 121 if ( $weekday < $start_of_week ) 122 $weekday = 7 - $start_of_week - $weekday; 123 124 while ( $weekday > $start_of_week ) { 123 125 $weekday = date( 'w', $day ); 124 if ( $weekday < get_option( 'start_of_week' ))125 $weekday = 7 - ( get_option( 'start_of_week' ) - $weekday );126 127 $day = $day -86400;126 if ( $weekday < $start_of_week ) 127 $weekday = 7 - $start_of_week - $weekday; 128 129 $day -= 86400; 128 130 $i = 0; 129 131 } … … 489 491 490 492 function do_enclose( $content, $post_ID ) { 491 global $wp _version, $wpdb;493 global $wpdb; 492 494 include_once( ABSPATH . WPINC . '/class-IXR.php' ); 493 495 … … 1029 1031 } 1030 1032 1031 function wp_upload_bits( $name, $ type, $bits ) {1033 function wp_upload_bits( $name, $deprecated, $bits ) { 1032 1034 if ( empty( $name ) ) 1033 1035 return array( 'error' => __( "Empty filename" ) ); … … 1067 1069 return array( 'error' => sprintf( __( 'Could not write file %s' ), $new_file ) ); 1068 1070 1069 $success =@fwrite( $ifp, $bits );1071 @fwrite( $ifp, $bits ); 1070 1072 fclose( $ifp ); 1071 1073 // Set correct file permissions … … 1212 1214 1213 1215 function wp_nonce_ays( $action ) { 1214 global $pagenow , $menu, $submenu, $parent_file, $submenu_file;1216 global $pagenow; 1215 1217 1216 1218 $adminurl = get_option( 'siteurl' ) . '/wp-admin'; … … 1500 1502 curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); 1501 1503 1502 $data = curl_exec($ch);1504 curl_exec($ch); 1503 1505 1504 1506 $status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
Note: See TracChangeset
for help on using the changeset viewer.