WP Admin UI Customize - Version 1.5.2.7

Version Description

  • Fixed: URL escape to add_query_arg / remove_query_arg.
  • Supported: Compatible to Polylang.
Download this release

Release Info

Developer gqevu6bsiz
Plugin Icon wp plugin WP Admin UI Customize
Version 1.5.2.7
Comparing to
See all releases

Code changes from version 1.5.2.6 to 1.5.2.7

inc/reset_userrole.php CHANGED
@@ -15,7 +15,7 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
15
  <h2><?php _e( 'Reset User Roles' , $this->ltd ); ?></h2>
16
  <p>&nbsp;</p>
17
 
18
- <form id="wauc_reset_userrole" class="wauc_form" method="post" action="<?php echo remove_query_arg( 'wauc_msg' , add_query_arg( array( 'page' => $this->PageSlug ) ) ); ?>">
19
  <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
20
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
21
  <input type="hidden" name="record_field" value="user_role" />
@@ -40,7 +40,7 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
40
  <p>&nbsp;</p>
41
 
42
  <h2><?php _e( 'Reset settings of all' , $this->ltd ); ?></h2>
43
- <form id="wauc_reset_all_settings" class="wauc_form" method="post" action="<?php echo remove_query_arg( 'wauc_msg' , add_query_arg( array( 'page' => $this->PageSlug ) ) ); ?>">
44
  <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
45
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
46
  <input type="hidden" name="record_field" value="all_settings" />
15
  <h2><?php _e( 'Reset User Roles' , $this->ltd ); ?></h2>
16
  <p>&nbsp;</p>
17
 
18
+ <form id="wauc_reset_userrole" class="wauc_form" method="post" action="<?php echo esc_url( remove_query_arg( 'wauc_msg' , add_query_arg( array( 'page' => $this->PageSlug ) ) ) ); ?>">
19
  <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
20
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
21
  <input type="hidden" name="record_field" value="user_role" />
40
  <p>&nbsp;</p>
41
 
42
  <h2><?php _e( 'Reset settings of all' , $this->ltd ); ?></h2>
43
+ <form id="wauc_reset_all_settings" class="wauc_form" method="post" action="<?php echo esc_url( remove_query_arg( 'wauc_msg' , add_query_arg( array( 'page' => $this->PageSlug ) ) ) ); ?>">
44
  <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
45
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
46
  <input type="hidden" name="record_field" value="all_settings" />
inc/setting_admin_bar_menu.php CHANGED
@@ -24,7 +24,7 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
24
 
25
  <p><a href="#TB_inline?height=300&width=600&inlineId=list_variables&modal=false" title="<?php _e( 'Shortcodes' , $this->ltd ); ?>" class="thickbox"><?php _e( 'Available Shortcodes' , $this->ltd ); ?></a></p>
26
 
27
- <form id="wauc_setting_admin_bar_menu" class="wauc_form" method="post" action="<?php echo remove_query_arg( 'wauc_msg' , add_query_arg( array( 'page' => $this->PageSlug ) ) ); ?>">
28
  <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
29
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
30
  <input type="hidden" name="record_field" value="admin_bar_menu" />
24
 
25
  <p><a href="#TB_inline?height=300&width=600&inlineId=list_variables&modal=false" title="<?php _e( 'Shortcodes' , $this->ltd ); ?>" class="thickbox"><?php _e( 'Available Shortcodes' , $this->ltd ); ?></a></p>
26
 
27
+ <form id="wauc_setting_admin_bar_menu" class="wauc_form" method="post" action="<?php echo esc_url( remove_query_arg( 'wauc_msg' , add_query_arg( array( 'page' => $this->PageSlug ) ) ) ); ?>">
28
  <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
29
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
30
  <input type="hidden" name="record_field" value="admin_bar_menu" />
inc/setting_admin_general.php CHANGED
@@ -18,7 +18,7 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
18
 
19
  <h3 id="wauc-apply-user-roles"><?php echo $this->get_apply_roles(); ?></h3>
20
 
21
- <form id="wauc_setting_admin_general" class="wauc_form" method="post" action="<?php echo remove_query_arg( 'wauc_msg' , add_query_arg( array( 'page' => $this->PageSlug ) ) ); ?>">
22
  <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
23
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
24
  <input type="hidden" name="record_field" value="admin_general" />
18
 
19
  <h3 id="wauc-apply-user-roles"><?php echo $this->get_apply_roles(); ?></h3>
20
 
21
+ <form id="wauc_setting_admin_general" class="wauc_form" method="post" action="<?php echo esc_url( remove_query_arg( 'wauc_msg' , add_query_arg( array( 'page' => $this->PageSlug ) ) ) ); ?>">
22
  <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
23
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
24
  <input type="hidden" name="record_field" value="admin_general" />
inc/setting_appearance_menus.php CHANGED
@@ -16,7 +16,7 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
16
 
17
  <h3 id="wauc-apply-user-roles"><?php echo $this->get_apply_roles(); ?></h3>
18
 
19
- <form id="wauc_setting_appearance_menus" class="wauc_form" method="post" action="<?php echo remove_query_arg( 'wauc_msg' , add_query_arg( array( 'page' => $this->PageSlug ) ) ); ?>">
20
  <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
21
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
22
  <input type="hidden" name="record_field" value="appearance_menus" />
16
 
17
  <h3 id="wauc-apply-user-roles"><?php echo $this->get_apply_roles(); ?></h3>
18
 
19
+ <form id="wauc_setting_appearance_menus" class="wauc_form" method="post" action="<?php echo esc_url( remove_query_arg( 'wauc_msg' , add_query_arg( array( 'page' => $this->PageSlug ) ) ) ); ?>">
20
  <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
21
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
22
  <input type="hidden" name="record_field" value="appearance_menus" />
inc/setting_dashboard.php CHANGED
@@ -18,7 +18,7 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
18
 
19
  <h3 id="wauc-apply-user-roles"><?php echo $this->get_apply_roles(); ?></h3>
20
 
21
- <form id="wauc_setting_dashboard" class="wauc_form" method="post" action="<?php echo remove_query_arg( 'wauc_msg' , add_query_arg( array( 'page' => $this->PageSlug ) ) ); ?>">
22
  <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
23
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
24
  <input type="hidden" name="record_field" value="dashboard" />
@@ -34,22 +34,8 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
34
  <h3 class="hndle"><span><?php _e( 'Meta boxes' , $this->ltd ); ?></span></h3>
35
  <div class="inside">
36
 
37
- <?php if( empty( $Metaboxes["metaboxes"]["dashboard"] ) ) : ?>
38
 
39
- <?php $load_link = self_admin_url( 'index.php' ); ?>
40
-
41
- <p>
42
- <a href="<?php echo $load_link; ?>" class="button button-primary column_load">
43
- <?php echo sprintf( __( 'Metaboxes loading for %s', $this->ltd ) , __( 'Dashboard' ) ); ?>
44
- </a>
45
- </p>
46
- <p class="loading">
47
- <span class="spinner"></span>
48
- <?php _e( 'Loading&hellip;' ); ?>
49
- </p>
50
-
51
- <?php else: ?>
52
-
53
  <table class="form-table">
