Skip to content
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

Merged
merged 10 commits into from
Jun 15, 2023

Commits on Jun 9, 2023

  1. 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)
    ramonjd committed Jun 9, 2023
    Configuration menu
    Copy the full SHA
    ceb98ab View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1dd2805 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    be9285f View commit details
    Browse the repository at this point in the history
  4. _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
    ramonjd committed Jun 9, 2023
    Configuration menu
    Copy the full SHA
    b742fb3 View commit details
    Browse the repository at this point in the history
  5. Revert changes that required pulling all files across and using hooks…

    … to add the field to the response.
    ramonjd committed Jun 9, 2023
    Configuration menu
    Copy the full SHA
    f56656f View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2023

  1. 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 :)
    ramonjd committed Jun 13, 2023
    Configuration menu
    Copy the full SHA
    20e70fd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    71186e5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    303f528 View commit details
    Browse the repository at this point in the history

Commits on Jun 15, 2023

  1. Update lib/compat/wordpress-6.3/rest-api.php

    Co-authored-by: Andrew Serong <14988353+andrewserong@users.noreply.github.com>
    ramonjd and andrewserong committed Jun 15, 2023
    Configuration menu
    Copy the full SHA
    b0414a6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fd88de2 View commit details
    Browse the repository at this point in the history