PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.7
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.7
16.3-a.5 16.3-a.7 16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 All 506 releases
← All changes | jetpack_vendor/automattic/jetpack-sync/src/class-modules.php +4 -1 13.6.2 → 16.3-a.7 View file →
@@ -112,8 +112,9 @@
112 112 *
113 113 * @return array
114 114 */
115 115 public static function initialize_modules() {
116 +
116 117 /**
117 118 * Filters the list of class names of sync modules.
118 119 * If you add to this list, make sure any classes implement the
119 120 * Jetpack_Sync_Module interface.
@@ -122,10 +123,12 @@
122 123 * @since-jetpack 4.2.0
123 124 */
124 125 $modules = apply_filters( 'jetpack_sync_modules', self::DEFAULT_SYNC_MODULES );
125 126
127 + // Exact class duplicates keep the position of their first contribution.
128 + $modules = array_unique( $modules );
129 +
126 130 $modules = array_map( array( __CLASS__, 'load_module' ), $modules );
127 -
128 131 return array_map( array( __CLASS__, 'set_module_defaults' ), $modules );
129 132 }
130 133
131 134 /**