Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions tests/phpunit/tests/canonical.php
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ public function data_redirect_guess_404_permalink_with_custom_statuses() {
*
* @ticket 43056
* @ticket 59795
* @ticket 44964
*
* @dataProvider data_redirect_guess_404_permalink_post_types
*/
Expand Down Expand Up @@ -413,6 +414,10 @@ public function data_redirect_guess_404_permalink_post_types() {
'original_url' => '/?name=private-cpt-po&post_type[]=wp_tests_private',
'expected' => '/?name=private-cpt-po&post_type[]=wp_tests_private',
),
'do not leak private post type mixed in with a public one' => array(
'original_url' => '/?name=private-cpt-po&post_type[]=page&post_type[]=wp_tests_private',
'expected' => '/?name=private-cpt-po&post_type[]=page&post_type[]=wp_tests_private',
),
);
}

Expand Down
Loading