- added filter for fix #306 issue;

This commit is contained in:
nikitozzzzzzz
2017-10-19 16:28:30 +03:00
parent f8beaf744e
commit a36226c718
2 changed files with 8 additions and 2 deletions
+8
View File
@@ -351,6 +351,14 @@ if ( ! class_exists( 'Shortcodes' ) ) {
* @param array $args
*/
function dynamic_css( $args = array() ) {
/*
* for fix the issue #306
*/
$disable_css = apply_filters( 'um_disable_dynamic_global_css', false );
if ( $disable_css )
return '';
extract( $args );
include_once um_path . 'assets/dynamic_css/dynamic_global.php';
-2
View File
@@ -10,8 +10,6 @@ if ( ! class_exists( 'User_posts' ) ) {
function __construct() {
//add_filter('um_profile_tabs', array(&$this, 'add_tab'), 100);
add_action('um_profile_content_posts', array(&$this, 'add_posts') );
add_action('um_profile_content_comments', array(&$this, 'add_comments') );