Title: Deprecated function split() / Strict Standards error
Last modified: August 21, 2016

---

# Deprecated function split() / Strict Standards error

 *  [Ov3rfly](https://wordpress.org/support/users/ov3rfly/)
 * (@ov3rfly)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/deprecated-function-split-strict-standards-error/)
 * With `define('WP_DEBUG', true);` in `wp-config.php` some errors can be observed
   on settings page of WP Native Dashboard:
 * At each entry of _installed languages_:
 * > Deprecated: Function split() is deprecated in …/wp-content/plugins/wp-native-
   > dashboard/wp-native-dashboard.php on line 90
   > Strict Standards: Only variables should be passed by reference in …/wp-content/
   > plugins/wp-native-dashboard/wp-native-dashboard.php on line 90
 * At _downloads_:
 * > Deprecated: Function split() is deprecated in …/wp-content/plugins/wp-native-
   > dashboard/wp-native-dashboard.php on line 547
 * File `wp-native-dashboard.php`:
 * Suggested fix 1: Use `explode()` instead of `split()` in line 90 and 547, see
   also [http://www.php.net/manual/en/function.split.php](http://www.php.net/manual/en/function.split.php)
 * > This function has been DEPRECATED as of PHP 5.3.0. Relying on this feature 
   > is highly discouraged.
 * Suggested fix 2, line 90, currect version:
 *     ```
       function wp_native_dashboard_is_rtl_language($locale) {
       	$rtl = array('ar', 'ckb', 'fa', 'he', 'ur', 'ug');
       	return in_array(array_shift(split('_',$locale)), $rtl);
       }
       ```
   
 * Changed version, `array_shift ( array &$array )` requires a variable by reference
   instead of just a function result:
 *     ```
       function wp_native_dashboard_is_rtl_language($locale) {
       	$rtl = array('ar', 'ckb', 'fa', 'he', 'ur', 'ug');
       	$lang = explode('_',$locale);
       	return in_array(array_shift($lang), $rtl);
       }
       ```
   
 * Thanks for the great plugin.
 * [http://wordpress.org/plugins/wp-native-dashboard/](http://wordpress.org/plugins/wp-native-dashboard/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [codestyling](https://wordpress.org/support/users/codestyling/)
 * (@codestyling)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/deprecated-function-split-strict-standards-error/#post-4003972)
 * Will be changed with next updates. Good catch.
 *  [Stanislav Khromov](https://wordpress.org/support/users/khromov/)
 * (@khromov)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/deprecated-function-split-strict-standards-error/#post-4004121)
 * Also having this issue. Any idea when the new version will be out?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Deprecated function split() / Strict Standards error’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-native-dashboard_d8d8d8.svg)
 * [WP Native Dashboard](https://wordpress.org/plugins/wp-native-dashboard/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-native-dashboard/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-native-dashboard/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-native-dashboard/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-native-dashboard/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-native-dashboard/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Stanislav Khromov](https://wordpress.org/support/users/khromov/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/deprecated-function-split-strict-standards-error/#post-4004121)
 * Status: not resolved