Changeset 24303
- Timestamp:
- 05/20/2013 12:10:58 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/css/ie-rtl.css
r22799 r24303 235 235 } 236 236 237 .screen-reader-text { 237 .screen-reader-text { 238 238 right: auto; 239 text-indent: -1000em; 240 } 239 text-indent: -1000em; 240 } -
trunk/wp-admin/includes/misc.php
r24273 r24303 612 612 'text' => sprintf( __( '%s has taken over and is currently editing.' ), $user->display_name ) 613 613 ); 614 614 615 615 if ( $avatar = get_avatar( $user->ID, 64 ) ) { 616 616 if ( preg_match( "|src='([^']+)'|", $avatar, $matches ) ) -
trunk/wp-admin/js/post.js
r24273 r24303 327 327 } 328 328 329 $(document).on( 'heartbeat-send.wp-refresh-nonces', function( e, data ) { 329 $(document).on( 'heartbeat-send.wp-refresh-nonces', function( e, data ) { 330 330 var nonce, post_id; 331 331 -
trunk/wp-includes/class-http.php
r23609 r24303 763 763 } 764 764 } 765 765 766 766 if ( isset( $r['limit-response-size'] ) && ( $bytes_written + strlen( $block ) ) > $r['limit-response-size'] ) 767 767 $block = substr( $block, 0, ( $r['limit-response-size'] - $bytes_written ) ); 768 768 769 $bytes_written += fwrite( $stream_handle, $block ); 770 769 $bytes_written += fwrite( $stream_handle, $block ); 770 771 771 $keep_reading = !isset( $r['limit-response-size'] ) || $bytes_written < $r['limit-response-size']; 772 772 } … … 1848 1848 if ( function_exists( 'gzuncompress' ) ) 1849 1849 $type[] = 'compress;q=0.5'; 1850 1850 1851 1851 if ( function_exists( 'gzdecode' ) ) 1852 1852 $type[] = 'gzip;q=0.5'; -
trunk/wp-includes/taxonomy.php
r24261 r24303 2217 2217 if ( ! $append ) { 2218 2218 $delete_tt_ids = array_diff( $old_tt_ids, $tt_ids ); 2219 2219 2220 2220 if ( $delete_tt_ids ) { 2221 2221 $in_delete_tt_ids = "'" . implode( "', '", $delete_tt_ids ) . "'"; 2222 2222 $delete_term_ids = $wpdb->get_col( $wpdb->prepare( "SELECT tt.term_id FROM $wpdb->term_taxonomy AS tt WHERE tt.taxonomy = %s AND tt.term_taxonomy_id IN ($in_delete_tt_ids)", $taxonomy ) ); 2223 2223 $delete_term_ids = array_map( 'intval', $delete_term_ids ); 2224 2224 2225 2225 $remove = wp_remove_object_terms( $object_id, $delete_term_ids, $taxonomy ); 2226 2226 if ( is_wp_error( $remove ) ) { … … 2296 2296 2297 2297 $tt_ids = array(); 2298 2298 2299 2299 foreach ( (array) $terms as $term ) { 2300 2300 if ( ! strlen( trim( $term ) ) ) { 2301 2301 continue; 2302 2302 } 2303 2303 2304 2304 if ( ! $term_info = term_exists( $term, $taxonomy ) ) { 2305 2305 // Skip if a non-existent term ID is passed. … … 2308 2308 } 2309 2309 } 2310 2310 2311 2311 if ( is_wp_error( $term_info ) ) { 2312 2312 return $term_info; 2313 2313 } 2314 2314 2315 2315 $tt_ids[] = $term_info['term_taxonomy_id']; 2316 2316 } 2317 2317 2318 2318 if ( $tt_ids ) { 2319 2319 $in_tt_ids = "'" . implode( "', '", $tt_ids ) . "'"; … … 2322 2322 do_action( 'deleted_term_relationships', $object_id, $tt_ids ); 2323 2323 wp_update_term_count( $tt_ids, $taxonomy ); 2324 2324 2325 2325 return (bool) $deleted; 2326 2326 }
Note: See TracChangeset
for help on using the changeset viewer.