Version Description
Download this release
Release Info
Developer | codestyling |
Plugin | WP Native Dashboard |
Version | 1.3.5 |
Comparing to | |
See all releases |
Code changes from version 1.3.4 to 1.3.5
- langswitcher.php +7 -1
- readme.txt +4 -1
- wp-native-dashboard.php +1 -1
langswitcher.php
CHANGED
@@ -34,6 +34,12 @@ class wp_native_dashboard_langswitcher {
|
|
34 |
}
|
35 |
}
|
36 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
}
|
38 |
|
39 |
function on_print_dashboard_switcher() {
|
@@ -75,7 +81,7 @@ class wp_native_dashboard_langswitcher {
|
|
75 |
event.preventDefault();
|
76 |
jQuery(this).blur();
|
77 |
jQuery("#csp-langoptions").hide();
|
78 |
-
jQuery.post("admin-ajax.php", { action: 'wp_native_dashboard_change_language', locale: jQuery(this).attr('hreflang') },
|
79 |
function(data) {
|
80 |
window.location.reload();
|
81 |
}
|
34 |
}
|
35 |
}
|
36 |
}
|
37 |
+
if (function_exists("admin_url")) {
|
38 |
+
$this->admin_url = rtrim(strtolower(admin_url()), '/');
|
39 |
+
}else{
|
40 |
+
$this->admin_url = rtrim(strtolower(get_option('siteurl')).'/wp-admin/', '/');
|
41 |
+
}
|
42 |
+
|
43 |
}
|
44 |
|
45 |
function on_print_dashboard_switcher() {
|
81 |
event.preventDefault();
|
82 |
jQuery(this).blur();
|
83 |
jQuery("#csp-langoptions").hide();
|
84 |
+
jQuery.post("<?php echo $this->admin_url; ?>/admin-ajax.php", { action: 'wp_native_dashboard_change_language', locale: jQuery(this).attr('hreflang') },
|
85 |
function(data) {
|
86 |
window.location.reload();
|
87 |
}
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: codestyling
|
|
3 |
Tags: wordpress, dashboard, multi-lingual, languages, backend, localization, plugin
|
4 |
Requires at least: 2.7
|
5 |
Tested up to: 3.1.3
|
6 |
-
Stable tag: 1.3.
|
7 |
|
8 |
Enables selection of administration language either by logon, dashboard quick switcher or user profile setting.
|
9 |
|
@@ -47,6 +47,9 @@ Please visit [the official website](http://www.code-styling.de/english/developme
|
|
47 |
|
48 |
== Changelog ==
|
49 |
|
|
|
|
|
|
|
50 |
= Version 1.3.4 =
|
51 |
* bugfix: screen_layout_column throws info messages at multisite or user dashboard pages
|
52 |
|
3 |
Tags: wordpress, dashboard, multi-lingual, languages, backend, localization, plugin
|
4 |
Requires at least: 2.7
|
5 |
Tested up to: 3.1.3
|
6 |
+
Stable tag: 1.3.5
|
7 |
|
8 |
Enables selection of administration language either by logon, dashboard quick switcher or user profile setting.
|
9 |
|
47 |
|
48 |
== Changelog ==
|
49 |
|
50 |
+
= Version 1.3.5 =
|
51 |
+
* bugfix: switching language at site or user admin pages did not work
|
52 |
+
|
53 |
= Version 1.3.4 =
|
54 |
* bugfix: screen_layout_column throws info messages at multisite or user dashboard pages
|
55 |
|
wp-native-dashboard.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.code-styling.de/english/development/wordpress-plugin-wp-
|
|
5 |
Description: You can configure your blog working at administration with different languages depends on users choice and capabilities the admin has been enabled.
|
6 |
Author: Heiko Rabe
|
7 |
Author URI: http://www.code-styling.de/
|
8 |
-
Version: 1.3.
|
9 |
|
10 |
License:
|
11 |
==============================================================================
|
5 |
Description: You can configure your blog working at administration with different languages depends on users choice and capabilities the admin has been enabled.
|
6 |
Author: Heiko Rabe
|
7 |
Author URI: http://www.code-styling.de/
|
8 |
+
Version: 1.3.5
|
9 |
|
10 |
License:
|
11 |
==============================================================================
|