class-wpseo-option-internallinks.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <?php
  2. /**
  3. * WPSEO plugin file.
  4. *
  5. * @package WPSEO\Internals\Options
  6. */
  7. // Mark this file as deprecated.
  8. _deprecated_file( __FILE__, 'WPSEO 7.0' );
  9. /**
  10. * Option: wpseo_internallinks.
  11. *
  12. * @deprecated 7.0
  13. */
  14. class WPSEO_Option_InternalLinks {
  15. /**
  16. * Option name.
  17. *
  18. * @var string
  19. * @deprecated 7.0
  20. */
  21. public $option_name = '';
  22. /**
  23. * Catch all other calls to this deprecated class.
  24. *
  25. * @param string $method The method to 'call'.
  26. * @param array $args Possibly given arguments.
  27. */
  28. public function __call( $method, array $args = array() ) {
  29. _deprecated_function( $method, 'WPSEO 7.0' );
  30. }
  31. /**
  32. * Get the singleton instance of this class.
  33. *
  34. * @deprecated 7.0
  35. *
  36. * @return void
  37. */
  38. public static function get_instance() {
  39. _deprecated_function( __METHOD__, 'WPSEO 7.0' );
  40. }
  41. /**
  42. * Translate strings used in the option defaults.
  43. *
  44. * @deprecated 7.0
  45. *
  46. * @return void
  47. */
  48. public function translate_defaults() {
  49. _deprecated_function( __METHOD__, 'WPSEO 7.0' );
  50. }
  51. /**
  52. * Add dynamically created default options based on available post types and taxonomies.
  53. *
  54. * @deprecated 7.0
  55. *
  56. * @return void
  57. */
  58. public function enrich_defaults() {
  59. _deprecated_function( __METHOD__, 'WPSEO 7.0' );
  60. }
  61. /**
  62. * With the changes to v1.5, the defaults for some of the textual breadcrumb settings are added
  63. * dynamically, but empty strings are allowed.
  64. * This caused issues for people who left the fields empty on purpose relying on the defaults.
  65. * This little routine fixes that.
  66. * Needs to be run on 'init' hook at prio 3 to make sure the defaults are translated.
  67. *
  68. * @deprecated 7.0
  69. *
  70. * @return void
  71. */
  72. public function bring_back_defaults() {
  73. _deprecated_function( __METHOD__, 'WPSEO 7.0' );
  74. }
  75. /**
  76. * Validate the option.
  77. *
  78. * @deprecated 7.0
  79. *
  80. * @return void
  81. */
  82. protected function validate_option() {
  83. _deprecated_function( __METHOD__, 'WPSEO 7.0' );
  84. }
  85. /**
  86. * Retrieve a list of the allowed post types as breadcrumb parent for a taxonomy.
  87. * Helper method for validation.
  88. *
  89. * {@internal Don't make static as new types may still be registered.}}
  90. *
  91. * @deprecated 7.0
  92. *
  93. * @return void
  94. */
  95. protected function get_allowed_post_types() {
  96. _deprecated_function( __METHOD__, 'WPSEO 7.0' );
  97. }
  98. /**
  99. * Clean a given option value.
  100. *
  101. * @deprecated 7.0
  102. *
  103. * @return void
  104. */
  105. protected function clean_option() {
  106. _deprecated_function( __METHOD__, 'WPSEO 7.0' );
  107. }
  108. }