Skip to content

Commit

Permalink
chore: remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasio committed Mar 9, 2024
1 parent 933a2b6 commit af7cddd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions wp/headless-wp/tests/php/tests/TestPreview.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ public function set_up() {
*/
$this->wp_rewrite->init();
$this->wp_rewrite->set_permalink_structure( '/%postname%/' );

add_filter( 'tenup_headless_wp_should_force_drafts_to_have_permalinks', '__return_true' );
}

/**
Expand All @@ -85,7 +83,6 @@ public function set_up() {
*/
public function tear_down() {
parent::tear_down();
remove_filter( 'tenup_headless_wp_should_force_drafts_to_have_permalinks', '__return_true' );
}

/**
Expand Down

0 comments on commit af7cddd

Please sign in to comment.