PluginProbe
Polylang / 2.7.3
Polylang v2.7.3
3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 2.7 2.7.0.1 2.7.1 2.7.2 2.7.3 2.7.4 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.9 2.9.1 2.9.2 3.0 3.0.1 3.0.2 3.0.3 All 233 releases
← All changes | modules/sync/settings-sync.php +4 -13 3.02.7.3 View file →
@@ -1,8 +1,5 @@
1 1 <?php
2 -/**
3 - * @package Polylang
4 - */
5 2
6 3 /**
7 4 * Settings class for synchronization settings management
8 5 *
@@ -8,14 +5,8 @@
8 5 *
9 6 * @since 1.8
10 7 */
11 8 class PLL_Settings_Sync extends PLL_Settings_Module {
12 - /**
13 - * Stores the display order priority.
14 - *
15 - * @var int
16 - */
17 - public $priority = 50;
18 9
19 10 /**
20 11 * Constructor
21 12 *
@@ -78,13 +69,13 @@
78 69 return $newoptions; // take care to return only validated options
79 70 }
80 71
81 72 /**
82 - * Get the row actions.
73 + * Get the row actions
83 74 *
84 75 * @since 1.8
85 76 *
86 - * @return string[] Row actions.
77 + * @return array
87 78 */
88 79 protected function get_actions() {
89 80 return empty( $this->options['sync'] ) ? array( 'configure' ) : array( 'configure', 'deactivate' );
90 81 }
@@ -89,13 +80,13 @@
89 80 return empty( $this->options['sync'] ) ? array( 'configure' ) : array( 'configure', 'deactivate' );
90 81 }
91 82
92 83 /**
93 - * Get the list of synchronization settings.
84 + * List the post metas to synchronize
94 85 *
95 86 * @since 1.0
96 87 *
97 - * @return string[] Array synchronization options.
88 + * @return array
98 89 */
99 90 public static function list_metas_to_sync() {
100 91 return array(
101 92 'taxonomies' => __( 'Taxonomies', 'polylang' ),