Changeset 44948
- Timestamp:
- 03/20/2019 08:37:02 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/feed-atom-comments.php
r44574 r44948 46 46 <updated> 47 47 <?php 48 $date = get_last commentmodified( 'GMT');48 $date = get_last); 49 49 echo $date ? mysql2date( 'Y-m-d\TH:i:s\Z', $date, false ) : date( 'Y-m-d\TH:i:s\Z' ); 50 50 ?> -
trunk/src/wp-includes/feed-atom.php
r44574 r44948 33 33 <updated> 34 34 <?php 35 $date = get_last postmodified( 'GMT');35 $date = get_last); 36 36 echo $date ? mysql2date( 'Y-m-d\TH:i:s\Z', $date, false ) : date( 'Y-m-d\TH:i:s\Z' ); 37 37 ?> -
trunk/src/wp-includes/feed-rdf.php
r43571 r44948 36 36 <dc:date> 37 37 <?php 38 $date = get_last postmodified( 'GMT');38 $date = get_last); 39 39 echo $date ? mysql2date( 'Y-m-d\TH:i:s\Z', $date ) : date( 'Y-m-d\TH:i:s\Z' ); 40 40 ?> -
trunk/src/wp-includes/feed-rss.php
r43571 r44948 17 17 <lastBuildDate> 18 18 <?php 19 $date = get_last postmodified( 'GMT');19 $date = get_last); 20 20 echo $date ? mysql2date( 'D, d M Y H:i:s +0000', $date ) : date( 'D, d M Y H:i:s +0000' ); 21 21 ?> -
trunk/src/wp-includes/feed-rss2-comments.php
r44574 r44948 52 52 <lastBuildDate> 53 53 <?php 54 $date = get_last commentmodified( 'GMT');54 $date = get_last); 55 55 echo $date ? mysql2date( 'r', $date, false ) : date( 'r' ); 56 56 ?> -
trunk/src/wp-includes/feed-rss2.php
r43571 r44948 45 45 <lastBuildDate> 46 46 <?php 47 $date = get_last postmodified( 'GMT');47 $date = get_last); 48 48 echo $date ? mysql2date( 'r', $date, false ) : date( 'r' ); 49 49 ?> -
trunk/src/wp-includes/feed.php
r42414 r44948 638 638 } 639 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 640 685 /** 641 686 * Return the content type for specified feed type. -
trunk/tests/phpunit/tests/feed/rss2.php
r43571 r44948 37 37 38 38 // Set a predictable time for testing date archives. 39 self::$post_date = '2003-05-27 10:07:53';39 self::$post_date = ; 40 40 41 41 $count = get_option( 'posts_per_rss' ) + 1; 42 42 43 43 44 // Create a few posts 44 self::$posts = $factory->post->create_many( 45 $count, 46 array( 47 'post_author' => self::$user_id, 48 'post_date' => self::$post_date, 49 'post_content' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec velit massa, ultrices eu est suscipit, mattis posuere est. Donec vitae purus lacus. Cras vitae odio odio.', 50 'post_excerpt' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 51 ) 52 ); 45 for ( $i = 1; $i <= $count; $i++ ) { 46 self::$posts[] = $factory->post->create( 47 array( 48 'post_author' => self::$user_id, 49 // Separate post dates 5 seconds apart. 50 'post_date' => gmdate( 'Y-m-d H:i:s', self::$post_date + ( 5 * $i ) ), 51 'post_content' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec velit massa, ultrices eu est suscipit, mattis posuere est. Donec vitae purus lacus. Cras vitae odio odio.', 52 'post_excerpt' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', 53 ) 54 ); 55 } 53 56 54 57 // Assign a category to those posts … … 397 400 $this->assertTrue( have_posts() ); 398 401 402 399 403 // Check to see if we have the expected XML output from the feed template. 400 404 $feed = $this->do_rss2(); … … 464 468 $this->assertEquals( 1, count( $rss ) ); 465 469 } 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 466 497 }
Note: See TracChangeset
for help on using the changeset viewer.