Changeset 40605 for trunk/tests/phpunit/includes/testcase.php
- Timestamp:
- 05/10/2017 06:51:28 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/testcase.php
r40564 r40605 869 869 return $id; 870 870 } 871 872 /** 873 * There's no way to change post_modified through WP functions. 874 */ 875 protected function update_post_modified( $post_id, $date ) { 876 global $wpdb; 877 return $wpdb->update( 878 $wpdb->posts, 879 array( 880 'post_modified' => $date, 881 'post_modified_gmt' => $date, 882 ), 883 array( 884 'ID' => $post_id, 885 ), 886 array( 887 '%s', 888 '%s', 889 ), 890 array( 891 '%d', 892 ) 893 ); 894 } 871 895 }
Note: See TracChangeset
for help on using the changeset viewer.