PluginProbe
Polylang / 3.1.4
Polylang v3.1.4
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 +13 -4 2.73.1.4 View file →
@@ -1,5 +1,8 @@
1 1 <?php
2 +/**
3 + * @package Polylang
4 + */
2 5
3 6 /**
4 7 * Settings class for synchronization settings management
5 8 *
@@ -5,8 +8,14 @@
5 8 *
6 9 * @since 1.8
7 10 */
8 11 class PLL_Settings_Sync extends PLL_Settings_Module {
12 + /**
13 + * Stores the display order priority.
14 + *
15 + * @var int
16 + */
17 + public $priority = 50;
9 18
10 19 /**
11 20 * Constructor
12 21 *
@@ -69,13 +78,13 @@
69 78 return $newoptions; // take care to return only validated options
70 79 }
71 80
72 81 /**
73 - * Get the row actions
82 + * Get the row actions.
74 83 *
75 84 * @since 1.8
76 85 *
77 - * @return array
86 + * @return string[] Row actions.
78 87 */
79 88 protected function get_actions() {
80 89 return empty( $this->options['sync'] ) ? array( 'configure' ) : array( 'configure', 'deactivate' );
81 90 }
@@ -80,13 +89,13 @@
80 89 return empty( $this->options['sync'] ) ? array( 'configure' ) : array( 'configure', 'deactivate' );
81 90 }
82 91
83 92 /**
84 - * List the post metas to synchronize
93 + * Get the list of synchronization settings.
85 94 *
86 95 * @since 1.0
87 96 *
88 - * @return array
97 + * @return string[] Array synchronization options.
89 98 */
90 99 public static function list_metas_to_sync() {
91 100 return array(
92 101 'taxonomies' => __( 'Taxonomies', 'polylang' ),