Version Description
- Enhancement: Loading the Meta boxes.
Download this release
Release Info
Developer | gqevu6bsiz |
Plugin | WP Admin UI Customize |
Version | 1.5.2.8 |
Comparing to | |
See all releases |
Code changes from version 1.5.2.7 to 1.5.2.8
- inc/setting_manage_metabox.php +13 -3
- readme.txt +5 -2
- wp-admin-ui-customize.php +37 -33
inc/setting_manage_metabox.php
CHANGED
@@ -400,17 +400,27 @@ jQuery(document).ready(function($) {
|
|
400 |
|
401 |
$('.wauc_form .column_load').on('click', function( ev ) {
|
402 |
var load_url = $(ev.target).prop('href');
|
403 |
-
|
|
|
|
|
404 |
$.ajax({
|
405 |
url: load_url,
|
406 |
beforeSend: function( xhr ) {
|
407 |
$(ev.target).parent().parent().find('.loading').show();
|
408 |
$(ev.target).parent().parent().find('.spinner').show();
|
409 |
}
|
410 |
-
}).done(function(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
411 |
});
|
412 |
-
|
413 |
return false;
|
|
|
414 |
}).disableSelection();
|
415 |
|
416 |
});
|
400 |
|
401 |
$('.wauc_form .column_load').on('click', function( ev ) {
|
402 |
var load_url = $(ev.target).prop('href');
|
403 |
+
|
404 |
+
load_url += '&<?php echo $this->ltd; ?>_metabox_load=1';
|
405 |
+
|
406 |
$.ajax({
|
407 |
url: load_url,
|
408 |
beforeSend: function( xhr ) {
|
409 |
$(ev.target).parent().parent().find('.loading').show();
|
410 |
$(ev.target).parent().parent().find('.spinner').show();
|
411 |
}
|
412 |
+
}).done(function( post_html_el ) {
|
413 |
+
|
414 |
+
if( post_html_el.indexOf( "adminpage = 'post-php'" ) != -1 || post_html_el.indexOf( "adminpage = 'post-new-php'" ) != -1 ) {
|
415 |
+
|
416 |
+
location.reload();
|
417 |
+
|
418 |
+
}
|
419 |
+
|
420 |
});
|
421 |
+
|
422 |
return false;
|
423 |
+
|
424 |
}).disableSelection();
|
425 |
|
426 |
});
|
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=
|
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.
|
8 |
License: GPL2
|
9 |
|
10 |
Customize the management screen UI.
|
@@ -50,6 +50,9 @@ These to Customization is possible.
|
|
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/).
|
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_8
|
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.8
|
8 |
License: GPL2
|
9 |
|
10 |
Customize the management screen UI.
|
50 |
|
51 |
== Changelog ==
|
52 |
|
53 |
+
= 1.5.2.8 =
|
54 |
+
* Enhancement: Loading the Meta boxes.
|
55 |
+
|
56 |
= 1.5.2.7 =
|
57 |
* Fixed: URL escape to add_query_arg / remove_query_arg.
|
58 |
* Supported: Compatible to [Polylang](https://wordpress.org/plugins/polylang/).
|
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=
|
6 |
-
Version: 1.5.2.
|
7 |
Author: gqevu6bsiz
|
8 |
-
Author URI: http://gqevu6bsiz.chicappa.jp/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=
|
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.
|
62 |
$this->Name = 'WP Admin UI Customize';
|
63 |
$this->Dir = plugin_dir_path( __FILE__ );
|
64 |
$this->Url = plugin_dir_url( __FILE__ );
|
@@ -104,8 +104,7 @@ class WP_Admin_UI_Customize
|
|
104 |
// load text domain
|
105 |
load_plugin_textdomain( $this->ltd , false , $this->PluginSlug . '/languages' );
|
106 |
|
107 |
-
|
108 |
-
do_action( $this->ltd . '_plugins_loaded' );
|
109 |
|
110 |
// plugin links
|
111 |
add_filter( 'plugin_action_links' , array( $this , 'plugin_action_links' ) , 10 , 2 );
|
@@ -138,6 +137,12 @@ class WP_Admin_UI_Customize
|
|
138 |
add_action( 'wp_dashboard_setup' , array( $this , 'post_meta_boxes_dashboard_load' ) , 10000 );
|
139 |
|
140 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
|
142 |
// PluginSetup
|
143 |
function plugin_action_links( $links , $file ) {
|
@@ -686,46 +691,45 @@ class WP_Admin_UI_Customize
|
|
686 |
if( !empty( $current_screen ) && $current_screen->base == 'post' && current_user_can( $capability ) ) {
|
687 |
global $wp_meta_boxes;
|
688 |
|
689 |
-
$
|
|
|
690 |
$post_type = $current_screen->post_type;
|
691 |
$Metaboxes = $wp_meta_boxes[$post_type];
|
|
|
|
|
692 |
|
693 |
-
$
|
694 |
-
|
|
|
|
|
|
|
695 |
|
696 |
-
|
|
|
697 |
foreach( $Metaboxes as $context => $meta_box ) {
|
698 |
-
foreach( $meta_box as $priority => $box ) {
|
699 |
-
foreach( $box as $metabox_id => $b ) {
|
700 |
-
$Update["metaboxes"][$post_type][$context][$priority][$b["id"]] = strip_tags( $b["title"] );
|
701 |
-
}
|
702 |
-
}
|
703 |
-
}
|
704 |
|
705 |
-
|
706 |
-
|
707 |
-
|
708 |
-
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
|
713 |
-
if( !empty( $GetData["metaboxes"][$post_type][$context][$priority][$b["id"]] ) ) {
|
714 |
-
$Update["metaboxes"][$post_type][$context][$priority][$b["id"]] = strip_tags( $b["title"] );
|
715 |
-
} else {
|
716 |
-
$Update["metaboxes"][$post_type][$context][$priority][$b["id"]] = strip_tags( $b["title"] );
|
717 |
-
}
|
718 |
-
}
|
719 |
}
|
|
|
720 |
}
|
|
|
721 |
}
|
|
|
722 |
}
|
723 |
-
|
724 |
}
|
725 |
|
726 |
-
if( !empty( $
|
727 |
-
update_option( $this->Record["regist_metabox"] , $
|
728 |
}
|
|
|
729 |
}
|
730 |
|
731 |
}
|
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_8
|
6 |
+
Version: 1.5.2.8
|
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_8
|
9 |
Text Domain: wauc
|
10 |
Domain Path: /languages
|
11 |
*/
|
58 |
|
59 |
|
60 |
function __construct() {
|
61 |
+
$this->Ver = '1.5.2.8';
|
62 |
$this->Name = 'WP Admin UI Customize';
|
63 |
$this->Dir = plugin_dir_path( __FILE__ );
|
64 |
$this->Url = plugin_dir_url( __FILE__ );
|
104 |
// load text domain
|
105 |
load_plugin_textdomain( $this->ltd , false , $this->PluginSlug . '/languages' );
|
106 |
|
107 |
+
add_action( 'plugins_loaded' , array( $this , 'plugins_loaded' ) );
|
|
|
108 |
|
109 |
// plugin links
|
110 |
add_filter( 'plugin_action_links' , array( $this , 'plugin_action_links' ) , 10 , 2 );
|
137 |
add_action( 'wp_dashboard_setup' , array( $this , 'post_meta_boxes_dashboard_load' ) , 10000 );
|
138 |
|
139 |
}
|
140 |
+
|
141 |
+
function plugins_loaded() {
|
142 |
+
|
143 |
+
do_action( $this->ltd . '_plugins_loaded' );
|
144 |
+
|
145 |
+
}
|
146 |
|
147 |
// PluginSetup
|
148 |
function plugin_action_links( $links , $file ) {
|
691 |
if( !empty( $current_screen ) && $current_screen->base == 'post' && current_user_can( $capability ) ) {
|
692 |
global $wp_meta_boxes;
|
693 |
|
694 |
+
$regist_meta_boxes = $this->get_data( "regist_metabox" );
|
695 |
+
|
696 |
$post_type = $current_screen->post_type;
|
697 |
$Metaboxes = $wp_meta_boxes[$post_type];
|
698 |
+
|
699 |
+
$regist_meta_boxes['UPFN'] = $this->UPFN;
|
700 |
|
701 |
+
if( empty( $regist_meta_boxes['metaboxes'][$post_type] ) or !empty( $_GET[$this->ltd . '_metabox_load'] ) ) {
|
702 |
+
|
703 |
+
$regist_meta_boxes['metaboxes'][$post_type] = array();
|
704 |
+
|
705 |
+
}
|
706 |
|
707 |
+
if( !empty( $Metaboxes ) ) {
|
708 |
+
|
709 |
foreach( $Metaboxes as $context => $meta_box ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
710 |
|
711 |
+
foreach( $meta_box as $priority => $box ) {
|
712 |
+
|
713 |
+
if( is_array( $box ) ) {
|
714 |
+
|
715 |
+
foreach( $box as $metabox_id => $metabox_detail ) {
|
716 |
+
|
717 |
+
$regist_meta_boxes['metaboxes'][$post_type][$context][$priority][$metabox_id] = strip_tags( $metabox_detail['title'] );
|
718 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
719 |
}
|
720 |
+
|
721 |
}
|
722 |
+
|
723 |
}
|
724 |
+
|
725 |
}
|
726 |
+
|
727 |
}
|
728 |
|
729 |
+
if( !empty( $regist_meta_boxes ) ) {
|
730 |
+
update_option( $this->Record["regist_metabox"] , $regist_meta_boxes );
|
731 |
}
|
732 |
+
|
733 |
}
|
734 |
|
735 |
}
|