54
  <thead>
55
  <tr>
@@ -102,6 +88,18 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
102
 
103
  <?php endif; ?>
104
 
 
 
 
 
 
 
 
 
 
 
 
 
105
  </div>
106
  </div>
107
 
18
 
19
  <h3 id="wauc-apply-user-roles"><?php echo $this->get_apply_roles(); ?></h3>
20
 
21
+ <form id="wauc_setting_dashboard" class="wauc_form" method="post" action="<?php echo esc_url( remove_query_arg( 'wauc_msg' , add_query_arg( array( 'page' => $this->PageSlug ) ) ) ); ?>">
22
  <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
23
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
24
  <input type="hidden" name="record_field" value="dashboard" />
34
  <h3 class="hndle"><span><?php _e( 'Meta boxes' , $this->ltd ); ?></span></h3>
35
  <div class="inside">
36
 
37
+ <?php if( !empty( $Metaboxes["metaboxes"]["dashboard"] ) ) : ?>
38
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  <table class="form-table">
40
  <thead>
41
  <tr>
88
 
89
  <?php endif; ?>
90
 
91
+ <?php $load_link = self_admin_url( 'index.php' ); ?>
92
+
93
+ <p>
94
+ <a href="<?php echo $load_link; ?>" class="button button-primary column_load">
95
+ <?php echo sprintf( __( 'Metaboxes loading for %s', $this->ltd ) , __( 'Dashboard' ) ); ?>
96
+ </a>
97
+ </p>
98
+ <p class="loading">
99
+ <span class="spinner"></span>
100
+ <?php _e( 'Loading&hellip;' ); ?>
101
+ </p>
102
+
103
  </div>
104
  </div>
105
 
inc/setting_default.php CHANGED
@@ -55,7 +55,7 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
55
  <div class="stuffbox" id="aboutbox">
56
  <h3><span class="hndle"><?php _e( 'About plugin' , $this->ltd ); ?></span></h3>
57
  <div class="inside">
58
- <p><?php _e( 'Version checked' , $this->ltd ); ?> : 3.8 - 4.1</p>
59
  <ul>
60
  <li><a href="<?php echo $this->Site; ?>?utm_source=use_plugin&utm_medium=side&utm_content=<?php echo $this->ltd; ?>&utm_campaign=<?php echo str_replace( '.' , '_' , $this->Ver ); ?>" target="_blank"><?php _e( 'Plugin\'s site' , $this->ltd ); ?></a></li>
61
  <li><a href="<?php echo $this->AuthorUrl; ?>?utm_source=use_plugin&utm_medium=side&utm_content=<?php echo $this->ltd; ?>&utm_campaign=<?php echo str_replace( '.' , '_' , $this->Ver ); ?>" target="_blank"><?php _e( 'Developer\'s site' , $this->ltd ); ?></a></li>
@@ -94,7 +94,7 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
94
 
95
  <div id="user_role">
96
 
97
- <form id="wauc_setting_default" class="wauc_form" method="post" action="<?php echo remove_query_arg( 'wauc_msg' , add_query_arg( array( 'page' => $this->PageSlug ) ) ); ?>">
98
  <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
99
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
100
  <input type="hidden" name="record_field" value="user_role" />
@@ -129,7 +129,7 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
129
 
130
  </form>
131
 
132
- <form id="donation_form" class="wauc_form" method="post" action="<?php echo remove_query_arg( 'wauc_msg' , add_query_arg( array( 'page' => $this->PageSlug ) ) ); ?>">
133
  <h3><?php _e( 'If you have already donated to.' , $this->ltd ); ?></h3>
134
  <p><?php _e( 'Please enter the \'Donation Delete Key\' that was provided on the Line Break First and End download page.' , $this->ltd ); ?></p>
135
  <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
55
  <div class="stuffbox" id="aboutbox">
56
  <h3><span class="hndle"><?php _e( 'About plugin' , $this->ltd ); ?></span></h3>
57
  <div class="inside">
58
+ <p><?php _e( 'Version checked' , $this->ltd ); ?> : 3.8 - 4.2.2</p>
59
  <ul>
60
  <li><a href="<?php echo $this->Site; ?>?utm_source=use_plugin&utm_medium=side&utm_content=<?php echo $this->ltd; ?>&utm_campaign=<?php echo str_replace( '.' , '_' , $this->Ver ); ?>" target="_blank"><?php _e( 'Plugin\'s site' , $this->ltd ); ?></a></li>
61
  <li><a href="<?php echo $this->AuthorUrl; ?>?utm_source=use_plugin&utm_medium=side&utm_content=<?php echo $this->ltd; ?>&utm_campaign=<?php echo str_replace( '.' , '_' , $this->Ver ); ?>" target="_blank"><?php _e( 'Developer\'s site' , $this->ltd ); ?></a></li>
94
 
95
  <div id="user_role">
96
 
97
+ <form id="wauc_setting_default" class="wauc_form" method="post" action="<?php echo esc_url( remove_query_arg( 'wauc_msg' , add_query_arg( array( 'page' => $this->PageSlug ) ) ) ); ?>">
98
  <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
99
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
100
  <input type="hidden" name="record_field" value="user_role" />
129
 
130
  </form>
131
 
132
+ <form id="donation_form" class="wauc_form" method="post" action="<?php echo esc_url( remove_query_arg( 'wauc_msg' , add_query_arg( array( 'page' => $this->PageSlug ) ) ) ); ?>">
133
  <h3><?php _e( 'If you have already donated to.' , $this->ltd ); ?></h3>
134
  <p><?php _e( 'Please enter the \'Donation Delete Key\' that was provided on the Line Break First and End download page.' , $this->ltd ); ?></p>
135
  <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
inc/setting_loginscreen.php CHANGED
@@ -16,7 +16,7 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
16
  <h2><?php _e( 'Login Screen Settings' , $this->ltd ); ?></h2>
17
  <p>&nbsp;</p>
18
 
19
- <form id="wauc_setting_loginscreen" class="wauc_form" method="post" action="<?php echo remove_query_arg( 'wauc_msg' , add_query_arg( array( 'page' => $this->PageSlug ) ) ); ?>">
20
  <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
21
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
22
  <input type="hidden" name="record_field" value="loginscreen" />
16
  <h2><?php _e( 'Login Screen Settings' , $this->ltd ); ?></h2>
17
  <p>&nbsp;</p>
18
 
19
+ <form id="wauc_setting_loginscreen" class="wauc_form" method="post" action="<?php echo esc_url( remove_query_arg( 'wauc_msg' , add_query_arg( array( 'page' => $this->PageSlug ) ) ) ); ?>">
20
  <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
21
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
22
  <input type="hidden" name="record_field" value="loginscreen" />
inc/setting_manage_metabox.php CHANGED
@@ -21,7 +21,7 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
21
 
22
  <h3 id="wauc-apply-user-roles"><?php echo $this->get_apply_roles(); ?></h3>
23
 
