Results 1 to 1 of 1

Thread: Hot fix acfcp2.2

  1. #1
    dikiyforester's Avatar
    Join Date
    Oct 2011
    Location
    Russian Federation
    Posts
    2,229
    Thanks
    89
    Thanked 593 Times in 491 Posts

    Hot fix acfcp2.2

    Hello!

    We found bug in ACFCP 2.2 display options.

    Open file /wp-content/plugins/advanced-custom-fields-for-ClassiPress/framework/acf/acf-filters.php lines 22-48
    there are functions acf_location_filter(), acf_private_filter(), acf_logged_filter(), acf_featured_filter()

    replace all code 22-48 lines with following:
    PHP Code:
    function acf_location_filter$props$name$location ) {
        if ( ! isset( 
    $props$location ] ) || 'yes' !== $props$location ] )
            return 
    false;

        return 
    $props;
    }

    function 
    acf_private_filter$props ) {
        if ( isset( 
    $props['private'] ) && 'yes' === $props['private'] && isset( $props['can_see'] ) && ! $props['can_see'] )
            return 
    false;

        return 
    $props;
    }

    function 
    acf_logged_filter$props ) {
        if ( isset( 
    $props['logged_in'] ) && 'yes' === $props['logged_in'] && ! is_user_logged_in() )
            return 
    false;

        return 
    $props;
    }

    function 
    acf_featured_filter$props ) {
        if ( isset( 
    $props['featured'] ) && 'yes' === $props['featured'] && ! is_sticky() )
            return 
    false;

        return 
    $props;

    Sorry!
    This fix will implement in ACFCP2.2.1 in couple of days.
    Last edited by dikiyforester; April 30th, 2013 at 05:43 AM.
    arthemes.org - AppThemes plugins, tutorials, modifications and services

  2. The Following User Says Thank You to dikiyforester For This Useful Post:

    Fanatic (April 30th, 2013)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)