PluginProbe
Polylang / 2.6.3
Polylang v2.6.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 | settings/settings-cpt.php +0 -2 2.7.42.6.3 View file →
@@ -115,10 +115,8 @@
115 115 *
116 116 * @param array $options
117 117 */
118 118 protected function update( $options ) {
119 - $newoptions = array();
120 -
121 119 foreach ( array( 'post_types', 'taxonomies' ) as $key ) {
122 120 $newoptions[ $key ] = empty( $options[ $key ] ) ? array() : array_keys( $options[ $key ], 1 );
123 121 }
124 122 return $newoptions; // Take care to return only validated options