24
- <form id="wauc_setting_manage_metabox" class="wauc_form" method="post" action="<?php echo remove_query_arg( 'wauc_msg' , add_query_arg( array( 'page' => $this->PageSlug ) ) ); ?>">
25
  <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
26
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
27
  <input type="hidden" name="record_field" value="manage_metabox" />
@@ -38,31 +38,7 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
38
  <h3 class="hndle"><span><?php _e( 'Posts' ); ?></span></h3>
39
  <div class="inside">
40
 
41
- <?php if( empty( $Metaboxes["metaboxes"]["post"] ) ) : ?>
42
-
43
- <?php $post = get_posts( array( 'post_type' => 'post' , 'order' => 'DESC' , 'orderby' => 'post_date' , 'numberposts' => 1 ) ); ?>
44
-
45
- <?php if( !empty( $post ) ) : ?>
46
-
47
- <?php $load_link = self_admin_url( 'post.php?post=' . $post[0]->ID . '&action=edit' ); ?>
48
-
49
- <?php else: ?>
50
-
51
- <?php $load_link = self_admin_url( 'post-new.php' ); ?>
52
-
53
- <?php endif; ?>
54
-
55
- <p>
56
- <a href="<?php echo $load_link; ?>" class="button button-primary column_load">
57
- <?php echo sprintf( __( 'Metaboxes loading for %s', $this->ltd ) , __( 'Posts' ) ); ?>
58
- </a>
59
- </p>
60
- <p class="loading">
61
- <span class="spinner"></span>
62
- <?php _e( 'Loading&hellip;' ); ?>
63
- </p>
64
-
65
- <?php else: ?>
66
 
67
  <table class="form-table">
68
  <thead>
@@ -126,20 +102,10 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
126
  <?php endforeach; ?>
127
  </tbody>
128
  </table>
129
-
130
-
131
- <?php endif; ?>
132
- </div>
133
- </div>
134
 
135
- <div class="postbox">
136
- <div class="handlediv" title="Click to toggle"><br></div>
137
- <h3 class="hndle"><span><?php _e( 'Pages' ); ?></span></h3>
138
- <div class="inside">
139
-
140
- <?php if( empty( $Metaboxes["metaboxes"]["page"] ) ) : ?>
141
 
142
- <?php $post = get_posts( array( 'post_type' => 'page' , 'order' => 'DESC' , 'orderby' => 'post_date' , 'numberposts' => 1 ) ); ?>
143
 
144
  <?php if( !empty( $post ) ) : ?>
145
 
@@ -147,21 +113,28 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
147
 
148
  <?php else: ?>
149
 
150
- <?php $load_link = self_admin_url( 'post-new.php?post_type=page' ); ?>
151
 
152
  <?php endif; ?>
153
 
154
  <p>
155
  <a href="<?php echo $load_link; ?>" class="button button-primary column_load">
156
- <?php echo sprintf( __( 'Metaboxes loading for %s', $this->ltd ) , __( 'Pages' ) ); ?>
157
  </a>
158
  </p>
159
  <p class="loading">
160
  <span class="spinner"></span>
161
  <?php _e( 'Loading&hellip;' ); ?>
162
  </p>
163
-
164
- <?php else: ?>
 
 
 
 
 
 
 
165
 
166
  <table class="form-table">
167
  <thead>
@@ -227,34 +200,7 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
227
 
228
  <?php endif; ?>
229
 
230
- </div>
231
- </div>
232
-
233
- </div>
234
- </div>
235
-
236
- <?php if ( !empty( $CustomPosts ) ) : ?>
237
-
238
- <div id="postbox-container-2" class="postbox-container">
239
- <div id="custom_post">
240
-
241
- <?php foreach( $CustomPosts as $post_name => $cpt ) : ?>
242
- <div class="postbox">
243
- <div class="handlediv" title="Click to toggle"><br></div>
244
- <h3 class="hndle"><span><?php echo strip_tags( $cpt->labels->name ); ?></span></h3>
245
- <div class="inside">
246
-
247
- <?php if( empty( $Metaboxes["metaboxes"][$post_name] ) ) : ?>
248
-
249
- <?php $args = array( 'post_type' => $post_name , 'order' => 'DESC' , 'orderby' => 'post_date' , 'numberposts' => 1 ); ?>
250
-
251
- <?php if( !empty( $activated_plugin['woocommerce'] ) && $post_name == 'shop_order' ) : ?>
252
-
253
- <?php $args['post_status'] = array( 'wc-processing', 'wc-completed' ); ?>
254
-
255
- <?php endif; ?>
256
-
257
- <?php $post = get_posts( $args ); ?>
258
 
259
  <?php if( !empty( $post ) ) : ?>
260
 
@@ -262,22 +208,38 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
262
 
263
  <?php else: ?>
264
 
265
- <?php $load_link = self_admin_url( 'post-new.php?post_type=' . $post_name ); ?>
266
 
267
  <?php endif; ?>
268
 
269
  <p>
270
  <a href="<?php echo $load_link; ?>" class="button button-primary column_load">
271
- <?php echo sprintf( __( 'Metaboxes loading for %s', $this->ltd ) , $cpt->label ); ?>
272
  </a>
273
  </p>
274
  <p class="loading">
275
  <span class="spinner"></span>
276
  <?php _e( 'Loading&hellip;' ); ?>
277
  </p>
 
 
278
 
279
- <?php else: ?>
 
 
 
 
 
 
 
 
 
 
 
 
280
 
 
 
281
  <table class="form-table">
282
  <thead>
283
  <tr>
@@ -337,6 +299,35 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
337
 
338
  <?php endif; ?>
339
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
340
  </div>
341
  </div>
342
  <?php endforeach; ?>
@@ -417,7 +408,6 @@ jQuery(document).ready(function($) {
417
  $(ev.target).parent().parent().find('.spinner').show();
418
  }
419
  }).done(function( data ) {
420
- location.reload();
421
  });
422
 
423
  return false;
21
 
22
  <h3 id="wauc-apply-user-roles"><?php echo $this->get_apply_roles(); ?></h3>
23
 
24
+ <form id="wauc_setting_manage_metabox" class="wauc_form" method="post" action="<?php echo esc_url( remove_query_arg( 'wauc_msg' , add_query_arg( array( 'page' => $this->PageSlug ) ) ) ); ?>">
25
  <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
26
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
27
  <input type="hidden" name="record_field" value="manage_metabox" />
38
  <h3 class="hndle"><span><?php _e( 'Posts' ); ?></span></h3>
39
  <div class="inside">
40
 
41
+ <?php if( !empty( $Metaboxes["metaboxes"]["post"] ) ) : ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
 
43
  <table class="form-table">
44
  <thead>
102
  <?php endforeach; ?>
103
  </tbody>
104
  </table>
 
 
 
 
 
105
 
106
+ <?php endif; ?>
 
 
 
 
 
107
 
108
+ <?php $post = get_posts( array( 'post_type' => 'post' , 'order' => 'DESC' , 'orderby' => 'post_date' , 'numberposts' => 1 ) ); ?>
109
 
