| 1 |
<?php |
| 2 |
/** |
| 3 |
* WPSEO plugin file. |
| 4 |
* |
| 5 |
* @package WPSEO\Admin |
| 6 |
*/ |
| 7 |
|
| 8 |
/** |
| 9 |
* This class adds the Social tab to the Yoast SEO metabox and makes sure the settings are saved. |
| 10 |
* |
| 11 |
* @deprecated 14.6 |
| 12 |
* |
| 13 |
* @codeCoverageIgnore |
| 14 |
*/ |
| 15 |
class WPSEO_Social_Admin extends WPSEO_Metabox { |
| 16 |
|
| 17 |
/** |
| 18 |
* Class constructor. |
| 19 |
* |
| 20 |
* @deprecated 14.6 |
| 21 |
* |
| 22 |
* @codeCoverageIgnore |
| 23 |
*/ |
| 24 |
public function __construct() { |
| 25 |
_deprecated_function( __METHOD__, 'WPSEO 14.6' ); |
| 26 |
} |
| 27 |
|
| 28 |
/** |
| 29 |
* Translate text strings for use in the meta box. |
| 30 |
* |
| 31 |
* IMPORTANT: if you want to add a new string (option) somewhere, make sure you add that array key to |
| 32 |
* the main meta box definition array in the class WPSEO_Meta() as well!!!! |
| 33 |
* |
| 34 |
* @deprecated 14.6 |
| 35 |
* |
| 36 |
* @codeCoverageIgnore |
| 37 |
*/ |
| 38 |
public static function translate_meta_boxes() { |
| 39 |
_deprecated_function( __METHOD__, 'WPSEO 14.6' ); |
| 40 |
} |
| 41 |
|
| 42 |
/** |
| 43 |
* Returns the metabox section for the social settings. |
| 44 |
* |
| 45 |
* @deprecated 14.6 |
| 46 |
* |
| 47 |
* @codeCoverageIgnore |
| 48 |
* |
| 49 |
* @return WPSEO_Metabox_Collapsibles_Sections|null |
| 50 |
*/ |
| 51 |
public function get_meta_section() { |
| 52 |
_deprecated_function( __METHOD__, 'WPSEO 14.6' ); |
| 53 |
|
| 54 |
return null; |
| 55 |
} |
| 56 |
|
| 57 |
/** |
| 58 |
* Returns the Upgrade to Premium notice. |
| 59 |
* |
| 60 |
* @deprecated 14.6 |
| 61 |
* |
| 62 |
* @codeCoverageIgnore |
| 63 |
* |
| 64 |
* @param string $network The social network. |
| 65 |
* |
| 66 |
* @return string The notice HTML on the free version, empty string on premium. |
| 67 |
*/ |
| 68 |
public function get_premium_notice( $network ) { |
| 69 |
_deprecated_function( __METHOD__, 'WPSEO 14.6' ); |
| 70 |
|
| 71 |
return 'class_social_admin'; |
| 72 |
} |
| 73 |
|
| 74 |
/** |
| 75 |
* Filter over the meta boxes to save, this function adds the Social meta boxes. |
| 76 |
* |
| 77 |
* @deprecated 14.6 |
| 78 |
* |
| 79 |
* @codeCoverageIgnore |
| 80 |
* |
| 81 |
* @param array $field_defs Array of metaboxes to save. |
| 82 |
* |
| 83 |
* @return array |
| 84 |
*/ |
| 85 |
public function save_meta_boxes( $field_defs ) { |
| 86 |
_deprecated_function( __METHOD__, 'WPSEO 14.6' ); |
| 87 |
|
| 88 |
return []; |
| 89 |
} |
| 90 |
|
| 91 |
/** |
| 92 |
* This method will compare opengraph fields with the posted values. |
| 93 |
* |
| 94 |
* When fields are changed, the facebook cache will be purged. |
| 95 |
* |
| 96 |
* @deprecated 14.6 |
| 97 |
* |
| 98 |
* @codeCoverageIgnore |
| 99 |
* |
| 100 |
* @param WP_Post $post Post instance. |
| 101 |
*/ |
| 102 |
public function og_data_compare( $post ) { |
| 103 |
_deprecated_function( __METHOD__, 'WPSEO 14.6' ); |
| 104 |
} |
| 105 |
} |
| 106 |
|