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

Add setting for draft blog post status #22

Merged
merged 4 commits into from
Dec 30, 2013

Conversation

ShawnDrew
Copy link
Contributor

Added checkbox for enabling blog post status to be set as draft (fixes #6).

@alexkingorg
Copy link
Contributor

Shouldn't this setting be a dropdown of possible statuses?

@ShawnDrew
Copy link
Contributor Author

Updated with functionality to select post status.

if ($account->option('post_status') === $post_status->name) {
$is_selected = ' selected="selected"';
}
echo '<option class="level-0" value="', $post_status->name, '"', $is_selected,'>', $post_status->label,'</option>';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use WordPress's built-in selected() function here.

alexkingorg added a commit that referenced this pull request Dec 30, 2013
Add setting for draft blog post status
@alexkingorg alexkingorg merged commit 2ffa6b3 into crowdfavorite:develop Dec 30, 2013
@alexkingorg
Copy link
Contributor

Thanks!

@ShawnDrew ShawnDrew deleted the feature/post-as-draft branch January 3, 2014 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add setting to create blog posts as "draft" instead of "publish"
2 participants