110
  <?php if( !empty( $post ) ) : ?>
111
 
113
 
114
  <?php else: ?>
115
 
116
+ <?php $load_link = self_admin_url( 'post-new.php' ); ?>
117
 
118
  <?php endif; ?>
119
 
120
  <p>
121
  <a href="<?php echo $load_link; ?>" class="button button-primary column_load">
122
+ <?php echo sprintf( __( 'Metaboxes loading for %s', $this->ltd ) , __( 'Posts' ) ); ?>
123
  </a>
124
  </p>
125
  <p class="loading">
126
  <span class="spinner"></span>
127
  <?php _e( 'Loading&hellip;' ); ?>
128
  </p>
129
+ </div>
130
+ </div>
131
+
132
+ <div class="postbox">
133
+ <div class="handlediv" title="Click to toggle"><br></div>
134
+ <h3 class="hndle"><span><?php _e( 'Pages' ); ?></span></h3>
135
+ <div class="inside">
136
+
137
+ <?php if( !empty( $Metaboxes["metaboxes"]["page"] ) ) : ?>
138
 
139
  <table class="form-table">
140
  <thead>
200
 
201
  <?php endif; ?>
202
 
203
+ <?php $post = get_posts( array( 'post_type' => 'page' , 'order' => 'DESC' , 'orderby' => 'post_date' , 'numberposts' => 1 ) ); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
204
 
205
  <?php if( !empty( $post ) ) : ?>
206
 
208
 
209
  <?php else: ?>
210
 
211
+ <?php $load_link = self_admin_url( 'post-new.php?post_type=page' ); ?>
212
 
213
  <?php endif; ?>
214
 
215
  <p>
216
  <a href="<?php echo $load_link; ?>" class="button button-primary column_load">
217
+ <?php echo sprintf( __( 'Metaboxes loading for %s', $this->ltd ) , __( 'Pages' ) ); ?>
218
  </a>
219
  </p>
220
  <p class="loading">
221
  <span class="spinner"></span>
222
  <?php _e( 'Loading&hellip;' ); ?>
223
  </p>
224
+ </div>
225
+ </div>
226
 
227
+ </div>
228
+ </div>
229
+
230
+ <?php if ( !empty( $CustomPosts ) ) : ?>
231
+
232
+ <div id="postbox-container-2" class="postbox-container">
233
+ <div id="custom_post">
234
+
235
+ <?php foreach( $CustomPosts as $post_name => $cpt ) : ?>
236
+ <div class="postbox">
237
+ <div class="handlediv" title="Click to toggle"><br></div>
238
+ <h3 class="hndle"><span><?php echo strip_tags( $cpt->labels->name ); ?></span></h3>
239
+ <div class="inside">
240
 
241
+ <?php if( !empty( $Metaboxes["metaboxes"][$post_name] ) ) : ?>
242
+
243
  <table class="form-table">
244
  <thead>
245
  <tr>
299
 
300
  <?php endif; ?>
301
 
302
+ <?php $args = array( 'post_type' => $post_name , 'order' => 'DESC' , 'orderby' => 'post_date' , 'numberposts' => 1 ); ?>
303
+
304
+ <?php if( !empty( $activated_plugin['woocommerce'] ) && $post_name == 'shop_order' ) : ?>
305
+
306
+ <?php $args['post_status'] = array( 'wc-processing', 'wc-completed' ); ?>
307
+
308
+ <?php endif; ?>
309
+
310
+ <?php $post = get_posts( $args ); ?>
311
+
312
+ <?php if( !empty( $post ) ) : ?>
313
+
314
+ <?php $load_link = self_admin_url( 'post.php?post=' . $post[0]->ID . '&action=edit' ); ?>
315
+
316
+ <?php else: ?>
317
+
318
+ <?php $load_link = self_admin_url( 'post-new.php?post_type=' . $post_name ); ?>
319
+
320
+ <?php endif; ?>
321
+
322
+ <p>
323
+ <a href="<?php echo $load_link; ?>" class="button button-primary column_load">
324
+ <?php echo sprintf( __( 'Metaboxes loading for %s', $this->ltd ) , $cpt->label ); ?>
325
+ </a>
326
+ </p>
327
+ <p class="loading">
328
+ <span class="spinner"></span>
329
+ <?php _e( 'Loading&hellip;' ); ?>
330
+ </p>
331
  </div>
332
  </div>
333
  <?php endforeach; ?>
408
  $(ev.target).parent().parent().find('.spinner').show();
409
  }
410
  }).done(function( data ) {
 
411
  });
412
 
413
  return false;
inc/setting_plugin_cap.php CHANGED
@@ -20,7 +20,7 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
20
 
21
  <p>&nbsp;</p>
22
 
23
- <form id="wauc_setting_plugin_cap" class="wauc_form" method="post" action="<?php echo remove_query_arg( 'wauc_msg' , add_query_arg( array( 'page' => $this->PageSlug ) ) ); ?>">
24
  <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
25
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
26
  <input type="hidden" name="record_field" value="plugin_cap" />
20
 
21
  <p>&nbsp;</p>
22
 
23
+ <form id="wauc_setting_plugin_cap" class="wauc_form" method="post" action="<?php echo esc_url( remove_query_arg( 'wauc_msg' , add_query_arg( array( 'page' => $this->PageSlug ) ) ) ); ?>">
24
  <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
25
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
26
  <input type="hidden" name="record_field" value="plugin_cap" />
inc/setting_post_add_edit.php CHANGED
@@ -18,7 +18,7 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
18
 
19
  <h3 id="wauc-apply-user-roles"><?php echo $this->get_apply_roles(); ?></h3>
20
 
21
- <form id="wauc_setting_post_add_edit" class="wauc_form" method="post" action="<?php echo remove_query_arg( 'wauc_msg' , add_query_arg( array( 'page' => $this->PageSlug ) ) ); ?>">
22
  <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
23
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
24
  <input type="hidden" name="record_field" value="post_add_edit" />
18
 
19
  <h3 id="wauc-apply-user-roles"><?php echo $this->get_apply_roles(); ?></h3>
20
 
21
+ <form id="wauc_setting_post_add_edit" class="wauc_form" method="post" action="<?php echo esc_url( remove_query_arg( 'wauc_msg' , add_query_arg( array( 'page' => $this->PageSlug ) ) ) ); ?>">
22
  <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
23
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
24
  <input type="hidden" name="record_field" value="post_add_edit" />
inc/setting_sidemenu.php CHANGED
@@ -23,7 +23,7 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
23
 
24
  <p><a href="#TB_inline?height=300&width=600&inlineId=list_variables&modal=false" title="<?php _e( 'Shortcodes' , $this->ltd ); ?>" class="thickbox"><?php _e( 'Available Shortcodes' , $this->ltd ); ?></a></p>
25
 
26
- <form id="wauc_setting_sidemenu" class="wauc_form" method="post" action="<?php echo remove_query_arg( 'wauc_msg' , add_query_arg( array( 'page' => $this->PageSlug ) ) ); ?>">
27
  <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
