-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Ensure that Gutenberg is disabled when on the assigned blog page in WordPress (as per similar functionality from edit-form-advanced.php). * Move code into the gutenberg_can_edit_post() function. * Use Yoda conditional. Use strict equality, which requires casting the `page_for_posts` option as an integer. Added an inline comment. * Added unit tests to ensure gutenberg_can_edit_post() returns true when the posts page has content and false when the posts page has no content.
- Loading branch information
Showing
2 changed files
with
19 additions
and
0 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