Airplane_Mode_Core::last_checked_themes PHP Метод

last_checked_themes() публичный Метод

Always send back that the latest version of our theme is the one we're running
public last_checked_themes ( ) : object
Результат object the modified output with our information
        public function last_checked_themes()
        {
            // Bail if disabled.
            if (!$this->enabled()) {
                return false;
            }
            // Call the global WP version.
            global $wp_version;
            // Set a blank data array.
            $data = array();
            // Build my theme data array.
            foreach (wp_get_themes() as $theme) {
                $data[$theme->get_stylesheet()] = $theme->get('Version');
            }
            // Return our object.
            return (object) array('last_checked' => time(), 'updates' => array(), 'version_checked' => $wp_version, 'checked' => $data);
        }