28
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
29
  <input type="hidden" name="record_field" value="sidemenu" />
23
 
24
  <p><a href="#TB_inline?height=300&width=600&inlineId=list_variables&modal=false" title="<?php _e( 'Shortcodes' , $this->ltd ); ?>" class="thickbox"><?php _e( 'Available Shortcodes' , $this->ltd ); ?></a></p>
25
 
26
+ <form id="wauc_setting_sidemenu" class="wauc_form" method="post" action="<?php echo esc_url( remove_query_arg( 'wauc_msg' , add_query_arg( array( 'page' => $this->PageSlug ) ) ) ); ?>">
27
  <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
28
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
29
  <input type="hidden" name="record_field" value="sidemenu" />
inc/setting_site.php CHANGED
@@ -18,7 +18,7 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
18
 
19
  <h3 id="wauc-apply-user-roles"><?php echo $this->get_apply_roles(); ?></h3>
20
 
21
- <form id="wauc_setting_site" class="wauc_form" method="post" action="<?php echo remove_query_arg( 'wauc_msg' , add_query_arg( array( 'page' => $this->PageSlug ) ) ); ?>">
22
  <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
23
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
24
  <input type="hidden" name="record_field" value="site" />
18
 
19
  <h3 id="wauc-apply-user-roles"><?php echo $this->get_apply_roles(); ?></h3>
20
 
21
+ <form id="wauc_setting_site" class="wauc_form" method="post" action="<?php echo esc_url( remove_query_arg( 'wauc_msg' , add_query_arg( array( 'page' => $this->PageSlug ) ) ) ); ?>">
22
  <input type="hidden" name="<?php echo $this->UPFN; ?>" value="Y" />
23
  <?php wp_nonce_field( $this->Nonces["value"] , $this->Nonces["field"] ); ?>
24
  <input type="hidden" name="record_field" value="site" />
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === WP Admin UI Customize ===
2
  Contributors: gqevu6bsiz
3
- Donate link: http://gqevu6bsiz.chicappa.jp/please-donation/?utm_source=wporg&utm_medium=donate&utm_content=wauc&utm_campaign=1_5_2_6
4
  Tags: admin, post, posts, page, option, sitemenu, menu, custom, customize, dashboard, admin_bar, multisite, network, metabox
5
  Requires at least: 3.8
6
- Tested up to: 4.1
7
- Stable tag: 1.5.2.6
8
  License: GPL2
9
 
10
  Customize the management screen UI.
@@ -50,6 +50,10 @@ These to Customization is possible.
50
 
51
  == Changelog ==
52
 
 
 
 
 
53
  = 1.5.2.6 =
54
  * Changed: Change the priority to manage meta boxes.
55
  * Changed: Show the Network menus on Admin Bar Settings.
1
  === WP Admin UI Customize ===
2
  Contributors: gqevu6bsiz
3
+ Donate link: http://gqevu6bsiz.chicappa.jp/please-donation/?utm_source=wporg&utm_medium=donate&utm_content=wauc&utm_campaign=1_5_2_7
4
  Tags: admin, post, posts, page, option, sitemenu, menu, custom, customize, dashboard, admin_bar, multisite, network, metabox
5
  Requires at least: 3.8
6
+ Tested up to: 4.2.2
7
+ Stable tag: 1.5.2.7
8
  License: GPL2
9
 
10
  Customize the management screen UI.
50
 
51
  == Changelog ==
52
 
53
+ = 1.5.2.7 =
54
+ * Fixed: URL escape to add_query_arg / remove_query_arg.
55
+ * Supported: Compatible to [Polylang](https://wordpress.org/plugins/polylang/).
56
+
57
  = 1.5.2.6 =
58
  * Changed: Change the priority to manage meta boxes.
59
  * Changed: Show the Network menus on Admin Bar Settings.
wp-admin-ui-customize.css CHANGED
@@ -219,6 +219,7 @@ body.wp-admin-ui-customize_page_wp_admin_ui_customize_admin_bar .columns-1 .post
219
  #wauc_setting_manage_metabox .inside .loading .spinner,
220
  #wauc_setting_dashboard .inside .loading .spinner {
221
  float: left;
 
222
  }
223
 
224
 
219
  #wauc_setting_manage_metabox .inside .loading .spinner,
220
  #wauc_setting_dashboard .inside .loading .spinner {
221
  float: left;
222
+ visibility: visible;
223
  }
224
 
225
 
wp-admin-ui-customize.php CHANGED
@@ -2,10 +2,10 @@
2
  /*
3
  Plugin Name: WP Admin UI Customize
4
  Description: An excellent plugin to customize the management screens.
5
- Plugin URI: http://wpadminuicustomize.com/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=1_5_2_6
6
- Version: 1.5.2.6
7
  Author: gqevu6bsiz
8
- Author URI: http://gqevu6bsiz.chicappa.jp/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=1_5_2_6
9
  Text Domain: wauc
10
  Domain Path: /languages
11
  */
@@ -58,7 +58,7 @@ class WP_Admin_UI_Customize
58
 
59
 
60
  function __construct() {
61
- $this->Ver = '1.5.2.6';
62
  $this->Name = 'WP Admin UI Customize';
63
  $this->Dir = plugin_dir_path( __FILE__ );
64
  $this->Url = plugin_dir_url( __FILE__ );
@@ -103,7 +103,10 @@ class WP_Admin_UI_Customize
103
  function PluginSetup() {
104
  // load text domain
105
  load_plugin_textdomain( $this->ltd , false , $this->PluginSlug . '/languages' );
106
-
 
 
 
107
  // plugin links
108
  add_filter( 'plugin_action_links' , array( $this , 'plugin_action_links' ) , 10 , 2 );
109
 
@@ -199,6 +202,10 @@ class WP_Admin_UI_Customize
199
  $this->ActivatedPlugin["post_edit_toolbar"] = true;
200
  }
201
 
 
 
 
 
202
  }
203
 
204
 
@@ -369,7 +376,9 @@ class WP_Admin_UI_Customize
369
  if( !empty( $apply_user_roles ) ) {
370
  $UserRoles = $this->get_user_role();
371
  foreach( $apply_user_roles as $role => $v ) {
372
- $Contents .= '[ ' . $UserRoles[$role]["label"] . ' ]';
 
 
373
  }
374
  } else {
375
  $Contents .= __( 'None' );
@@ -405,7 +414,7 @@ class WP_Admin_UI_Customize
405
  foreach( $sm as $sm_key => $sm_set ) {
406
 
407
  if( preg_match("/^customize.php/", $sm_set[2] ) )
408
- $this->SubMenu[$submenu_key][$sm_key][2] = remove_query_arg( array( 'return' ) , $sm_set[2] );
409
 
410
  }
411
 
@@ -449,6 +458,15 @@ class WP_Admin_UI_Customize
449
  }
450
  }
451
  }
 
 
 
 
 
 
 
 
 
452
 
453
  if( !empty( $this->OtherPluginMenu["admin_bar"] ) ) {
454
  for($i = 0; $i < 4; $i++) {
@@ -461,6 +479,7 @@ class WP_Admin_UI_Customize
461
  }
462
  }
