Changeset 60235
- Timestamp:
- 05/14/2025 11:57:21 AM (7 months ago)
- Location:
- trunk
- Files:
-
- 6 edited
-
src/wp-admin/edit-comments.php (modified) (1 diff)
-
src/wp-admin/includes/upgrade.php (modified) (1 diff)
-
src/wp-includes/class-wp-xmlrpc-server.php (modified) (1 diff)
-
src/wp-includes/comment.php (modified) (1 diff)
-
src/wp-includes/post.php (modified) (1 diff)
-
tests/phpunit/tests/comment/query.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-comments.php
r56600 r60235 440 440 <?php endif; ?> 441 441 <input type="hidden" name="comment_status" value="<?php echo esc_attr( $comment_status ); ?>" /> 442 <input type="hidden" name="pagegen_timestamp" value="<?php echo esc_attr( current_time( 'mysql', 1) ); ?>" />442 <input type="hidden" name="pagegen_timestamp" value="<?php echo esc_attr( current_time( 'mysql', true ) ); ?>" /> 443 443 444 444 <input type="hidden" name="_total" value="<?php echo esc_attr( $wp_list_table->get_pagination_arg( 'total_items' ) ); ?>" /> -
trunk/src/wp-admin/includes/upgrade.php
r60111 r60235 209 209 // First post. 210 210 $now = current_time( 'mysql' ); 211 $now_gmt = current_time( 'mysql', 1);211 $now_gmt = current_time( 'mysql', true ); 212 212 $first_post_guid = get_option( 'home' ) . '/?p=1'; 213 213 -
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r60175 r60235 5153 5153 5154 5154 $post_date = current_time( 'mysql' ); 5155 $post_date_gmt = current_time( 'mysql', 1);5155 $post_date_gmt = current_time( 'mysql', true ); 5156 5156 5157 5157 $post_data = compact( -
trunk/src/wp-includes/comment.php
r59975 r60235 2320 2320 2321 2321 if ( empty( $commentdata['comment_date_gmt'] ) ) { 2322 $commentdata['comment_date_gmt'] = current_time( 'mysql', 1);2322 $commentdata['comment_date_gmt'] = current_time( 'mysql', true ); 2323 2323 } 2324 2324 -
trunk/src/wp-includes/post.php
r60102 r60235 4624 4624 if ( $update || '0000-00-00 00:00:00' === $post_date ) { 4625 4625 $post_modified = current_time( 'mysql' ); 4626 $post_modified_gmt = current_time( 'mysql', 1);4626 $post_modified_gmt = current_time( 'mysql', true ); 4627 4627 } else { 4628 4628 $post_modified = $post_date; -
trunk/tests/phpunit/tests/comment/query.php
r57750 r60235 3002 3002 */ 3003 3003 public function test_orderby_date_modified_gmt_should_order_by_comment_ID_in_case_of_tie_ASC() { 3004 $now = current_time( 'mysql', 1);3004 $now = current_time( 'mysql', true ); 3005 3005 $comments = self::factory()->comment->create_many( 3006 3006 5, … … 3029 3029 */ 3030 3030 public function test_orderby_date_modified_gmt_should_order_by_comment_ID_in_case_of_tie_DESC() { 3031 $now = current_time( 'mysql', 1);3031 $now = current_time( 'mysql', true ); 3032 3032 $comments = self::factory()->comment->create_many( 3033 3033 5,
Note: See TracChangeset
for help on using the changeset viewer.