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

Setup postdata on field levels #714

Merged
merged 4 commits into from Mar 11, 2019

Commits on Mar 6, 2019

  1. Improve global post test

    The global post is not used if the post_excerpt is already set.
    Change it to empty string to force post_excerpt generation via
    the global post.
    esamattis committed Mar 6, 2019
    Copy the full SHA
    8275def View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2019

  1. Copy the full SHA
    85a99ed View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2019

  1. Setup postdata on field levels

    Setting it up in resolve_post_object is too late because it fires before
    the resolvers as resolvers can be called with different posts.
    
    This also ensures that the global post is reset correctly after the
    request.
    esamattis committed Mar 11, 2019
    Copy the full SHA
    68b35a6 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    3569055 View commit details
    Browse the repository at this point in the history