463
  }
 
464
  }
465
  }
466
 
@@ -609,6 +628,15 @@ class WP_Admin_UI_Customize
609
  }
610
  }
611
 
 
 
 
 
 
 
 
 
 
612
  }
613
 
614
  return $Filter_bar;
@@ -661,7 +689,7 @@ class WP_Admin_UI_Customize
661
  $GetData = $this->get_data( "regist_metabox" );
662
  $post_type = $current_screen->post_type;
663
  $Metaboxes = $wp_meta_boxes[$post_type];
664
-
665
  $Update = array();
666
  if( empty( $GetData ) ) {
667
 
@@ -825,7 +853,7 @@ class WP_Admin_UI_Customize
825
  if ( is_object( $menu_widget ) ) $menu_widget = (array) $menu_widget;
826
  if( !isset( $menu_widget["group"] ) ) $menu_widget["group"] = 0;
827
  if( !isset( $menu_widget["meta"]["class"] ) ) $menu_widget["meta"]["class"] = "";
828
- $no_submenu = array( 'search' , 'bp-notifications' , 'menu-toggle' , 'post_list' , 'page_list' );
829
  $activated_plugin = $this->ActivatedPlugin;
830
  $other_plugin = $this->OtherPluginMenu;
831
 
@@ -1301,7 +1329,7 @@ class WP_Admin_UI_Customize
1301
  if( !empty( $Update ) && check_admin_referer( $this->Nonces["value"] , $this->Nonces["field"] ) ) {
1302
  $record = apply_filters( 'wauc_pre_delete' , $this->Record[$record] );
1303
  delete_option( $record );
1304
- wp_redirect( add_query_arg( $this->MsgQ , 'delete' , stripslashes( $_POST["_wp_http_referer"] ) ) );
1305
  exit;
1306
  }
1307
  }
@@ -1316,7 +1344,7 @@ class WP_Admin_UI_Customize
1316
  delete_option( $record );
1317
  }
1318
  }
1319
- wp_redirect( add_query_arg( $this->MsgQ , 'delete' , stripslashes( $_POST["_wp_http_referer"] ) ) );
1320
  exit;
1321
  }
1322
  }
@@ -1330,7 +1358,7 @@ class WP_Admin_UI_Customize
1330
  $SubmitKey = md5( strip_tags( $_POST["donate_key"] ) );
1331
  if( $this->DonateKey == $SubmitKey ) {
1332
  update_option( $this->Record["donate"] , $SubmitKey );
1333
- wp_redirect( add_query_arg( $this->MsgQ , 'donated' ) );
1334
  exit;
1335
  }
1336
  }
@@ -1352,7 +1380,7 @@ class WP_Admin_UI_Customize
1352
  }
1353
 
1354
  update_option( $this->Record["user_role"] , $Update );
1355
- wp_redirect( add_query_arg( $this->MsgQ , 'update' , stripslashes( $_POST["_wp_http_referer"] ) ) );
1356
  exit;
1357
  }
1358
  }
@@ -1372,7 +1400,7 @@ class WP_Admin_UI_Customize
1372
 
1373
  $Record = apply_filters( 'wauc_pre_update' , $this->Record["site"] );
1374
  update_option( $Record , $Update );
1375
- wp_redirect( add_query_arg( $this->MsgQ , 'update' , stripslashes( $_POST["_wp_http_referer"] ) ) );
1376
  exit;
1377
  }
1378
  }
@@ -1392,7 +1420,7 @@ class WP_Admin_UI_Customize
1392
 
1393
  $Record = apply_filters( 'wauc_pre_update' , $this->Record["admin_general"] );
1394
  update_option( $Record , $Update );
1395
- wp_redirect( add_query_arg( $this->MsgQ , 'update' , stripslashes( $_POST["_wp_http_referer"] ) ) );
1396
  exit;
1397
  }
1398
  }
@@ -1412,7 +1440,7 @@ class WP_Admin_UI_Customize
1412
 
1413
  $Record = apply_filters( 'wauc_pre_update' , $this->Record["dashboard"] );
1414
  update_option( $Record , $Update );
1415
- wp_redirect( add_query_arg( $this->MsgQ , 'update' , stripslashes( $_POST["_wp_http_referer"] ) ) );
1416
  exit;
1417
  }
1418
  }
@@ -1467,7 +1495,7 @@ class WP_Admin_UI_Customize
1467
 
1468
  $Record = apply_filters( 'wauc_pre_update' , $this->Record["admin_bar_menu"] );
1469
  update_option( $Record , $Update );
1470
- wp_redirect( add_query_arg( $this->MsgQ , 'update' , stripslashes( $_POST["_wp_http_referer"] ) ) );
1471
  exit;
1472
  }
1473
  }
@@ -1497,7 +1525,7 @@ class WP_Admin_UI_Customize
1497
 
1498
  $Record = apply_filters( 'wauc_pre_update' , $this->Record["sidemenu"] );
1499
  update_option( $Record , $Update );
1500
- wp_redirect( add_query_arg( $this->MsgQ , 'update' , stripslashes( $_POST["_wp_http_referer"] ) ) );
1501
  exit;
1502
  }
1503
  }
@@ -1522,7 +1550,7 @@ class WP_Admin_UI_Customize
1522
 
1523
  $Record = apply_filters( 'wauc_pre_update' , $this->Record["manage_metabox"] );
1524
  update_option( $Record , $Update );
1525
- wp_redirect( add_query_arg( $this->MsgQ , 'update' , stripslashes( $_POST["_wp_http_referer"] ) ) );
1526
  exit;
1527
  }
1528
  }
@@ -1542,7 +1570,7 @@ class WP_Admin_UI_Customize
1542
 
1543
  $Record = apply_filters( 'wauc_pre_update' , $this->Record["post_add_edit"] );
1544
  update_option( $Record , $Update );
1545
- wp_redirect( add_query_arg( $this->MsgQ , 'update' , stripslashes( $_POST["_wp_http_referer"] ) ) );
1546
  exit;
1547
  }
1548
  }
@@ -1562,7 +1590,7 @@ class WP_Admin_UI_Customize
1562
 
1563
  $Record = apply_filters( 'wauc_pre_update' , $this->Record["appearance_menus"] );
1564
  update_option( $Record , $Update );
1565
- wp_redirect( add_query_arg( $this->MsgQ , 'update' , stripslashes( $_POST["_wp_http_referer"] ) ) );
1566
  exit;
1567
  }
1568
  }
@@ -1582,7 +1610,7 @@ class WP_Admin_UI_Customize
1582
 
1583
  $Record = apply_filters( 'wauc_pre_update' , $this->Record["loginscreen"] );
1584
  update_option( $Record , $Update );
1585
- wp_redirect( add_query_arg( $this->MsgQ , 'update' , stripslashes( $_POST["_wp_http_referer"] ) ) );
1586
  exit;
1587
 
1588
  }
@@ -1599,7 +1627,7 @@ class WP_Admin_UI_Customize
1599
 
