Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi,
    The Pro version is completely compatible with ssl, But we have not tested the Free version yet.
    In the next version of Master Slider free it will be fixed.

    Regards,
    Averta Support

    Hi,

    on my installation i had no issue with the changing from http to https, everything works fine.

    Best regards,
    Harry

    Hi Harry,
    Thanks for using Master Slider and thanks for sharing your info with us.

    Regards
    Averta Support

    Hi,

    no problem;)

    Will be there an update to WP 4.5.x ?
    Maybe it would be enough to change the “tested up to” in the readme.txt. It seems that Master Slider is compatible and have no issues with WP 4.5.x

    Btw i had one question: to avoid loading code that is not neccessary i use my functions.php to load scripts and styles only where i need them like ` if (is_plugin_active(‘master-slider/master-slider.php’) )
    {
    wp_deregister_script( ‘masterslider-core’ );
    wp_dequeue_script( ‘masterslider-core’ );
    wp_deregister_style( ‘msl-custom’ );
    wp_dequeue_style( ‘msl-custom’ );
    wp_deregister_style( ‘msl-main’ );
    wp_dequeue_style( ‘msl-main’ );
    if (is_page(array(206)) ) //only on this page the slider is used
    {
    wp_register_script( ‘masterslider-core’ , ‘/wp-content/plugins/aggregate/css/own-css/slider/harrys_masterslider.min.js’, array( ‘jquery’, ‘jquery-easing’ ), false, true );
    wp_enqueue_script( ‘masterslider-core’ );
    wp_register_style(‘msl-main’, ‘/wp-content/themes/aggregate/css/own-css/slider/harrys_masterslider.main.css’,array(), false, ‘all’);
    wp_enqueue_style(‘msl-main’);
    }
    }`
    (i am using own css and js because of some little changes i have made and don’t want to make them again if the plugin is updated)
    All this is working fine. But on the category pages like https://www.all4hardware4u.de/elektronik-news/ i see in the head the <script>var ms_grabbing_curosr = 'https://www.all4hardware4u.de/wp-content/plugins/master-slider/public/assets/css/common/grabbing.cur', ms_grab_curosr =... and <meta name=generator content="MasterSlider 2.7.1...
    But i don’t need this there because there is no slider;)
    This should be the functions “inline_css_fallback” and “meta_generator” in your \plugins\master-slider\public\includes\class-msp-frontend-assets.php
    I have tried “remove_action(‘wp_head’, ‘inline_css_fallback’ );” and so on but it didn’t work. It seems i need to know the class variable for that so i could try:

    global $your_Class_Variabel_for_MSP_Frontend_Assets;
    remove_action( 'wp_head', array( $your_Class_Variabel_for_MSP_Frontend_Assets, 'meta_generator' ) );

    If “add_action” is called from a plugin, the class variable must been used with “remove_action”.

    This not really no issue but maybe you can shortly help me with this;)

    Best regards,
    Harry

    Plugin Author averta

    (@averta)

    Dear friend,

    You can use the following snippet for removing the meta generator:

    /**
     * Allows to remove method for a hook by class name
     */
    if( ! function_exists( 'remove_filter_from_class' ) ){
    
    	function remove_filter_from_class( $hook_name = '', $class_name ='', $method_name = '', $priority = 0 ) {
    		global $wp_filter;
    
    		// Take only filters on right hook name and priority
    		if ( !isset($wp_filter[$hook_name][$priority]) || !is_array($wp_filter[$hook_name][$priority]) )
    			return false;
    
    		// Loop on filters registered
    		foreach( (array) $wp_filter[$hook_name][$priority] as $unique_id => $filter_array ) {
    			// Test if filter is an array ! (always for class/method)
    			if ( isset($filter_array['function']) && is_array($filter_array['function']) ) {
    				// Test if object is a class, class and method is equal to param !
    				if ( is_object($filter_array['function'][0]) && get_class($filter_array['function'][0]) && get_class($filter_array['function'][0]) == $class_name && $filter_array['function'][1] == $method_name ) {
    					unset($wp_filter[$hook_name][$priority][$unique_id]);
    				}
    			}
    
    		}
    
    		return false;
    	}
    }
    
    remove_filter_from_class( 'wp_head', 'MSP_Frontend_Assets', 'meta_generator', 10 );

    Regards

    Thanks a lot! Great help here;)

    btw:
    Will be there an update (maybe just update the readme.txt) to WordPress 4.5.x?

    I found no issue since the version 4.4 and i have tested it well, so it could be enough to change the “tested up to” in the readme.txt

    Best regards,
    Harry

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘switch from http to https’ is closed to new replies.