PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
wordpress-seo
/
admin
<?php /** * WPSEO plugin file. * * @package WPSEO\Admin */ /** * Localizes JavaScript files. * * @codeCoverageIgnore * @deprecated 18.0 */ final class WPSEO_Admin_Asset_Yoast_Components_L10n { /** * Represents the asset manager. * * @var WPSEO_Admin_Asset_Manager */ protected $asset_manager; /** * WPSEO_Admin_Asset_Yoast_Components_L10n constructor. * * @codeCoverageIgnore * @deprecated 18.0 */ public function __construct() { _deprecated_constructor( __CLASS__, '18.0' ); $this->asset_manager = new WPSEO_Admin_Asset_Manager(); } /** * Localizes the given script with the JavaScript translations. * * @codeCoverageIgnore * @deprecated 18.0 * * @param string $script_handle The script handle to localize for. * * @return void */ public function localize_script( $script_handle ) { _deprecated_function( __FUNCTION__, '18.0' ); $translations = [ 'yoast-components' => $this->get_translations( 'yoast-components' ), 'wordpress-seo' => $this->get_translations( 'wordpress-seojs' ), 'yoast-schema-blocks' => $this->get_translations( 'yoast-schema-blocks' ), ]; $this->asset_manager->localize_script( $script_handle, 'wpseoYoastJSL10n', $translations ); } /** * Returns translations necessary for JS files. * * @codeCoverageIgnore * @deprecated 18.0 * * @param string $component The component to retrieve the translations for. * @return object|null The translations in a Jed format for JS files. */ protected function get_translations( $component ) { _deprecated_function( __FUNCTION__, '18.0' ); $locale = \get_user_locale(); $file = WPSEO_PATH . 'languages/' . $component . '-' . $locale . '.json'; if ( file_exists( $file ) ) { // phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents -- Retrieving a local file. $file = file_get_contents( $file ); if ( is_string( $file ) && $file !== '' ) { return json_decode( $file, true ); } } return null; } }
[-] class-yoast-form.php
[edit]
[-] class-expose-shortlinks.php
[edit]
[+]
ajax
[-] class-admin.php
[edit]
[-] class-collector.php
[edit]
[-] class-yoast-notification-center.php
[edit]
[+]
tracking
[+]
watchers
[-] class-suggested-plugins.php
[edit]
[-] class-plugin-conflict.php
[edit]
[-] class-admin-asset-location.php
[edit]
[-] class-export.php
[edit]
[-] class-admin-recommended-replace-vars.php
[edit]
[-] ajax.php
[edit]
[+]
services
[-] class-bulk-editor-list-table.php
[edit]
[-] class-yoast-notification.php
[edit]
[+]
notifiers
[-] interface-installable.php
[edit]
[-] class-admin-gutenberg-compatibility-notification.php
[edit]
[-] class-remote-request.php
[edit]
[-] class-paper-presenter.php
[edit]
[-] class-meta-columns.php
[edit]
[-] index.php
[edit]
[+]
metabox
[-] class-yoast-plugin-conflict.php
[edit]
[+]
pages
[-] class-admin-asset-dev-server-location.php
[edit]
[+]
taxonomy
[-] class-asset.php
[edit]
[-] class-my-yoast-proxy.php
[edit]
[-] class-admin-init.php
[edit]
[+]
google_search_console
[-] class-bulk-title-editor-list-table.php
[edit]
[-] class-gutenberg-compatibility.php
[edit]
[-] class-premium-popup.php
[edit]
[+]
listeners
[-] class-yoast-network-settings-api.php
[edit]
[+]
roles
[-] class-admin-asset-analysis-worker-location.php
[edit]
[-] class-admin-asset-yoast-components-l10n.php
[edit]
[+]
formatter
[-] class-option-tabs.php
[edit]
[-] class-yoast-notifications.php
[edit]
[-] class-option-tab.php
[edit]
[-] class-schema-person-upgrade-notification.php
[edit]
[+]
capabilities
[-] class-product-upsell-notice.php
[edit]
[-] class-yoast-dashboard-widget.php
[edit]
[-] class-admin-asset-manager.php
[edit]
[-] class-config.php
[edit]
[-] admin-settings-changed-listener.php
[edit]
[-] class-premium-upsell-admin-block.php
[edit]
[-] class-admin-help-panel.php
[edit]
[-] class-option-tabs-formatter.php
[edit]
[-] class-admin-utils.php
[edit]
[-] class-customizer.php
[edit]
[-] class-yoast-input-validation.php
[edit]
[+]
menu
[+]
import
[+]
filters
[-] class-plugin-availability.php
[edit]
[-] class-helpscout.php
[edit]
[+]
endpoints
[-] class-bulk-description-editor-list-table.php
[edit]
[-] interface-collection.php
[edit]
[+]
..
[-] class-yoast-columns.php
[edit]
[-] class-yoast-network-admin.php
[edit]
[-] class-admin-asset-seo-location.php
[edit]
[-] class-admin-user-profile.php
[edit]
[-] class-database-proxy.php
[edit]
[+]
exceptions
[-] class-primary-term-admin.php
[edit]
[-] class-admin-editor-specific-replace-vars.php
[edit]
[+]
views
[+]
statistics