Changeset 13108 for trunk/src/bp-core/bp-core-theme-compatibility.php
- Timestamp:
- 09/12/2021 08:43:39 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-theme-compatibility.php
r12745 r13108 550 550 // Switch defaults if post is set. 551 551 if ( isset( $wp_query->post ) ) { 552 $dummy = wp_parse_args( $args, array( 553 'ID' => $wp_query->post->ID, 554 'post_status' => $wp_query->post->post_status, 555 'post_author' => $wp_query->post->post_author, 556 'post_parent' => $wp_query->post->post_parent, 557 'post_type' => $wp_query->post->post_type, 558 'post_date' => $wp_query->post->post_date, 559 'post_date_gmt' => $wp_query->post->post_date_gmt, 560 'post_modified' => $wp_query->post->post_modified, 561 'post_modified_gmt' => $wp_query->post->post_modified_gmt, 562 'post_content' => $wp_query->post->post_content, 563 'post_title' => $wp_query->post->post_title, 564 'post_excerpt' => $wp_query->post->post_excerpt, 565 'post_content_filtered' => $wp_query->post->post_content_filtered, 566 'post_mime_type' => $wp_query->post->post_mime_type, 567 'post_password' => $wp_query->post->post_password, 568 'post_name' => $wp_query->post->post_name, 569 'guid' => $wp_query->post->guid, 570 'menu_order' => $wp_query->post->menu_order, 571 'pinged' => $wp_query->post->pinged, 572 'to_ping' => $wp_query->post->to_ping, 573 'ping_status' => $wp_query->post->ping_status, 574 'comment_status' => $wp_query->post->comment_status, 575 'comment_count' => $wp_query->post->comment_count, 576 'filter' => $wp_query->post->filter, 577 578 'is_404' => false, 579 'is_page' => false, 580 'is_single' => false, 581 'is_archive' => false, 582 'is_tax' => false, 583 ) ); 552 $dummy = bp_parse_args( 553 $args, 554 array( 555 'ID' => $wp_query->post->ID, 556 'post_status' => $wp_query->post->post_status, 557 'post_author' => $wp_query->post->post_author, 558 'post_parent' => $wp_query->post->post_parent, 559 'post_type' => $wp_query->post->post_type, 560 'post_date' => $wp_query->post->post_date, 561 'post_date_gmt' => $wp_query->post->post_date_gmt, 562 'post_modified' => $wp_query->post->post_modified, 563 'post_modified_gmt' => $wp_query->post->post_modified_gmt, 564 'post_content' => $wp_query->post->post_content, 565 'post_title' => $wp_query->post->post_title, 566 'post_excerpt' => $wp_query->post->post_excerpt, 567 'post_content_filtered' => $wp_query->post->post_content_filtered, 568 'post_mime_type' => $wp_query->post->post_mime_type, 569 'post_password' => $wp_query->post->post_password, 570 'post_name' => $wp_query->post->post_name, 571 'guid' => $wp_query->post->guid, 572 'menu_order' => $wp_query->post->menu_order, 573 'pinged' => $wp_query->post->pinged, 574 'to_ping' => $wp_query->post->to_ping, 575 'ping_status' => $wp_query->post->ping_status, 576 'comment_status' => $wp_query->post->comment_status, 577 'comment_count' => $wp_query->post->comment_count, 578 'filter' => $wp_query->post->filter, 579 580 'is_404' => false, 581 'is_page' => false, 582 'is_single' => false, 583 'is_archive' => false, 584 'is_tax' => false, 585 ) 586 ); 584 587 } else { 585 $dummy = wp_parse_args( $args, array( 586 'ID' => -9999, 587 'post_status' => 'public', 588 'post_author' => 0, 589 'post_parent' => 0, 590 'post_type' => 'page', 591 'post_date' => 0, 592 'post_date_gmt' => 0, 593 'post_modified' => 0, 594 'post_modified_gmt' => 0, 595 'post_content' => '', 596 'post_title' => '', 597 'post_excerpt' => '', 598 'post_content_filtered' => '', 599 'post_mime_type' => '', 600 'post_password' => '', 601 'post_name' => '', 602 'guid' => '', 603 'menu_order' => 0, 604 'pinged' => '', 605 'to_ping' => '', 606 'ping_status' => '', 607 'comment_status' => 'closed', 608 'comment_count' => 0, 609 'filter' => 'raw', 610 611 'is_404' => false, 612 'is_page' => false, 613 'is_single' => false, 614 'is_archive' => false, 615 'is_tax' => false, 616 ) ); 588 $dummy = bp_parse_args( 589 $args, 590 array( 591 'ID' => -9999, 592 'post_status' => 'public', 593 'post_author' => 0, 594 'post_parent' => 0, 595 'post_type' => 'page', 596 'post_date' => 0, 597 'post_date_gmt' => 0, 598 'post_modified' => 0, 599 'post_modified_gmt' => 0, 600 'post_content' => '', 601 'post_title' => '', 602 'post_excerpt' => '', 603 'post_content_filtered' => '', 604 'post_mime_type' => '', 605 'post_password' => '', 606 'post_name' => '', 607 'guid' => '', 608 'menu_order' => 0, 609 'pinged' => '', 610 'to_ping' => '', 611 'ping_status' => '', 612 'comment_status' => 'closed', 613 'comment_count' => 0, 614 'filter' => 'raw', 615 616 'is_404' => false, 617 'is_page' => false, 618 'is_single' => false, 619 'is_archive' => false, 620 'is_tax' => false, 621 ) 622 ); 617 623 } 618 624
Note: See TracChangeset
for help on using the changeset viewer.