class-wpseo-option-internallinks.php 2.4 KB

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