Changeset 33734 for trunk/src/wp-includes/post.php
- Timestamp:
- 08/25/2015 08:27:56 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post.php
r33723 r33734 2465 2465 2466 2466 $counts = array(); 2467 foreach ( (array) $count as $row ) {2467 foreach ( (array) $count as $row ) { 2468 2468 $counts[ $row['post_mime_type'] ] = $row['num_posts']; 2469 2469 } … … 3080 3080 // Backward compatibility. Prior to 3.1 expected posts to be returned in array. 3081 3081 if ( ARRAY_A == $output ){ 3082 foreach ( $results as $key => $result ) {3082 foreach ( $results as $key => $result ) { 3083 3083 $results[$key] = get_object_vars( $result ); 3084 3084 } … … 3399 3399 $emoji_fields = array( 'post_title', 'post_content', 'post_excerpt' ); 3400 3400 3401 foreach ( $emoji_fields as $emoji_field ) {3401 foreach ( $emoji_fields as $emoji_field ) { 3402 3402 if ( isset( $data[ $emoji_field ] ) ) { 3403 3403 $charset = $wpdb->get_col_charset( $wpdb->posts, $emoji_field ); … … 4150 4150 if ( 'enclosure' != $key || !is_array( $val ) ) 4151 4151 continue; 4152 foreach ( $val as $enc ) {4152 foreach ( $val as $enc ) { 4153 4153 $enclosure = explode( "\n", $enc ); 4154 4154 $pung[] = trim( $enclosure[ 0 ] ); … … 4240 4240 4241 4241 $trackback_urls = explode( ',', $tb_list ); 4242 foreach ( (array) $trackback_urls as $tb_url ) {4242 foreach ( (array) $trackback_urls as $tb_url ) { 4243 4243 $tb_url = trim( $tb_url ); 4244 4244 trackback( $tb_url, wp_unslash( $postdata['post_title'] ), $excerpt, $post_id ); … … 4486 4486 function _page_traverse_name( $page_id, &$children, &$result ){ 4487 4487 if ( isset( $children[ $page_id ] ) ){ 4488 foreach ( (array)$children[ $page_id ] as $child ) {4488 foreach ( (array)$children[ $page_id ] as $child ) { 4489 4489 $result[ $child->ID ] = $child->post_name; 4490 4490 _page_traverse_name( $child->ID, $children, $result ); … … 4775 4775 if ( ! empty( $r['exclude_tree'] ) ) { 4776 4776 $exclude = wp_parse_id_list( $r['exclude_tree'] ); 4777 foreach ( $exclude as $id ) {4777 foreach ( $exclude as $id ) { 4778 4778 $children = get_page_children( $id, $pages ); 4779 4779 foreach ( $children as $child ) {
Note: See TracChangeset
for help on using the changeset viewer.