Plugin Directory

Changeset 3110913


Ignore:
Timestamp:
07/02/2024 07:28:25 AM (21 months ago)
Author:
Stepasyuk
Message:

Small fix

Location:
filter-everything
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • filter-everything/tags/1.8.5/src/wpc-third-party.php

    r3096306 r3110913  
    465465function flrt_add_cpt_to_pll( $post_types, $is_settings ) {
    466466    if ( $is_settings ) {
    467         unset( $post_types[ FLRT_FILTERS_SET_POST_TYPE ], $post_types[ FLRT_SEO_RULES_POST_TYPE ] );
     467        unset( $post_types[ FLRT_FILTERS_SET_POST_TYPE ], $post_types[ FLRT_FILTERS_SET_POST_TYPE ] );
    468468    } else {
    469469        $post_types[ FLRT_FILTERS_SET_POST_TYPE ] = FLRT_FILTERS_SET_POST_TYPE;
    470         $post_types[ FLRT_SEO_RULES_POST_TYPE ] = FLRT_SEO_RULES_POST_TYPE;
     470        if( defined('FLRT_FILTERS_PRO') && FLRT_FILTERS_PRO ) {
     471            $post_types[ FLRT_SEO_RULES_POST_TYPE ] = FLRT_SEO_RULES_POST_TYPE;
     472        }
    471473    }
    472474    return $post_types;
  • filter-everything/trunk/src/wpc-third-party.php

    r3096306 r3110913  
    465465function flrt_add_cpt_to_pll( $post_types, $is_settings ) {
    466466    if ( $is_settings ) {
    467         unset( $post_types[ FLRT_FILTERS_SET_POST_TYPE ], $post_types[ FLRT_SEO_RULES_POST_TYPE ] );
     467        unset( $post_types[ FLRT_FILTERS_SET_POST_TYPE ], $post_types[ FLRT_FILTERS_SET_POST_TYPE ] );
    468468    } else {
    469469        $post_types[ FLRT_FILTERS_SET_POST_TYPE ] = FLRT_FILTERS_SET_POST_TYPE;
    470         $post_types[ FLRT_SEO_RULES_POST_TYPE ] = FLRT_SEO_RULES_POST_TYPE;
     470        if( defined('FLRT_FILTERS_PRO') && FLRT_FILTERS_PRO ) {
     471            $post_types[ FLRT_SEO_RULES_POST_TYPE ] = FLRT_SEO_RULES_POST_TYPE;
     472        }
    471473    }
    472474    return $post_types;
Note: See TracChangeset for help on using the changeset viewer.