- optimized account page;

- optimized code of shortcodes/password/account classes;
- fixed some enqueue scripts issues;
This commit is contained in:
nikitozzzzzzz
2017-08-11 14:21:42 +03:00
parent 92ab044b8a
commit af191ee149
11 changed files with 695 additions and 803 deletions
-9
View File
@@ -11,20 +11,11 @@ if ( ! class_exists( 'Enqueue' ) ) {
function __construct() {
add_action('wp_head', array(&$this, 'wp_head'), 999); // high-priority
$priority = apply_filters( 'um_core_enqueue_priority', 100 );
add_action('wp_enqueue_scripts', array(&$this, 'wp_enqueue_scripts'), $priority );
}
/***
*** @Enqueue inline css globally
***/
function wp_head() {
$css = um_get_option('custom_css');
if ( !$css ) return; ?><!-- ULTIMATE MEMBER INLINE CSS BEGIN --><style type="text/css"><?php print $this->minify( $css ); ?></style><!-- ULTIMATE MEMBER INLINE CSS END --><?php
}
/***
*** @Minify css string