/** * Filter results for Page Analysis tab in default language * * @see wpseo_linkdex_results filter * * @scope admin * @since 1.2.2 * * * @param array $results * @param array $job * @param WP_Post object $post * * @return array */ public static function filter__wpseo_linkdex_results($results, $job, $post) { $job['keyword'] = WPGlobus_Core::text_filter($job['keyword'], WPGlobus::Config()->default_language); $job['keyword_folded'] = WPGlobus_Core::text_filter($job['keyword_folded'], WPGlobus::Config()->default_language); $results = WPGlobus_WPSEO::calculate_results($results, WPGlobus_Core::text_filter($post->post_content, WPGlobus::Config()->default_language), $job, $post); return $results; }
require_once 'includes/class-wpglobus-utils.php'; require_once 'includes/class-wpglobus-wp.php'; require_once 'includes/class-wpglobus-widget.php'; require_once 'includes/class-wpglobus.php'; require_once 'includes/class-wpglobus-core.php'; /** * Initialize */ WPGlobus::$PLUGIN_DIR_PATH = plugin_dir_path(__FILE__); WPGlobus::$PLUGIN_DIR_URL = plugin_dir_url(__FILE__); WPGlobus::Config(); require_once 'includes/class-wpglobus-filters.php'; require_once 'includes/wpglobus-controller.php'; if (defined('WPSEO_VERSION')) { require_once 'includes/class-wpglobus-wpseo.php'; WPGlobus_WPSEO::controller(); } /** * Theme compatibility */ /** * Fix multilingual strings in basic `Customize` * * @since 1.2.1 */ require_once 'includes/class-wpglobus-customize.php'; WPGlobus_Customize::controller(); /** * Support of theme option panels and customizer * @since 1.3.0 */