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

Fix status list, calendar, and story budget to show custom post statuses and show post states in post list. #446

Merged
merged 20 commits into from
Apr 4, 2018

Commits on Mar 20, 2018

  1. Fix status list to show custom post statuses

    Fixes #445
    
    Previously, the `get_post_status_friendly_name` function was retreiving the WordPress built-in Post Statuses and the Custom Statuses set within the plugin interface.  If you happen to register a post status another way, it would not appear in the Status Column of your Post Type.
    
    This fix simplifies the logic to just get all the post stati, built-in, registered through the plugin interface, and registered on their own.  It returns the label that was set for each status.
    mikeyarce committed Mar 20, 2018
    Configuration menu
    Copy the full SHA
    56cb009 View commit details
    Browse the repository at this point in the history
  2. Get post status label directly

    Stop using `get_post_status_friendly_name`
    mikeyarce committed Mar 20, 2018
    Configuration menu
    Copy the full SHA
    3efb837 View commit details
    Browse the repository at this point in the history
  3. Get custom post status in Calendar

    Get custom post statuses in the Calendar view and in the ICS file
    mikeyarce committed Mar 20, 2018
    Configuration menu
    Copy the full SHA
    42f9f9d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ef8eee1 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6a3b167 View commit details
    Browse the repository at this point in the history
  6. Add back old get_post_status_friendly_name function

    Instead of changing this function entirely, let’s just stop using it.  This commit puts it back to what it used to be so that Email Notifications can still use it.
    mikeyarce committed Mar 20, 2018
    Configuration menu
    Copy the full SHA
    659cd6a View commit details
    Browse the repository at this point in the history
  7. Remove dependency on get_post_status_friendly_name function

    Get the post status label directly instead of using a helper function
    mikeyarce committed Mar 20, 2018
    Configuration menu
    Copy the full SHA
    b1ce1fb View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2018

  1. Remove get_post_status_friendly_name function

    Function is no longer needed
    mikeyarce committed Mar 21, 2018
    Configuration menu
    Copy the full SHA
    4f04c48 View commit details
    Browse the repository at this point in the history
  2. Add support for custom statuses in the Calendar

    Get all statuses for posts, filter all statuses, and make sure “Unpublished” accounts for custom statuses.
    mikeyarce committed Mar 21, 2018
    Configuration menu
    Copy the full SHA
    29fd882 View commit details
    Browse the repository at this point in the history
  3. Add custom status support to Story Budget

    Get and filter all statuses for Story Budget.  Update the “Unpublished” status to account for these custom statuses.
    mikeyarce committed Mar 21, 2018
    Configuration menu
    Copy the full SHA
    5fecd95 View commit details
    Browse the repository at this point in the history
  4. Show Post States if they are not also a post status

    In some instances, there will be a Post that has a Post State that is not it’s post status.  Example: Gutenberg, Liveblog.
    
    We are filtering all post states with `check_if_post_state_is_status` and if a post’s post state does not match it’s post status, we will show it as a post state next to the title of the post.  The Post Status will remain in the Status column.
    mikeyarce committed Mar 21, 2018
    Configuration menu
    Copy the full SHA
    3ea309a View commit details
    Browse the repository at this point in the history
  5. Update to yoda conditions

    mikeyarce committed Mar 21, 2018
    Configuration menu
    Copy the full SHA
    2295d9c View commit details
    Browse the repository at this point in the history
  6. Escaping

    mikeyarce committed Mar 21, 2018
    Configuration menu
    Copy the full SHA
    98abbdd View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    98ab0e1 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f077e02 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    ab29a0f View commit details
    Browse the repository at this point in the history
  10. Fix conditional for $old_status

    Need to check if it’s a new post and return if it is.
    mikeyarce committed Mar 21, 2018
    Configuration menu
    Copy the full SHA
    80ec263 View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2018

  1. Configuration menu
    Copy the full SHA
    02c29cf View commit details
    Browse the repository at this point in the history
  2. Fix Spacing

    mikeyarce committed Mar 22, 2018
    Configuration menu
    Copy the full SHA
    ec1a0b2 View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2018

  1. Return a value for $old_status_friendly_name earlier

    This prevents duplicate conditional statements and sets a value for $old_status_friendly_name so that New or Auto-Draft that had no previous value will have something valid.
    mikeyarce committed Mar 29, 2018
    2 Configuration menu
    Copy the full SHA
    071791d View commit details
    Browse the repository at this point in the history