diff --git a/common/php/class-module.php b/common/php/class-module.php index 7e7cd04d..76e1147b 100644 --- a/common/php/class-module.php +++ b/common/php/class-module.php @@ -218,7 +218,7 @@ protected function get_core_post_statuses() * @since 4.0 */ public function get_custom_status_by($field, $value) { - global $publishpres; + global $publishpress; return $publishpress->getPostStatusBy($field, $value); } @@ -269,8 +269,7 @@ public function get_post_status_friendly_name($status) // Custom statuses only handles workflow statuses if (!in_array($status, ['publish', 'future', 'private', 'trash'])) { - - $status_object = $publishpress->getStatusBy('slug', $status); + $status_object = $publishpress->getPostStatusBy('slug', $status); if ($status_object && !is_wp_error($status_object)) { $status_friendly_name = $status_object->label;