Skip to content

[Resolved] WP 4.7.2, acf & press permit

Home Forums Developer Support Plugin Compat (dev) WP 4.7.2, acf & press permit

This topic contains 1 reply, has 2 voices, and was last updated by 6 months, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #22053 Reply

    If we use press permit with acf and use a user in a custom group and try to edit a post. This will causes a loop on flt_get_terms_clauses, because this function calls wp_get_object_terms, which in turn calls get_terms, which calls WP_Term_Query classes own get_terms, which calls flt_get_terms_clauses again by triggering terms_clauses filter, which flt_get_terms_clauses is added to.

    This is probably caused because acf tries to load terms in wp-admin which is not expected by press permit or something similar.

    This can be solved at least temporarily by adding
    unset($GLOBALS['wp_filter']['terms_clauses'][2]);
    To the start of flt_get_terms_clauses, for some reason remove_filter refused to work on this.

    #22054 Reply

    [ login required ]

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Registered members have full access to Pro support forums here.

Feel free to log in or purchase a support key.