-
Notifications
You must be signed in to change notification settings - Fork 383
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hide Stories options and add deprecation notice (#4219)
* Hide Stories options if no `amp_story` posts are found * Add Stories deprecation notice * Reword notice Co-Authored-By: Weston Ruter <westonruter@google.com> * Refactor how stories experience is considered enabled * Hide experiences section options if Stories not enabled * Always show the Stories deprecation notice if the user has `amp_story` posts Fixes #4202. * Show a different notice if the user has no Story posts * Show warning notice only on AMP settings screen & Stories list page * Show warning notice in Story editor * Reword deprecation notice Co-Authored-By: Weston Ruter <westonruter@google.com> * Use `wp_json_encode` to sanitize notice in editor * Add link to docs on how to export Stories * Rename 'Website Mode' to 'Template Mode' * Make action label translatable Co-Authored-By: Weston Ruter <westonruter@google.com> * Refactor Stories deprecation notice on AMP settings page * Get Story post count irregardless of the post type being registered * Handle story options only if the experience is enabled * Fix failing test * Remove failing E2E tests * Fix failing test * Add admin pointer for exporting stories; remove old Stories admin pointer Also use 'back up' instead of 'backup' for verb. * Use title case for 'Template Mode' Co-authored-by: Weston Ruter <westonruter@google.com>
- Loading branch information
1 parent
91cea86
commit 9fe1583
Showing
15 changed files
with
264 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.