PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/mytube.pm/wp-content/plugins/comet-cache/src/includes/traits/Plugin/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : /home/trave494/mytube.pm/wp-content/plugins/comet-cache/src/includes/traits/Plugin/PostUtils.php |
<?php namespace WebSharks\CometCache\Traits\Plugin; use WebSharks\CometCache\Classes; trait PostUtils { /** * All post statuses. * * @since 150821 Improving bbPress support. * * @return array All post statuses. */ public function postStatuses() { if (!is_null($statuses = &$this->cacheKey('postStatuses'))) { return $statuses; // Already did this. } $statuses = get_post_stati(); $statuses = array_keys($statuses); return $statuses; } /** * All built-in post statuses. * * @since 150821 Improving bbPress support. * * @return array All built-in post statuses. */ public function builtInPostStatuses() { if (!is_null($statuses = &$this->cacheKey('builtInPostStatuses'))) { return $statuses; // Already did this. } $statuses = []; // Initialize. foreach (get_post_stati([], 'objects') as $_key => $_status) { if (!empty($_status->_builtin)) { $statuses[] = $_status->name; } } unset($_key, $_status); // Housekeeping. return $statuses; } }