1600
  $Record = apply_filters( 'wauc_pre_update' , $this->Record["plugin_cap"] );
1601
  update_option( $Record , $Update );
1602
- wp_redirect( add_query_arg( $this->MsgQ , 'update' , stripslashes( $_POST["_wp_http_referer"] ) ) );
1603
  exit;
1604
 
1605
  }
@@ -2005,6 +2033,24 @@ class WP_Admin_UI_Customize
2005
  }
2006
  }
2007
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2008
  }
2009
  foreach( $activated_plugin as $plugin_slug => $v ) {
2010
  if( !empty( $other_plugin["admin_bar"][$plugin_slug] ) && array_key_exists( $node["id"] , $other_plugin["admin_bar"][$plugin_slug] ) ) {
@@ -2279,7 +2325,7 @@ class WP_Admin_UI_Customize
2279
  $SetMain_submenu = array();
2280
 
2281
  $separator_menu = array( 0 => "" , 1 => 'read' , 2 => 'separator1' , 3 => "" , 4 => 'wp-menu-separator' );
2282
- $customize_url = add_query_arg( 'return', urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ), 'customize.php' );
2283
 
2284
  if( !empty( $GetData["main"] ) ) {
2285
 
@@ -2294,7 +2340,7 @@ class WP_Admin_UI_Customize
2294
  $controll = str_replace( 'customize.php?autofocus%5Bcontrol%5D=' , '' , $mm["slug"] );
2295
 
2296
  if( !empty( $controll ) )
2297
- $GetData["main"][$mm_pos]["slug"] = add_query_arg( 'autofocus[control]' , $controll , $customize_url );
2298
 
2299
  }
2300
 
@@ -2328,7 +2374,7 @@ class WP_Admin_UI_Customize
2328
  $controll = str_replace( 'customize.php?autofocus%5Bcontrol%5D=' , '' , $sm["slug"] );
2329
 
2330
  if( !empty( $controll ) )
2331
- $GetData["sub"][$sm_pos]["slug"] = add_query_arg( 'autofocus[control]' , $controll , $customize_url );
2332
 
2333
  }
2334
 
2
  /*
3
  Plugin Name: WP Admin UI Customize
4
  Description: An excellent plugin to customize the management screens.
5
+ Plugin URI: http://wpadminuicustomize.com/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=1_5_2_7
6
+ Version: 1.5.2.7
7
  Author: gqevu6bsiz
8
+ Author URI: http://gqevu6bsiz.chicappa.jp/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=1_5_2_7
9
  Text Domain: wauc
10
  Domain Path: /languages
11
  */
58
 
59
 
60
  function __construct() {
61
+ $this->Ver = '1.5.2.7';
62
  $this->Name = 'WP Admin UI Customize';
63
  $this->Dir = plugin_dir_path( __FILE__ );
64
  $this->Url = plugin_dir_url( __FILE__ );
103
  function PluginSetup() {
104
  // load text domain
105
  load_plugin_textdomain( $this->ltd , false , $this->PluginSlug . '/languages' );
106
+
107
+ // action
108
+ do_action( $this->ltd . '_plugins_loaded' );
109
+
110
  // plugin links
111
  add_filter( 'plugin_action_links' , array( $this , 'plugin_action_links' ) , 10 , 2 );
112
 
202
  $this->ActivatedPlugin["post_edit_toolbar"] = true;
203
  }
204
 
205
+ if( is_plugin_active( 'polylang/polylang.php' ) ) {
206
+ $this->ActivatedPlugin["polylang"] = true;
207
+ }
208
+
209
  }
210
 
211
 
376
  if( !empty( $apply_user_roles ) ) {
377
  $UserRoles = $this->get_user_role();
378
  foreach( $apply_user_roles as $role => $v ) {
379
+ if( !empty( $UserRoles[$role] ) ) {
380
+ $Contents .= '[ ' . $UserRoles[$role]["label"] . ' ]';
381
+ }
382
  }
383
  } else {
384
  $Contents .= __( 'None' );
414
  foreach( $sm as $sm_key => $sm_set ) {
415
 
416
  if( preg_match("/^customize.php/", $sm_set[2] ) )
417
+ $this->SubMenu[$submenu_key][$sm_key][2] = esc_url( remove_query_arg( array( 'return' ) , $sm_set[2] ) );
418
 
419
  }
420
 
458
  }
459
  }
460
  }
461
+
462
+ if( !empty( $this->ActivatedPlugin["polylang"] ) ) {
463
+ $plugin_slug = 'languages';
464
+ foreach( $this->Admin_bar as $node_id => $node ) {
465
+ if( strstr( $node_id , $plugin_slug ) or strstr( $node->id , $plugin_slug ) ) {
466
+ $this->OtherPluginMenu["admin_bar"]['polylang'][$node_id] = 1;
467
+ }
468
+ }
469
+ }
470
 
471
  if( !empty( $this->OtherPluginMenu["admin_bar"] ) ) {
472
  for($i = 0; $i < 4; $i++) {
479
  }
480
  }
481
  }
482
+
483
  }
484
  }
485
 
628
  }
629
  }
630
 
631
+ if( !empty( $this->ActivatedPlugin["polylang"] ) ) {
632
+ $plugin_slug = 'languages';
633
+ foreach( $Filter_bar['left']['sub'] as $node_id => $node ) {
634
+ if( strstr( $node->parent , $plugin_slug ) ) {
635
+ unset( $Filter_bar['left']['sub'][$node_id] );
636
+ }
637
+ }
638
+ }
639
+
640
  }
641
 
642
  return $Filter_bar;
689
  $GetData = $this->get_data( "regist_metabox" );
690
  $post_type = $current_screen->post_type;
691
  $Metaboxes = $wp_meta_boxes[$post_type];
692
+
693
  $Update = array();
694
  if( empty( $GetData ) ) {
695
 
853
  if ( is_object( $menu_widget ) ) $menu_widget = (array) $menu_widget;
854
  if( !isset( $menu_widget["group"] ) ) $menu_widget["group"] = 0;
855
  if( !isset( $menu_widget["meta"]["class"] ) ) $menu_widget["meta"]["class"] = "";
856
+ $no_submenu = array( 'search' , 'bp-notifications' , 'languages' , 'menu-toggle' , 'post_list' , 'page_list' );
857
  $activated_plugin = $this->ActivatedPlugin;
858
  $other_plugin = $this->OtherPluginMenu;
859
 
1329
  if( !empty( $Update ) && check_admin_referer( $this->Nonces["value"] , $this->Nonces["field"] ) ) {
1330
  $record = apply_filters( 'wauc_pre_delete' , $this->Record[$record] );
1331
  delete_option( $record );
1332
+ wp_redirect( esc_url_raw( add_query_arg( $this->MsgQ , 'delete' , stripslashes( $_POST["_wp_http_referer"] ) ) ) );
1333
  exit;
1334
  }
1335
  }
1344
  delete_option( $record );
1345
  }
1346
  }
