| @@ -4,9 +4,9 @@ | ||
| 4 | 4 | * @subpackage Translations Functions |
| 5 | 5 | * @category Functions |
| 6 | 6 | * |
| 7 | 7 | * @author wpdevelop |
| 8 | - * @link http://oplugins.com/ | |
| 8 | + * @link https://oplugins.com/ | |
| 9 | 9 | * @email [email protected] |
| 10 | 10 | * |
| 11 | 11 | * @modified 29.09.2015 |
| 12 | 12 | */ |
| @@ -214,9 +214,9 @@ | ||
| 214 | 214 | if( function_exists( 'get_user_locale' ) ) |
| 215 | 215 | $locale = is_admin() ? get_user_locale() : get_locale(); |
| 216 | 216 | else |
| 217 | 217 | $locale = get_locale(); |
| 218 | - | |
| 218 | + | |
| 219 | 219 | define( 'WPBM_LOCALE_RELOAD', $locale ); |
| 220 | 220 | |
| 221 | 221 | return $locale; |
| 222 | 222 | |
| @@ -222,13 +222,13 @@ | ||
| 222 | 222 | |
| 223 | 223 | } |
| 224 | 224 | |
| 225 | 225 | |
| 226 | -function wpbm_recheck_plugin_locale( $locale, $plugin_domain ) { | |
| 226 | +function wpbm_recheck_plugin_locale( $locale, $plugin_domain = '' ) { //FixIn: 2.0.9.1 | |
| 227 | 227 | |
| 228 | - if ( $plugin_domain == 'item' ) | |
| 228 | + if ( $plugin_domain == 'booking-manager' ) //FixIn: 2.0.9.1 | |
| 229 | 229 | if ( defined('WPBM_RELOAD') ) |
| 230 | 230 | return WPBM_RELOAD; |
| 231 | 231 | |
| 232 | 232 | return $locale; |
| 233 | 233 | } |
| 234 | -add_filter( 'plugin_locale', 'wpbm_recheck_plugin_locale', 100, 2 ); // When load_plugin_text_domain is work, its get def locale and not that, we send to it so need to reupdate it | |
| 234 | +add_filter( 'plugin_locale', 'wpbm_recheck_plugin_locale', 100, 2 ); // When load_plugin_text_domain is work, its get def locale and not that, we send to it so need to reupdate it | |