Changeset 8572 for trunk/wp-includes/general-template.php
- Timestamp:
- 08/06/2008 08:31:54 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/general-template.php
r8498 r8572 435 435 if ( $arcresults ) { 436 436 $afterafter = $after; 437 foreach ( $arcresults as $arcresult ) {437 foreach ( (array) $arcresults as $arcresult ) { 438 438 $url = get_month_link($arcresult->year, $arcresult->month); 439 439 $text = sprintf(__('%1$s %2$d'), $wp_locale->get_month($arcresult->month), $arcresult->year); … … 456 456 if ($arcresults) { 457 457 $afterafter = $after; 458 foreach ( $arcresults as $arcresult) {458 foreach ( (array) $arcresults as $arcresult) { 459 459 $url = get_year_link($arcresult->year); 460 460 $text = sprintf('%d', $arcresult->year); … … 477 477 if ( $arcresults ) { 478 478 $afterafter = $after; 479 foreach ( $arcresults as $arcresult ) {479 foreach ( (array) $arcresults as $arcresult ) { 480 480 $url = get_day_link($arcresult->year, $arcresult->month, $arcresult->dayofmonth); 481 481 $date = sprintf('%1$d-%2$02d-%3$02d 00:00:00', $arcresult->year, $arcresult->month, $arcresult->dayofmonth); … … 501 501 $afterafter = $after; 502 502 if ( $arcresults ) { 503 foreach ( $arcresults as $arcresult ) {503 foreach ( (array) $arcresults as $arcresult ) { 504 504 if ( $arcresult->week != $arc_w_last ) { 505 505 $arc_year = $arcresult->yr; … … 529 529 } 530 530 if ( $arcresults ) { 531 foreach ( $arcresults as $arcresult ) {531 foreach ( (array) $arcresults as $arcresult ) { 532 532 if ( $arcresult->post_date != '0000-00-00 00:00:00' ) { 533 533 $url = get_permalink($arcresult); … … 669 669 AND post_date < '" . current_time('mysql') . '\'', ARRAY_N); 670 670 if ( $dayswithposts ) { 671 foreach ( $dayswithposts as $daywith ) {671 foreach ( (array) $dayswithposts as $daywith ) { 672 672 $daywithpost[] = $daywith[0]; 673 673 } … … 690 690 ); 691 691 if ( $ak_post_titles ) { 692 foreach ( $ak_post_titles as $ak_post_title ) {692 foreach ( (array) $ak_post_titles as $ak_post_title ) { 693 693 694 694 $post_title = apply_filters( "the_title", $ak_post_title->post_title ); … … 757 757 global $allowedtags; 758 758 $allowed = ''; 759 foreach ( $allowedtags as $tag => $attributes ) {759 foreach ( (array) $allowedtags as $tag => $attributes ) { 760 760 $allowed .= '<'.$tag; 761 761 if ( 0 < count($attributes) ) { … … 1067 1067 1068 1068 // Who knows what else people pass in $args 1069 $total 1069 $total = (int) $total; 1070 1070 if ( $total < 2 ) 1071 1071 return;
Note: See TracChangeset
for help on using the changeset viewer.