-
Notifications
You must be signed in to change notification settings - Fork 133
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
Commits on Mar 20, 2018
-
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.
Configuration menu - View commit details
-
Copy full SHA for 56cb009 - Browse repository at this point
Copy the full SHA 56cb009View commit details -
Get post status label directly
Stop using `get_post_status_friendly_name`
Configuration menu - View commit details
-
Copy full SHA for 3efb837 - Browse repository at this point
Copy the full SHA 3efb837View commit details -
Get custom post status in Calendar
Get custom post statuses in the Calendar view and in the ICS file
Configuration menu - View commit details
-
Copy full SHA for 42f9f9d - Browse repository at this point
Copy the full SHA 42f9f9dView commit details -
Configuration menu - View commit details
-
Copy full SHA for ef8eee1 - Browse repository at this point
Copy the full SHA ef8eee1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a3b167 - Browse repository at this point
Copy the full SHA 6a3b167View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 659cd6a - Browse repository at this point
Copy the full SHA 659cd6aView commit details -
Remove dependency on get_post_status_friendly_name function
Get the post status label directly instead of using a helper function
Configuration menu - View commit details
-
Copy full SHA for b1ce1fb - Browse repository at this point
Copy the full SHA b1ce1fbView commit details
Commits on Mar 21, 2018
-
Remove get_post_status_friendly_name function
Function is no longer needed
Configuration menu - View commit details
-
Copy full SHA for 4f04c48 - Browse repository at this point
Copy the full SHA 4f04c48View commit details -
Add support for custom statuses in the Calendar
Get all statuses for posts, filter all statuses, and make sure “Unpublished” accounts for custom statuses.
Configuration menu - View commit details
-
Copy full SHA for 29fd882 - Browse repository at this point
Copy the full SHA 29fd882View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 5fecd95 - Browse repository at this point
Copy the full SHA 5fecd95View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 3ea309a - Browse repository at this point
Copy the full SHA 3ea309aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2295d9c - Browse repository at this point
Copy the full SHA 2295d9cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 98abbdd - Browse repository at this point
Copy the full SHA 98abbddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 98ab0e1 - Browse repository at this point
Copy the full SHA 98ab0e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for f077e02 - Browse repository at this point
Copy the full SHA f077e02View commit details -
Configuration menu - View commit details
-
Copy full SHA for ab29a0f - Browse repository at this point
Copy the full SHA ab29a0fView commit details -
Fix conditional for $old_status
Need to check if it’s a new post and return if it is.
Configuration menu - View commit details
-
Copy full SHA for 80ec263 - Browse repository at this point
Copy the full SHA 80ec263View commit details
Commits on Mar 22, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 02c29cf - Browse repository at this point
Copy the full SHA 02c29cfView commit details -
Configuration menu - View commit details
-
Copy full SHA for ec1a0b2 - Browse repository at this point
Copy the full SHA ec1a0b2View commit details
Commits on Mar 29, 2018
-
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.
2Configuration menu - View commit details
-
Copy full SHA for 071791d - Browse repository at this point
Copy the full SHA 071791dView commit details