Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1234429

    I am trying to use add_filter( 'avf_slideshow_config', 'my_avf_slideshow_config' ); to set the video_loop property of a color section background video to false (it’s hardcoded to true in enfold/config-templatebuilder/avia-shortcodes/section.php:1280 and filtered in enfold/config-templatebuilder/avia-shortcodes/av-helper-slideshow.php:93.)

    The filter works, but on lines 137 and 139 of enfold/config-templatebuilder/avia-shortcodes/av-helper-slideshow.php, the following conditional:

    //if we got subslides overwrite the id array
    if( ! empty( $config['content'] ) )
    {
    	$this->extract_subslides( $config['content'] );
    }

    should be coded as

    //if we got subslides overwrite the id array
    if( ! empty( $this->config['content'] ) )
    {
    	$this->extract_subslides( $this->config['content'] );
    }

    The conditional and subsequent extract_subslides() call is using the raw $config value passed into the constructor rather than the filtered $this->config.

    #1234635

    Hey Bullfrog245,

    What PHP version are you using?

    Best regards,
    Nikko

    #1234660

    I’m using PHP 7.3

    #1235114

    Hi Bullfrog245,

    Thanks for pointing it out. :)
    We’ll forward it to our devs.
    I apologize for misreading it.

    Best regards,
    Nikko

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.