Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
andergmartins committed Jun 17, 2020
2 parents ef6bf09 + e2999cf commit 50d9516
Show file tree
Hide file tree
Showing 22 changed files with 5,945 additions and 3,040 deletions.
6 changes: 6 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"presets": [
"@babel/preset-env",
"@babel/preset-react"
]
}
18 changes: 0 additions & 18 deletions common/php/class-module.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,24 +228,6 @@ protected function get_core_post_statuses()
];
}

/**
* Gets the name of the default custom status. If custom statuses are disabled,
* returns 'draft'.
*
* @return str Name of the status
*/
public function get_default_post_status()
{
// Check if custom status module is enabled
$custom_status_module = PublishPress()->custom_status->module->options;

if ($custom_status_module->enabled == 'on') {
return $custom_status_module->default_status;
} else {
return 'draft';
}
}

/**
* Filter to all posts with a given post status (can be a custom status or a built-in status) and optional custom post type.
*
Expand Down
Loading

0 comments on commit 50d9516

Please sign in to comment.