-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Templates API: return post modified datetime in response #51362
Commits on Jun 9, 2023
-
All these file changes are so that we can add
modified
to the templ……ate and template part objects in the rest response for WP_REST_Templates_Controller For theme templates, it will add the modified value when we have a post id (which is once the template is first save after user change)
Configuration menu - View commit details
-
Copy full SHA for ceb98ab - Browse repository at this point
Copy the full SHA ceb98abView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1dd2805 - Browse repository at this point
Copy the full SHA 1dd2805View commit details -
Configuration menu - View commit details
-
Copy full SHA for be9285f - Browse repository at this point
Copy the full SHA be9285fView commit details -
_wp_build_title_and_description_for_single_post_type_block_template a…
…nd _wp_build_title_and_description_for_taxonomy_block_template have to be ported across too because they expect WP_Block_Template, not Gutenberg_Block_Template
Configuration menu - View commit details
-
Copy full SHA for b742fb3 - Browse repository at this point
Copy the full SHA b742fb3View commit details -
Revert changes that required pulling all files across and using hooks…
… to add the field to the response.
Configuration menu - View commit details
-
Copy full SHA for f56656f - Browse repository at this point
Copy the full SHA f56656fView commit details
Commits on Jun 13, 2023
-
Now adding the value of
modified
to the response using the get_call……back method on the register_rest_field filter, which is the way I should have done it in the first place :)
Configuration menu - View commit details
-
Copy full SHA for 20e70fd - Browse repository at this point
Copy the full SHA 20e70fdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 71186e5 - Browse repository at this point
Copy the full SHA 71186e5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 303f528 - Browse repository at this point
Copy the full SHA 303f528View commit details
Commits on Jun 15, 2023
-
Update lib/compat/wordpress-6.3/rest-api.php
Co-authored-by: Andrew Serong <14988353+andrewserong@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for b0414a6 - Browse repository at this point
Copy the full SHA b0414a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for fd88de2 - Browse repository at this point
Copy the full SHA fd88de2View commit details