-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Update/global styles revision extends revisions controller #6105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
spacedmonkey
wants to merge
27
commits into
WordPress:trunk
from
spacedmonkey:update/global-styles-revision-extends-revisions-controller
Closed
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
7d192d8
Initial commit.
ramonjd d7b4c1c
Adding title to schema.
ramonjd 41c98a5
Remove permissions checks and favour parent's
ramonjd 59d6953
Remove duplicated tests
ramonjd dbcc3b5
Reverting post type registration changes as it assigns an autosave co…
ramonjd 25cbe83
Regenerated fixture
ramonjd e9d1f10
Revert introducing title in schema
ramonjd ec4229f
Reinstating global styles revision controller tests that were duplica…
ramonjd ca524b2
Update src/wp-includes/rest-api/endpoints/class-wp-rest-global-styles…
ramonjd 93190ae
Excluding search, include and exclude from the collection query params
ramonjd b43344d
Now that https://github.com/WordPress/wordpress-develop/pull/5655 has…
ramonjd dac8e0b
Pulling across changes from https://github.com/WordPress/wordpress-de…
ramonjd acd2590
Implementing latest round of feedback:
ramonjd dfa02f8
Apply suggestions from code review
spacedmonkey f6f45e3
Fix lints
jonnynews 038331b
Remove ideas
jonnynews 6c7a149
Merge branch 'trunk' into update/global-styles-revision-extends-revis…
jonnynews 95db1e9
Fix
jonnynews 9fb3e30
Add allow_batch parameter.
jonnynews 319bdff
Be overly safe with `__construct` method.
jonnynews 095c7d0
Apply suggestions from code review
spacedmonkey 1fef997
Add 'allow_batch' option to API endpoints in WP API
jonnynews 70d68da
Update version annotations for wp_global_styles related changes
spacedmonkey c62fed9
Simplify unset function calls in global styles revisions controller
spacedmonkey cc916ac
Merge branch 'trunk' into update/global-styles-revision-extends-revis…
spacedmonkey 7c526bd
Disable autosave for global styles in WordPress
spacedmonkey fe4fc65
Remove redundant comment in wp-post-type.php
spacedmonkey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Disable autosave for global styles in WordPress
The commit disables the autosave endpoints for the global styles in WordPress. Modifications were made to both post.php and class-wp-post-type.php to prevent autosave for the 'wp_global_styles' post type. This ensures that global Styles does not trigger unnecessary autosaves.
- Loading branch information
commit 7c526bd178cde4fa54a7a22dcefeecf0599c971c
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of doing this, add
remove_post_type_support( 'wp_global_styles', 'autosave' )below.