class-gsc-ajax.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <?php
  2. /**
  3. * WPSEO plugin file.
  4. *
  5. * @package WPSEO\Admin\Google_Search_Console
  6. */
  7. /**
  8. * Class WPSEO_GSC_Ajax.
  9. *
  10. * @deprecated 12.5
  11. *
  12. * @codeCoverageIgnore
  13. */
  14. class WPSEO_GSC_Ajax {
  15. /**
  16. * Setting the AJAX hooks for GSC.
  17. *
  18. * @deprecated 12.5
  19. *
  20. * @codeCoverageIgnore
  21. */
  22. public function __construct() {
  23. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  24. }
  25. /**
  26. * This method will be access by an AJAX request and will mark an issue as fixed.
  27. *
  28. * First it will do a request to the Google API.
  29. *
  30. * @deprecated 12.5
  31. *
  32. * @codeCoverageIgnore
  33. */
  34. public function ajax_mark_as_fixed() {
  35. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  36. }
  37. /**
  38. * Handle the AJAX request and dismiss the GSC notice.
  39. *
  40. * @deprecated 12.5
  41. *
  42. * @codeCoverageIgnore
  43. */
  44. public function dismiss_notice() {
  45. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  46. }
  47. /**
  48. * Saves the authorization code.
  49. *
  50. * @deprecated 12.5
  51. *
  52. * @codeCoverageIgnore
  53. */
  54. public function save_auth_code() {
  55. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  56. }
  57. /**
  58. * Clears all authorization data.
  59. *
  60. * @deprecated 12.5
  61. *
  62. * @codeCoverageIgnore
  63. */
  64. public function clear_auth_code() {
  65. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  66. }
  67. /**
  68. * Check if posted nonce is valid and return true if it is.
  69. *
  70. * @deprecated 12.5
  71. *
  72. * @codeCoverageIgnore
  73. *
  74. * @return mixed
  75. */
  76. private function valid_nonce() {
  77. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  78. }
  79. /**
  80. * Returns an instance of the Google Search Console service.
  81. *
  82. * @deprecated 12.5
  83. *
  84. * @codeCoverageIgnore
  85. *
  86. * @return WPSEO_GSC_Service
  87. */
  88. private function get_service() {
  89. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  90. return null;
  91. }
  92. /**
  93. * Prints a JSON encoded string with the current profile config.
  94. *
  95. * @deprecated 12.5
  96. *
  97. * @codeCoverageIgnore
  98. */
  99. private function get_profiles() {
  100. _deprecated_function( __METHOD__, 'WPSEO 12.5' );
  101. }
  102. }