- Timestamp:
- 09/06/2022 10:09:49 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-posts-controller.php
r54088 r54090 274 274 275 275 public function test_get_items_author_query() { 276 $this->factory->post->create( array( 'post_author' => self::$editor_id ) );277 $this->factory->post->create( array( 'post_author' => self::$author_id ) );276 self::factory()->post->create( array( 'post_author' => self::$editor_id ) ); 277 self::factory()->post->create( array( 'post_author' => self::$author_id ) ); 278 278 279 279 $total_posts = self::$total_posts + 2; … … 306 306 307 307 public function test_get_items_author_exclude_query() { 308 $this->factory->post->create( array( 'post_author' => self::$editor_id ) );309 $this->factory->post->create( array( 'post_author' => self::$author_id ) );308 self::factory()->post->create( array( 'post_author' => self::$editor_id ) ); 309 self::factory()->post->create( array( 'post_author' => self::$author_id ) ); 310 310 311 311 $total_posts = self::$total_posts + 2; … … 348 348 349 349 public function test_get_items_include_query() { 350 $id1 = $this->factory->post->create(350 $id1 = self::factory()->post->create( 351 351 array( 352 352 'post_status' => 'publish', … … 354 354 ) 355 355 ); 356 $id2 = $this->factory->post->create(356 $id2 = self::factory()->post->create( 357 357 array( 358 358 'post_status' => 'publish', … … 387 387 388 388 public function test_get_items_orderby_author_query() { 389 $id2 = $this->factory->post->create(389 $id2 = self::factory()->post->create( 390 390 array( 391 391 'post_status' => 'publish', … … 393 393 ) 394 394 ); 395 $id3 = $this->factory->post->create(395 $id3 = self::factory()->post->create( 396 396 array( 397 397 'post_status' => 'publish', … … 399 399 ) 400 400 ); 401 $id1 = $this->factory->post->create(401 $id1 = self::factory()->post->create( 402 402 array( 403 403 'post_status' => 'publish', … … 422 422 423 423 public function test_get_items_orderby_modified_query() { 424 $id1 = $this->factory->post->create( array( 'post_status' => 'publish' ) );425 $id2 = $this->factory->post->create( array( 'post_status' => 'publish' ) );426 $id3 = $this->factory->post->create( array( 'post_status' => 'publish' ) );424 $id1 = self::factory()->post->create( array( 'post_status' => 'publish' ) ); 425 $id2 = self::factory()->post->create( array( 'post_status' => 'publish' ) ); 426 $id3 = self::factory()->post->create( array( 'post_status' => 'publish' ) ); 427 427 428 428 $this->update_post_modified( $id1, '2016-04-20 4:26:20' ); … … 446 446 447 447 public function test_get_items_orderby_parent_query() { 448 $id1 = $this->factory->post->create(448 $id1 = self::factory()->post->create( 449 449 array( 450 450 'post_status' => 'publish', … … 452 452 ) 453 453 ); 454 $id2 = $this->factory->post->create(454 $id2 = self::factory()->post->create( 455 455 array( 456 456 'post_status' => 'publish', … … 458 458 ) 459 459 ); 460 $id3 = $this->factory->post->create(460 $id3 = self::factory()->post->create( 461 461 array( 462 462 'post_status' => 'publish', … … 484 484 485 485 public function test_get_items_exclude_query() { 486 $id1 = $this->factory->post->create( array( 'post_status' => 'publish' ) );487 $id2 = $this->factory->post->create( array( 'post_status' => 'publish' ) );486 $id1 = self::factory()->post->create( array( 'post_status' => 'publish' ) ); 487 $id2 = self::factory()->post->create( array( 'post_status' => 'publish' ) ); 488 488 489 489 $request = new WP_REST_Request( 'GET', '/wp/v2/posts' ); … … 514 514 515 515 public function test_get_items_search_query() { 516 $this->factory->post->create(516 self::factory()->post->create( 517 517 array( 518 518 'post_title' => 'Search Result', … … 536 536 537 537 public function test_get_items_slug_query() { 538 $this->factory->post->create(538 self::factory()->post->create( 539 539 array( 540 540 'post_title' => 'Apple', … … 542 542 ) 543 543 ); 544 $this->factory->post->create(544 self::factory()->post->create( 545 545 array( 546 546 'post_title' => 'Banana', … … 559 559 560 560 public function test_get_items_multiple_slugs_array_query() { 561 $this->factory->post->create(561 self::factory()->post->create( 562 562 array( 563 563 'post_title' => 'Apple', … … 565 565 ) 566 566 ); 567 $this->factory->post->create(567 self::factory()->post->create( 568 568 array( 569 569 'post_title' => 'Banana', … … 571 571 ) 572 572 ); 573 $this->factory->post->create(573 self::factory()->post->create( 574 574 array( 575 575 'post_title' => 'Peach', … … 593 593 594 594 public function test_get_items_multiple_slugs_string_query() { 595 $this->factory->post->create(595 self::factory()->post->create( 596 596 array( 597 597 'post_title' => 'Apple', … … 599 599 ) 600 600 ); 601 $this->factory->post->create(601 self::factory()->post->create( 602 602 array( 603 603 'post_title' => 'Banana', … … 605 605 ) 606 606 ); 607 $this->factory->post->create(607 self::factory()->post->create( 608 608 array( 609 609 'post_title' => 'Peach', … … 629 629 wp_set_current_user( 0 ); 630 630 631 $this->factory->post->create( array( 'post_status' => 'draft' ) );631 self::factory()->post->create( array( 'post_status' => 'draft' ) ); 632 632 633 633 $request = new WP_REST_Request( 'GET', '/wp/v2/posts' ); … … 655 655 wp_set_current_user( self::$editor_id ); 656 656 657 $this->factory->post->create( array( 'post_status' => 'draft' ) );658 $this->factory->post->create( array( 'post_status' => 'private' ) );659 $this->factory->post->create( array( 'post_status' => 'publish' ) );657 self::factory()->post->create( array( 'post_status' => 'draft' ) ); 658 self::factory()->post->create( array( 'post_status' => 'private' ) ); 659 self::factory()->post->create( array( 'post_status' => 'publish' ) ); 660 660 661 661 $request = new WP_REST_Request( 'GET', '/wp/v2/posts' ); … … 678 678 wp_set_current_user( self::$editor_id ); 679 679 680 $this->factory->post->create( array( 'post_status' => 'draft' ) );681 $this->factory->post->create( array( 'post_status' => 'pending' ) );682 $this->factory->post->create( array( 'post_status' => 'publish' ) );680 self::factory()->post->create( array( 'post_status' => 'draft' ) ); 681 self::factory()->post->create( array( 'post_status' => 'pending' ) ); 682 self::factory()->post->create( array( 'post_status' => 'publish' ) ); 683 683 684 684 $request = new WP_REST_Request( 'GET', '/wp/v2/posts' ); … … 710 710 */ 711 711 public function test_get_items_multiple_statuses_custom_role_one_invalid_query() { 712 $private_post_id = $this->factory->post->create( array( 'post_status' => 'private' ) );712 $private_post_id = self::factory()->post->create( array( 'post_status' => 'private' ) ); 713 713 714 714 wp_set_current_user( self::$private_reader_id ); … … 731 731 732 732 public function test_get_items_status_without_permissions() { 733 $draft_id = $this->factory->post->create(733 $draft_id = self::factory()->post->create( 734 734 array( 735 735 'post_status' => 'draft', … … 751 751 752 752 public function test_get_items_order_and_orderby() { 753 $this->factory->post->create(753 self::factory()->post->create( 754 754 array( 755 755 'post_title' => 'Apple Pie', … … 757 757 ) 758 758 ); 759 $this->factory->post->create(759 self::factory()->post->create( 760 760 array( 761 761 'post_title' => 'Apple Sauce', … … 763 763 ) 764 764 ); 765 $this->factory->post->create(765 self::factory()->post->create( 766 766 array( 767 767 'post_title' => 'Apple Cobbler', … … 769 769 ) 770 770 ); 771 $this->factory->post->create(771 self::factory()->post->create( 772 772 array( 773 773 'post_title' => 'Apple Coffee Cake', … … 806 806 807 807 public function test_get_items_with_orderby_include_without_include_param() { 808 $this->factory->post->create( array( 'post_status' => 'publish' ) );808 self::factory()->post->create( array( 'post_status' => 'publish' ) ); 809 809 810 810 $request = new WP_REST_Request( 'GET', '/wp/v2/posts' ); … … 817 817 818 818 public function test_get_items_with_orderby_id() { 819 $id1 = $this->factory->post->create(819 $id1 = self::factory()->post->create( 820 820 array( 821 821 'post_status' => 'publish', … … 823 823 ) 824 824 ); 825 $id2 = $this->factory->post->create(825 $id2 = self::factory()->post->create( 826 826 array( 827 827 'post_status' => 'publish', … … 829 829 ) 830 830 ); 831 $id3 = $this->factory->post->create(831 $id3 = self::factory()->post->create( 832 832 array( 833 833 'post_status' => 'publish', … … 851 851 852 852 public function test_get_items_with_orderby_slug() { 853 $id1 = $this->factory->post->create(853 $id1 = self::factory()->post->create( 854 854 array( 855 855 'post_title' => 'ABC', … … 858 858 ) 859 859 ); 860 $id2 = $this->factory->post->create(860 $id2 = self::factory()->post->create( 861 861 array( 862 862 'post_title' => 'XYZ', … … 882 882 $slugs = array( 'burrito', 'taco', 'chalupa' ); 883 883 foreach ( $slugs as $slug ) { 884 $this->factory->post->create(884 self::factory()->post->create( 885 885 array( 886 886 'post_title' => $slug, … … 904 904 905 905 public function test_get_items_with_orderby_relevance() { 906 $id1 = $this->factory->post->create(906 $id1 = self::factory()->post->create( 907 907 array( 908 908 'post_title' => 'Title is more relevant', … … 911 911 ) 912 912 ); 913 $id2 = $this->factory->post->create(913 $id2 = self::factory()->post->create( 914 914 array( 915 915 'post_title' => 'Title is', … … 932 932 933 933 public function test_get_items_with_orderby_relevance_two_terms() { 934 $id1 = $this->factory->post->create(934 $id1 = self::factory()->post->create( 935 935 array( 936 936 'post_title' => 'Title is more relevant', … … 939 939 ) 940 940 ); 941 $id2 = $this->factory->post->create(941 $id2 = self::factory()->post->create( 942 942 array( 943 943 'post_title' => 'Title is', … … 1006 1006 public function test_get_items_tags_exclude_query() { 1007 1007 $id1 = self::$post_id; 1008 $id2 = $this->factory->post->create( array( 'post_status' => 'publish' ) );1009 $id3 = $this->factory->post->create( array( 'post_status' => 'publish' ) );1010 $id4 = $this->factory->post->create( array( 'post_status' => 'publish' ) );1008 $id2 = self::factory()->post->create( array( 'post_status' => 'publish' ) ); 1009 $id3 = self::factory()->post->create( array( 'post_status' => 'publish' ) ); 1010 $id4 = self::factory()->post->create( array( 'post_status' => 'publish' ) ); 1011 1011 $tag = wp_insert_term( 'My Tag', 'post_tag' ); 1012 1012 … … 1029 1029 public function test_get_items_tags_and_categories_query() { 1030 1030 $id1 = self::$post_id; 1031 $id2 = $this->factory->post->create( array( 'post_status' => 'publish' ) );1031 $id2 = self::factory()->post->create( array( 'post_status' => 'publish' ) ); 1032 1032 $tag = wp_insert_term( 'My Tag', 'post_tag' ); 1033 1033 $category = wp_insert_term( 'My Category', 'category' ); … … 1054 1054 public function test_get_items_tags_or_categories_query() { 1055 1055 $id1 = self::$post_id; 1056 $id2 = $this->factory->post->create( array( 'post_status' => 'publish' ) );1056 $id2 = self::factory()->post->create( array( 'post_status' => 'publish' ) ); 1057 1057 $tag = wp_insert_term( 'My Tag', 'post_tag' ); 1058 1058 $category = wp_insert_term( 'My Category', 'category' ); … … 1076 1076 public function test_get_items_tags_and_categories_exclude_query() { 1077 1077 $id1 = self::$post_id; 1078 $id2 = $this->factory->post->create( array( 'post_status' => 'publish' ) );1078 $id2 = self::factory()->post->create( array( 'post_status' => 'publish' ) ); 1079 1079 $tag = wp_insert_term( 'My Tag', 'post_tag' ); 1080 1080 $category = wp_insert_term( 'My Category', 'category' ); … … 1103 1103 public function test_get_items_tags_or_categories_exclude_query() { 1104 1104 $id1 = end( self::$post_ids ); 1105 $id2 = $this->factory->post->create( array( 'post_status' => 'publish' ) );1106 $id3 = $this->factory->post->create( array( 'post_status' => 'publish' ) );1107 $id4 = $this->factory->post->create( array( 'post_status' => 'publish' ) );1105 $id2 = self::factory()->post->create( array( 'post_status' => 'publish' ) ); 1106 $id3 = self::factory()->post->create( array( 'post_status' => 'publish' ) ); 1107 $id4 = self::factory()->post->create( array( 'post_status' => 'publish' ) ); 1108 1108 $tag = wp_insert_term( 'My Tag', 'post_tag' ); 1109 1109 $category = wp_insert_term( 'My Category', 'category' ); … … 1367 1367 public function test_get_items_sticky() { 1368 1368 $id1 = self::$post_id; 1369 $id2 = $this->factory->post->create( array( 'post_status' => 'publish' ) );1369 $id2 = self::factory()->post->create( array( 'post_status' => 'publish' ) ); 1370 1370 1371 1371 update_option( 'sticky_posts', array( $id2 ) ); … … 1388 1388 public function test_get_items_sticky_with_include() { 1389 1389 $id1 = self::$post_id; 1390 $id2 = $this->factory->post->create( array( 'post_status' => 'publish' ) );1390 $id2 = self::factory()->post->create( array( 'post_status' => 'publish' ) ); 1391 1391 1392 1392 update_option( 'sticky_posts', array( $id2 ) ); … … 1456 1456 public function test_get_items_not_sticky() { 1457 1457 $id1 = end( self::$post_ids ); 1458 $id2 = $this->factory->post->create( array( 'post_status' => 'publish' ) );1458 $id2 = self::factory()->post->create( array( 'post_status' => 'publish' ) ); 1459 1459 1460 1460 $total_posts = self::$total_posts + 1; … … 1478 1478 public function test_get_items_not_sticky_with_exclude() { 1479 1479 $id1 = end( self::$post_ids ); 1480 $id2 = $this->factory->post->create( array( 'post_status' => 'publish' ) );1481 $id3 = $this->factory->post->create( array( 'post_status' => 'publish' ) );1480 $id2 = self::factory()->post->create( array( 'post_status' => 'publish' ) ); 1481 $id3 = self::factory()->post->create( array( 'post_status' => 'publish' ) ); 1482 1482 1483 1483 $total_posts = self::$total_posts + 2; … … 1504 1504 public function test_get_items_not_sticky_with_exclude_no_sticky_posts() { 1505 1505 $id1 = self::$post_id; 1506 $id2 = $this->factory->post->create( array( 'post_status' => 'publish' ) );1507 $id3 = $this->factory->post->create( array( 'post_status' => 'publish' ) );1506 $id2 = self::factory()->post->create( array( 'post_status' => 'publish' ) ); 1507 $id3 = self::factory()->post->create( array( 'post_status' => 'publish' ) ); 1508 1508 1509 1509 $total_posts = self::$total_posts + 2; … … 1575 1575 $parent_ids = array( $parent_id1, $parent_id2 ); 1576 1576 $attachment_ids = array(); 1577 $attachment_ids[] = $this->factory->attachment->create_object(1577 $attachment_ids[] = self::factory()->attachment->create_object( 1578 1578 DIR_TESTDATA . '/images/canola.jpg', 1579 1579 $parent_id1, … … 1584 1584 ); 1585 1585 1586 $attachment_ids[] = $this->factory->attachment->create_object(1586 $attachment_ids[] = self::factory()->attachment->create_object( 1587 1587 DIR_TESTDATA . '/images/canola.jpg', 1588 1588 $parent_id2, … … 1629 1629 1630 1630 // 3rd page. 1631 $this->factory->post->create();1631 self::factory()->post->create(); 1632 1632 $total_posts++; 1633 1633 $total_pages++; … … 1708 1708 1709 1709 public function test_get_items_status_draft_permissions() { 1710 $draft_id = $this->factory->post->create( array( 'post_status' => 'draft' ) );1710 $draft_id = self::factory()->post->create( array( 'post_status' => 'draft' ) ); 1711 1711 1712 1712 // Drafts status query var inaccessible to unauthorized users. … … 1738 1738 */ 1739 1739 public function test_get_items_status_private_permissions() { 1740 $private_post_id = $this->factory->post->create( array( 'post_status' => 'private' ) );1740 $private_post_id = self::factory()->post->create( array( 'post_status' => 'private' ) ); 1741 1741 1742 1742 wp_set_current_user( 0 ); … … 1793 1793 1794 1794 public function test_get_items_valid_date() { 1795 $post1 = $this->factory->post->create( array( 'post_date' => '2016-01-15T00:00:00Z' ) );1796 $post2 = $this->factory->post->create( array( 'post_date' => '2016-01-16T00:00:00Z' ) );1797 $post3 = $this->factory->post->create( array( 'post_date' => '2016-01-17T00:00:00Z' ) );1795 $post1 = self::factory()->post->create( array( 'post_date' => '2016-01-15T00:00:00Z' ) ); 1796 $post2 = self::factory()->post->create( array( 'post_date' => '2016-01-16T00:00:00Z' ) ); 1797 $post3 = self::factory()->post->create( array( 'post_date' => '2016-01-17T00:00:00Z' ) ); 1798 1798 1799 1799 $request = new WP_REST_Request( 'GET', '/wp/v2/posts' ); … … 1821 1821 */ 1822 1822 public function test_get_items_valid_modified_date() { 1823 $post1 = $this->factory->post->create( array( 'post_date' => '2016-01-01 00:00:00' ) );1824 $post2 = $this->factory->post->create( array( 'post_date' => '2016-01-02 00:00:00' ) );1825 $post3 = $this->factory->post->create( array( 'post_date' => '2016-01-03 00:00:00' ) );1823 $post1 = self::factory()->post->create( array( 'post_date' => '2016-01-01 00:00:00' ) ); 1824 $post2 = self::factory()->post->create( array( 'post_date' => '2016-01-02 00:00:00' ) ); 1825 $post3 = self::factory()->post->create( array( 'post_date' => '2016-01-03 00:00:00' ) ); 1826 1826 $this->update_post_modified( $post1, '2016-01-15 00:00:00' ); 1827 1827 $this->update_post_modified( $post2, '2016-01-16 00:00:00' ); … … 1941 1941 1942 1942 public function test_get_post_draft_status_not_authenticated() { 1943 $draft_id = $this->factory->post->create(1943 $draft_id = self::factory()->post->create( 1944 1944 array( 1945 1945 'post_status' => 'draft', … … 1957 1957 public function test_get_post_draft_edit_context() { 1958 1958 $post_content = 'Hello World!'; 1959 $this->factory->post->create(1959 self::factory()->post->create( 1960 1960 array( 1961 1961 'post_title' => 'Hola', … … 1966 1966 ) 1967 1967 ); 1968 $draft_id = $this->factory->post->create(1968 $draft_id = self::factory()->post->create( 1969 1969 array( 1970 1970 'post_status' => 'draft', … … 2032 2032 2033 2033 public function test_get_post_with_password() { 2034 $post_id = $this->factory->post->create(2034 $post_id = self::factory()->post->create( 2035 2035 array( 2036 2036 'post_password' => '$inthebananastand', … … 2051 2051 2052 2052 public function test_get_post_with_password_using_password() { 2053 $post_id = $this->factory->post->create(2053 $post_id = self::factory()->post->create( 2054 2054 array( 2055 2055 'post_password' => '$inthebananastand', … … 2075 2075 2076 2076 public function test_get_post_with_password_using_incorrect_password() { 2077 $post_id = $this->factory->post->create(2077 $post_id = self::factory()->post->create( 2078 2078 array( 2079 2079 'post_password' => '$inthebananastand', … … 2091 2091 2092 2092 public function test_get_post_with_password_without_permission() { 2093 $post_id = $this->factory->post->create(2093 $post_id = self::factory()->post->create( 2094 2094 array( 2095 2095 'post_password' => '$inthebananastand', … … 2115 2115 */ 2116 2116 public function test_get_post_should_not_have_block_version_when_context_view() { 2117 $post_id = $this->factory->post->create(2117 $post_id = self::factory()->post->create( 2118 2118 array( 2119 2119 'post_content' => '<!-- wp:core/separator -->', … … 2135 2135 wp_set_current_user( self::$editor_id ); 2136 2136 2137 $post_id = $this->factory->post->create(2137 $post_id = self::factory()->post->create( 2138 2138 array( 2139 2139 'post_content' => '<!-- wp:core/separator -->', … … 2156 2156 wp_set_current_user( self::$editor_id ); 2157 2157 2158 $post_id = $this->factory->post->create(2158 $post_id = self::factory()->post->create( 2159 2159 array( 2160 2160 'post_content' => '<hr />', … … 2784 2784 2785 2785 $file = DIR_TESTDATA . '/images/canola.jpg'; 2786 $attachment_id = $this->factory->attachment->create_object(2786 $attachment_id = self::factory()->attachment->create_object( 2787 2787 $file, 2788 2788 0, … … 3188 3188 public function test_rest_update_post_with_empty_date() { 3189 3189 // Create a new test post. 3190 $post_id = $this->factory->post->create();3190 $post_id = self::factory()->post->create(); 3191 3191 3192 3192 wp_set_current_user( self::$editor_id ); … … 3437 3437 update_option( 'timezone_string', $params['timezone_string'] ); 3438 3438 3439 $post_id = $this->factory->post->create( array( 'post_status' => $status ) );3439 $post_id = self::factory()->post->create( array( 'post_status' => $status ) ); 3440 3440 3441 3441 $request = new WP_REST_Request( 'PUT', sprintf( '/wp/v2/posts/%d', $post_id ) ); … … 3502 3502 // Need to set dates using wpdb directly because `wp_update_post` and 3503 3503 // `wp_insert_post` have additional validation on dates. 3504 $post_id = $this->factory->post->create();3504 $post_id = self::factory()->post->create(); 3505 3505 $wpdb->update( 3506 3506 $wpdb->posts, … … 4172 4172 4173 4173 public function test_delete_item() { 4174 $post_id = $this->factory->post->create( array( 'post_title' => 'Deleted post' ) );4174 $post_id = self::factory()->post->create( array( 'post_title' => 'Deleted post' ) ); 4175 4175 4176 4176 wp_set_current_user( self::$editor_id ); … … 4187 4187 4188 4188 public function test_delete_item_skip_trash() { 4189 $post_id = $this->factory->post->create( array( 'post_title' => 'Deleted post' ) );4189 $post_id = self::factory()->post->create( array( 'post_title' => 'Deleted post' ) ); 4190 4190 4191 4191 wp_set_current_user( self::$editor_id ); … … 4202 4202 4203 4203 public function test_delete_item_already_trashed() { 4204 $post_id = $this->factory->post->create( array( 'post_title' => 'Deleted post' ) );4204 $post_id = self::factory()->post->create( array( 'post_title' => 'Deleted post' ) ); 4205 4205 4206 4206 wp_set_current_user( self::$editor_id ); … … 4223 4223 4224 4224 public function test_delete_post_invalid_post_type() { 4225 $page_id = $this->factory->post->create( array( 'post_type' => 'page' ) );4225 $page_id = self::factory()->post->create( array( 'post_type' => 'page' ) ); 4226 4226 4227 4227 wp_set_current_user( self::$editor_id ); … … 4466 4466 wp_set_current_user( 1 ); 4467 4467 4468 $post_id = $this->factory->post->create();4468 $post_id = self::factory()->post->create(); 4469 4469 4470 4470 $request = new WP_REST_Request( 'GET', '/wp/v2/posts/' . $post_id ); … … 4511 4511 ) 4512 4512 ); 4513 $post_id = $this->factory->post->create();4513 $post_id = self::factory()->post->create(); 4514 4514 4515 4515 // 'my_custom_int' should appear because ?_fields= isn't set. … … 4932 4932 wp_set_current_user( self::$editor_id ); 4933 4933 4934 $post_id = $this->factory->post->create(4934 $post_id = self::factory()->post->create( 4935 4935 array( 4936 4936 'post_title' => 'Permalink Template', … … 4956 4956 wp_set_current_user( self::$editor_id ); 4957 4957 4958 $post_id = $this->factory->post->create(4958 $post_id = self::factory()->post->create( 4959 4959 array( 4960 4960 'post_title' => 'Permalink Template',
Note: See TracChangeset
for help on using the changeset viewer.