Ticket #44416: 44416.diff
File 44416.diff, 4.1 KB (added by , 6 years ago) |
---|
-
src/wp-includes/class-wp-comment-query.php
635 635 $number = absint( $this->query_vars['number'] ); 636 636 $offset = absint( $this->query_vars['offset'] ); 637 637 $paged = absint( $this->query_vars['paged'] ); 638 $limits = ''; 638 639 639 640 if ( ! empty( $number ) ) { 640 641 if ( $offset ) { … … 825 826 $join .= "JOIN $wpdb->posts ON $wpdb->posts.ID = $wpdb->comments.comment_post_ID"; 826 827 } 827 828 829 $groupby = ''; 830 828 831 if ( ! empty( $this->meta_query_clauses ) ) { 829 832 $join .= $this->meta_query_clauses['join']; 830 833 -
src/wp-includes/class-wp-xmlrpc-server.php
3710 3710 } 3711 3711 3712 3712 // Do some timestamp voodoo 3713 $comment_date = ''; 3714 $comment_date_gmt = ''; 3715 3713 3716 if ( ! empty( $content_struct['date_created_gmt'] ) ) { 3714 3717 // We know this is supposed to be GMT, so we're going to slap that Z on there by force 3715 3718 $dateCreated = rtrim( $content_struct['date_created_gmt']->getIso(), 'Z' ) . 'Z'; … … 3717 3720 $comment_date_gmt = iso8601_to_datetime( $dateCreated, 'GMT' ); 3718 3721 } 3719 3722 3723 $comment_content = ''; 3724 3720 3725 if ( isset( $content_struct['content'] ) ) { 3721 3726 $comment_content = $content_struct['content']; 3722 3727 } … … 5258 5263 } 5259 5264 5260 5265 // Only use a password if one was given. 5266 $post_password = ''; 5261 5267 if ( isset( $content_struct['wp_password'] ) ) { 5262 5268 $post_password = $content_struct['wp_password']; 5263 5269 } 5264 5270 5265 5271 // Only set a post parent if one was provided. 5272 $post_parent = ''; 5273 5266 5274 if ( isset( $content_struct['wp_page_parent_id'] ) ) { 5267 5275 $post_parent = $content_struct['wp_page_parent_id']; 5268 5276 } … … 5657 5665 } 5658 5666 } 5659 5667 5668 $comment_status = ''; 5669 5660 5670 if ( isset( $content_struct['mt_allow_comments'] ) ) { 5661 5671 if ( ! is_numeric( $content_struct['mt_allow_comments'] ) ) { 5662 5672 switch ( $content_struct['mt_allow_comments'] ) { -
src/wp-includes/comment.php
3091 3091 3092 3092 $comment_post_ID = $comment_parent = 0; 3093 3093 $comment_author = $comment_author_email = $comment_author_url = $comment_content = null; 3094 $user_ID = 0; 3094 3095 3095 3096 if ( isset( $comment_data['comment_post_ID'] ) ) { 3096 3097 $comment_post_ID = (int) $comment_data['comment_post_ID']; -
src/wp-includes/post.php
3546 3546 $post_parent = 0; 3547 3547 } 3548 3548 3549 $new_postarr = array_merge( 3550 array( 3551 'ID' => $post_ID, 3552 ), 3553 compact( array_diff( array_keys( $defaults ), array( 'context', 'filter' ) ) ) 3554 ); 3555 3549 3556 /** 3550 3557 * Filters the post parent -- used to check for and prevent hierarchy loops. 3551 3558 * … … 3556 3563 * @param array $new_postarr Array of parsed post data. 3557 3564 * @param array $postarr Array of sanitized, but otherwise unmodified post data. 3558 3565 */ 3559 $post_parent = apply_filters( 'wp_insert_post_parent', $post_parent, $post_ID, compact( array_keys( $postarr ) ), $postarr );3566 $post_parent = apply_filters( 'wp_insert_post_parent', $post_parent, $post_ID, $new_postarr, $postarr ); 3560 3567 3561 3568 /* 3562 3569 * If the post is being untrashed and it has a desired slug stored in post meta, -
tests/phpunit/tests/dependencies/scripts.php
825 825 * @covers ::wp_enqueue_code_editor() 826 826 */ 827 827 public function test_wp_enqueue_code_editor_when_generated_array_by_compact_will_be_passed() { 828 $file = ''; 829 828 830 $wp_enqueue_code_editor = wp_enqueue_code_editor( compact( 'file' ) ); 829 831 $this->assertNonEmptyMultidimensionalArray( $wp_enqueue_code_editor );