PATH:
home
/
letacommog
/
laindinois
/
OLD
/
wp-content
/
plugins
/
wordpress-seo-premium
/
premium
/
classes
<?php /** * WPSEO Premium plugin file. * * @package WPSEO\Premium */ /** * Load WordPress SEO translations from WordPress.org for the Free part of the plugin, to make sure the translations * are present. */ class WPSEO_Premium_Free_Translations implements WPSEO_WordPress_Integration { /** * Registers all hooks to WordPress. */ public function register_hooks() { add_filter( 'http_request_args', array( $this, 'request_wordpress_seo_translations' ), 10, 2 ); } /** * Adds Yoast SEO (Free) to the update checklist of installed plugins, to check for new translations. * * @param array $args HTTP Request arguments to modify. * @param string $url The HTTP request URI that is executed. * * @return array The modified Request arguments to use in the update request. */ public function request_wordpress_seo_translations( $args, $url ) { // Only do something on upgrade requests. if ( strpos( $url, 'api.wordpress.org/plugins/update-check' ) === false ) { return $args; } /* * If Yoast SEO is already in the list, don't add it again. * * Checking this by name because the install path is not guaranteed. * The capitalized json data defines the array keys, therefore we need to check and define these as such. */ $plugins = json_decode( $args['body']['plugins'], true ); foreach ( $plugins['plugins'] as $slug => $data ) { if ( isset( $data['Name'] ) && $data['Name'] === 'Yoast SEO' ) { return $args; } } /* * Add an entry to the list that matches the WordPress.org slug for Yoast SEO Free. * * This entry is based on the currently present data from this plugin, to make sure the version and textdomain * settings are as expected. Take care of the capitalized array key as before. */ $plugins['plugins']['wordpress-seo/wp-seo.php'] = $plugins['plugins'][ plugin_basename( WPSEO_PREMIUM_PLUGIN_FILE ) ]; // Override the name of the plugin. $plugins['plugins']['wordpress-seo/wp-seo.php']['Name'] = 'Yoast SEO'; // Override the version of the plugin to prevent increasing the update count. $plugins['plugins']['wordpress-seo/wp-seo.php']['Version'] = '9999.0'; // Overwrite the plugins argument in the body to be sent in the upgrade request. $args['body']['plugins'] = wp_json_encode( $plugins ); return $args; } }
[+]
..
[-] premium-orphaned-content-support.php
[edit]
[-] validation-error.php
[edit]
[-] term-watcher.php
[edit]
[-] premium-redirect-export-manager.php
[edit]
[-] upgrade-manager.php
[edit]
[-] premium-import-manager.php
[edit]
[+]
redirect
[-] premium-prominent-words-link-service.php
[edit]
[-] premium-post-data-endpoint.php
[edit]
[-] post-watcher.php
[edit]
[-] premium-prominent-words-service.php
[edit]
[-] premium-link-suggestions-service.php
[edit]
[-] premium-prominent-words-recalculation.php
[edit]
[-] premium-prominent-words-link-endpoint.php
[edit]
[-] premium-gsc.php
[edit]
[-] product-premium.php
[edit]
[-] facebook-profile.php
[edit]
[-] premium-orphaned-post-notifier.php
[edit]
[-] premium-link-suggestions-endpoint.php
[edit]
[-] premium-redirect-service.php
[edit]
[-] premium-prominent-words-versioning.php
[edit]
[-] premium-register-capabilities.php
[edit]
[-] premium-prominent-words-recalculation-notifier.php
[edit]
[-] premium-expose-shortlinks.php
[edit]
[-] premium-stale-cornerstone-content-filter.php
[edit]
[-] premium-asset-js-l10n.php
[edit]
[-] premium-autoloader.php
[edit]
[-] premium-keyword-export-manager.php
[edit]
[-] dublin-core.php
[edit]
[-] premium-assets.php
[edit]
[+]
views
[-] wordpress-integration-interface.php
[edit]
[-] premium-prominent-words-recalculation-service.php
[edit]
[-] premium-stale-cornerstone-content-notification.php
[edit]
[-] custom-fields-plugin.php
[edit]
[-] premium-prominent-words-registration.php
[edit]
[-] watcher.php
[edit]
[-] validation-result.php
[edit]
[-] premium-beacon-setting.php
[edit]
[-] premium-redirect-endpoint.php
[edit]
[-] premium-prominent-words-support.php
[edit]
[-] premium-free-translations.php
[edit]
[-] premium-javascript-strings.php
[edit]
[-] metabox-link-suggestions.php
[edit]
[-] premium-prominent-words-language-support.php
[edit]
[-] premium-prominent-words-recalculation-endpoint.php
[edit]
[-] multi-keyword.php
[edit]
[-] social-previews.php
[edit]
[-] premium-post-data-service.php
[edit]
[-] validation-warning.php
[edit]
[+]
export
[-] premium-orphaned-content-utils.php
[edit]
[-] premium-gsc-modal.php
[edit]
[-] premium-metabox.php
[edit]
[-] premium-orphaned-post-filter.php
[edit]
[-] premium-prominent-words-unindexed-post-query.php
[edit]
[-] premium-prominent-words-endpoint.php
[edit]
[-] premium-orphaned-post-query.php
[edit]