1347
+ wp_redirect( esc_url_raw( add_query_arg( $this->MsgQ , 'delete' , stripslashes( $_POST["_wp_http_referer"] ) ) ) );
1348
  exit;
1349
  }
1350
  }
1358
  $SubmitKey = md5( strip_tags( $_POST["donate_key"] ) );
1359
  if( $this->DonateKey == $SubmitKey ) {
1360
  update_option( $this->Record["donate"] , $SubmitKey );
1361
+ wp_redirect( esc_url_raw( add_query_arg( $this->MsgQ , 'donated' ) ) );
1362
  exit;
1363
  }
1364
  }
1380
  }
1381
 
1382
  update_option( $this->Record["user_role"] , $Update );
1383
+ wp_redirect( esc_url_raw( add_query_arg( $this->MsgQ , 'update' , stripslashes( $_POST["_wp_http_referer"] ) ) ) );
1384
  exit;
1385
  }
1386
  }
1400
 
1401
  $Record = apply_filters( 'wauc_pre_update' , $this->Record["site"] );
1402
  update_option( $Record , $Update );
1403
+ wp_redirect( esc_url_raw( add_query_arg( $this->MsgQ , 'update' , stripslashes( $_POST["_wp_http_referer"] ) ) ) );
1404
  exit;
1405
  }
1406
  }
1420
 
1421
  $Record = apply_filters( 'wauc_pre_update' , $this->Record["admin_general"] );
1422
  update_option( $Record , $Update );
1423
+ wp_redirect( esc_url_raw( add_query_arg( $this->MsgQ , 'update' , stripslashes( $_POST["_wp_http_referer"] ) ) ) );
1424
  exit;
1425
  }
1426
  }
1440
 
1441
  $Record = apply_filters( 'wauc_pre_update' , $this->Record["dashboard"] );
1442
  update_option( $Record , $Update );
1443
+ wp_redirect( esc_url_raw( add_query_arg( $this->MsgQ , 'update' , stripslashes( $_POST["_wp_http_referer"] ) ) ) );
1444
  exit;
1445
  }
1446
  }
1495
 
1496
  $Record = apply_filters( 'wauc_pre_update' , $this->Record["admin_bar_menu"] );
1497
  update_option( $Record , $Update );
1498
+ wp_redirect( esc_url_raw( add_query_arg( $this->MsgQ , 'update' , stripslashes( $_POST["_wp_http_referer"] ) ) ) );
1499
  exit;
1500
  }
1501
  }
1525
 
1526
  $Record = apply_filters( 'wauc_pre_update' , $this->Record["sidemenu"] );
1527
  update_option( $Record , $Update );
1528
+ wp_redirect( esc_url_raw( add_query_arg( $this->MsgQ , 'update' , stripslashes( $_POST["_wp_http_referer"] ) ) ) );
1529
  exit;
1530
  }
1531
  }
1550
 
1551
  $Record = apply_filters( 'wauc_pre_update' , $this->Record["manage_metabox"] );
1552
  update_option( $Record , $Update );
1553
+ wp_redirect( esc_url_raw( add_query_arg( $this->MsgQ , 'update' , stripslashes( $_POST["_wp_http_referer"] ) ) ) );
1554
  exit;
1555
  }
1556
  }
1570
 
1571
  $Record = apply_filters( 'wauc_pre_update' , $this->Record["post_add_edit"] );
1572
  update_option( $Record , $Update );
1573
+ wp_redirect( esc_url_raw( add_query_arg( $this->MsgQ , 'update' , stripslashes( $_POST["_wp_http_referer"] ) ) ) );
1574
  exit;
1575
  }
1576
  }
1590
 
1591
  $Record = apply_filters( 'wauc_pre_update' , $this->Record["appearance_menus"] );
1592
  update_option( $Record , $Update );
1593
+ wp_redirect( esc_url_raw( add_query_arg( $this->MsgQ , 'update' , stripslashes( $_POST["_wp_http_referer"] ) ) ) );
1594
  exit;
1595
  }
1596
  }
1610
 
1611
  $Record = apply_filters( 'wauc_pre_update' , $this->Record["loginscreen"] );
1612
  update_option( $Record , $Update );
1613
+ wp_redirect( esc_url_raw( add_query_arg( $this->MsgQ , 'update' , stripslashes( $_POST["_wp_http_referer"] ) ) ) );
1614
  exit;
1615
 
1616
  }
1627
 
1628
  $Record = apply_filters( 'wauc_pre_update' , $this->Record["plugin_cap"] );
1629
  update_option( $Record , $Update );
1630
+ wp_redirect( esc_url_raw( add_query_arg( $this->MsgQ , 'update' , stripslashes( $_POST["_wp_http_referer"] ) ) ) );
1631
  exit;
1632
 
1633
  }
2033
  }
2034
  }
2035
  }
2036
+ } elseif( $node["id"] == 'languages' ) {
2037
+ foreach($All_Nodes as $default_node_id => $default_node) {
2038
+ if( $default_node->parent == $node["id"] ) {
2039
+ $subnode_type = '';
2040
+ if( $node_type == 'main' ) {
2041
+ $subnode_type = 'sub';
2042
+ } elseif( $node_type == 'sub' ) {
2043
+ $subnode_type = 'sub2';
2044
+ } elseif( $node_type == 'sub2' ) {
2045
+ $subnode_type = 'sub3';
2046
+ } elseif( $node_type == 'sub3' ) {
2047
+ $subnode_type = 'sub4';
2048
+ }
2049
+ if( !empty( $subnode_type ) ) {
2050
+ $SettingNodes[$Boxtype][$subnode_type][] = (array) $default_node;
2051
+ }
2052
+ }
2053
+ }
2054
  }
2055
  foreach( $activated_plugin as $plugin_slug => $v ) {
2056
  if( !empty( $other_plugin["admin_bar"][$plugin_slug] ) && array_key_exists( $node["id"] , $other_plugin["admin_bar"][$plugin_slug] ) ) {
2325
  $SetMain_submenu = array();
2326
 
2327
  $separator_menu = array( 0 => "" , 1 => 'read' , 2 => 'separator1' , 3 => "" , 4 => 'wp-menu-separator' );
2328
+ $customize_url = esc_url( add_query_arg( 'return', urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ), 'customize.php' ) );
2329
 
2330
  if( !empty( $GetData["main"] ) ) {
2331
 
2340
  $controll = str_replace( 'customize.php?autofocus%5Bcontrol%5D=' , '' , $mm["slug"] );
2341
 
2342
  if( !empty( $controll ) )
2343
+ $GetData["main"][$mm_pos]["slug"] = esc_url( add_query_arg( 'autofocus[control]' , $controll , $customize_url ) );
2344
 
2345
  }
2346
 
2374
  $controll = str_replace( 'customize.php?autofocus%5Bcontrol%5D=' , '' , $sm["slug"] );
2375
 
2376
  if( !empty( $controll ) )
2377
+ $GetData["sub"][$sm_pos]["slug"] = esc_url( add_query_arg( 'autofocus[control]' , $controll , $customize_url ) );
2378
 
2379
  }
2380