if (self::$have_min === false) { return; } // stop here $this->filters = new WpssoJsonFilters($this->p); $this->schema = new WpssoJsonSchema($this->p); } public function wpsso_init_plugin() { if ($this->p->debug->enabled) { $this->p->debug->mark(); } if (self::$have_min === false) { return $this->min_version_notice(); } } private function min_version_notice() { $info = WpssoJsonConfig::$cf['plugin']['wpssojson']; $wpsso_version = WpssoConfig::get_version(); if ($this->p->debug->enabled) { $this->p->debug->log($info['name'] . ' requires ' . $info['req']['short'] . ' v' . $info['req']['min_version'] . ' or newer (' . $wpsso_version . ' installed)'); } if (is_admin()) { $this->p->notice->err(sprintf(__('The %1$s extension v%2$s requires %3$s v%4$s or newer (v%5$s currently installed).', 'wpsso-schema-json-ld'), $info['name'], $info['version'], $info['req']['short'], $info['req']['min_version'], $wpsso_version)); } } } global $wpssojson; $wpssojson =& WpssoJson::get_instance(); }