Skip to content

Commit

Permalink
Fix error notices created from typo in variable
Browse files Browse the repository at this point in the history
See #227
  • Loading branch information
danielbachhuber committed Dec 9, 2013
1 parent a06fd82 commit 7e448bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/custom-status/custom-status.php
Expand Up @@ -557,12 +557,12 @@ function get_custom_statuses( $args = array() ) {

// If this post type doesn't support custom statuses, we should return WP default in our format.
if ( $disable_custom_statuses ) {
$draft = isset( $wp_post_statuses['draft'] ) ? $wp_post_statuss['draft'] : new stdClass();
$draft = isset( $wp_post_statuses['draft'] ) ? $wp_post_statuses['draft'] : new stdClass();
$draft->slug = 'draft';
$draft->position = 1;
$draft->name = 'Draft';

$pending = isset( $wp_post_statuses['pending'] ) ? $wp_post_statuss['pending'] : new stdClass();
$pending = isset( $wp_post_statuses['pending'] ) ? $wp_post_statuses['pending'] : new stdClass();
$pending->slug = 'pending';
$pending->position = 2;
$pending->name = 'Pending Review';
Expand Down

0 comments on commit 7e448bf

Please sign in to comment.