khaihihi
This commit is contained in:
@@ -0,0 +1,119 @@
|
||||
<?php
|
||||
/**
|
||||
* WPSEO plugin file.
|
||||
*
|
||||
* @package WPSEO\Admin\ConfigurationUI
|
||||
*/
|
||||
|
||||
/**
|
||||
* Class WPSEO_Config_Component_Connect_Google_Search_Console.
|
||||
*
|
||||
* @deprecated 12.5
|
||||
*
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class WPSEO_Config_Component_Connect_Google_Search_Console implements WPSEO_Config_Component {
|
||||
|
||||
/**
|
||||
* Option identifier where the GSC token is stored.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const OPTION_ACCESS_TOKEN = 'wpseo-gsc-access_token';
|
||||
|
||||
/**
|
||||
* Option identifier where the GSC refresh token is stored.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
const OPTION_REFRESH_TOKEN = 'wpseo-gsc-refresh_token';
|
||||
|
||||
/**
|
||||
* Service to use.
|
||||
*
|
||||
* @var WPSEO_GSC_Service
|
||||
*/
|
||||
protected $gsc_service;
|
||||
|
||||
/**
|
||||
* WPSEO_Config_Component_Connect_Google_Search_Console constructor.
|
||||
*
|
||||
* @deprecated 12.5
|
||||
*
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function __construct() {
|
||||
_deprecated_function( __METHOD__, 'WPSEO 12.5' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the Google Search Console service.
|
||||
*
|
||||
* @deprecated 12.5
|
||||
*
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param mixed $service Set service to use.
|
||||
*/
|
||||
public function set_gsc_service( $service ) {
|
||||
_deprecated_function( __METHOD__, 'WPSEO 12.5' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the component identifier.
|
||||
*
|
||||
* @deprecated 12.5
|
||||
*
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get_identifier() {
|
||||
_deprecated_function( __METHOD__, 'WPSEO 12.5' );
|
||||
|
||||
return 'ConnectGoogleSearchConsole';
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the field.
|
||||
*
|
||||
* @deprecated 12.5
|
||||
*
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return null
|
||||
*/
|
||||
public function get_field() {
|
||||
_deprecated_function( __METHOD__, 'WPSEO 12.5' );
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the data for the field.
|
||||
*
|
||||
* @deprecated 12.5
|
||||
*
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function get_data() {
|
||||
_deprecated_function( __METHOD__, 'WPSEO 12.5' );
|
||||
|
||||
return [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Save data.
|
||||
*
|
||||
* @param array $data Data containing changes.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function set_data( $data ) {
|
||||
_deprecated_function( __METHOD__, 'WPSEO 12.5' );
|
||||
|
||||
return [];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/**
|
||||
* WPSEO plugin file.
|
||||
*
|
||||
* @package WPSEO\Admin\ConfigurationUI
|
||||
*/
|
||||
|
||||
/**
|
||||
* Class WPSEO_Config_Field_Connect_Google_Search_Console.
|
||||
*
|
||||
* @deprecated 12.5
|
||||
*
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class WPSEO_Config_Field_Connect_Google_Search_Console extends WPSEO_Config_Field {
|
||||
|
||||
/**
|
||||
* WPSEO_Config_Field_Connect_Google_Search_Console constructor.
|
||||
*
|
||||
* @deprecated 12.5
|
||||
*
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function __construct() {
|
||||
_deprecated_function( __METHOD__, 'WPSEO 12.5' );
|
||||
|
||||
parent::__construct( 'connectGoogleSearchConsole', 'ConnectGoogleSearchConsole' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the data.
|
||||
*
|
||||
* @deprecated 12.5
|
||||
*
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function get_data() {
|
||||
_deprecated_function( __METHOD__, 'WPSEO 12.5' );
|
||||
|
||||
return [];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/**
|
||||
* WPSEO plugin file.
|
||||
*
|
||||
* @package WPSEO\Admin\ConfigurationUI
|
||||
*/
|
||||
|
||||
/**
|
||||
* Class WPSEO_Config_Field_Google_Search_Console_Intro.
|
||||
*
|
||||
* @deprecated 12.5
|
||||
*
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
class WPSEO_Config_Field_Google_Search_Console_Intro extends WPSEO_Config_Field {
|
||||
|
||||
/**
|
||||
* WPSEO_Config_Field_Social_Profiles_Intro constructor.
|
||||
*
|
||||
* @deprecated 12.5
|
||||
*
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function __construct() {
|
||||
_deprecated_function( __METHOD__, 'WPSEO 12.5' );
|
||||
|
||||
parent::__construct( 'googleSearchConsoleIntro', 'HTML' );
|
||||
|
||||
$html =
|
||||
sprintf(
|
||||
/* translators: %1$s is the plugin name. %2$s is a link start tag to a Yoast help page, %3$s is the link closing tag. */
|
||||
esc_html__( '%1$s integrates with Google Search Console, a must-have tool for site owners. It provides you with information about the health of your site. Don\'t have a Google account or is your site not activated yet? Find out %2$show to connect Google Search Console to your site%3$s.', 'wordpress-seo' ),
|
||||
'Yoast SEO',
|
||||
'<a href="' . esc_url( WPSEO_Shortlinker::get( 'https://yoa.st/1ex' ) ) . '" target="_blank">',
|
||||
'</a>'
|
||||
);
|
||||
|
||||
$disclaimer = __( 'Note: we don\'t store your data in any way and don\'t have full access to your account. Your privacy is safe with us.', 'wordpress-seo' );
|
||||
|
||||
$html = '<p>' . $html . '</p><small>' . esc_html( $disclaimer ) . '</small>';
|
||||
|
||||
$this->set_property( 'html', $html );
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/**
|
||||
* WPSEO plugin file.
|
||||
*
|
||||
* @package WPSEO\Admin\ConfigurationUI
|
||||
*/
|
||||
|
||||
_deprecated_file( __FILE__, 'WPSEO 10.1' );
|
||||
|
||||
/**
|
||||
* Class WPSEO_Config_Field_Profile_URL_GooglePlus.
|
||||
*
|
||||
* @deprecated 10.1
|
||||
*/
|
||||
class WPSEO_Config_Field_Profile_URL_GooglePlus extends WPSEO_Config_Field {
|
||||
|
||||
/**
|
||||
* WPSEO_Config_Field_Profile_URL_GooglePlus constructor.
|
||||
*
|
||||
* @deprecated 10.1
|
||||
*/
|
||||
public function __construct() {
|
||||
_deprecated_function( __METHOD__, '10.1' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets adapter.
|
||||
*
|
||||
* @deprecated 10.1
|
||||
*
|
||||
* @param WPSEO_Configuration_Options_Adapter $adapter Adapter to register lookup on.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function set_adapter( WPSEO_Configuration_Options_Adapter $adapter ) {
|
||||
_deprecated_function( __METHOD__, '10.1' );
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user