Skip to content

Commit

Permalink
fix: ensure front page can be set if existing front page is deleted (#…
Browse files Browse the repository at this point in the history
…418)

* chore(l10n): update languages/pressbooks-aldine.pot

* fix: ensure new front page can be set once existing front page is deleted

Resolves #402.

---------

Co-authored-by: greatislander <greatislander@users.noreply.github.com>
  • Loading branch information
greatislander and greatislander committed Aug 15, 2023
1 parent 143d5dc commit 735e7b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,7 @@

// Remove unwanted menu pages.
add_action( 'admin_menu', '\Aldine\Actions\remove_menu_items' );

// Remove unwanted actions.
remove_action( 'before_delete_post', '_reset_front_page_settings_for_post' );
remove_action( 'wp_trash_post', '_reset_front_page_settings_for_post' );

0 comments on commit 735e7b8

Please sign in to comment.