Some authors are not returned.
-
Hi,
I have problem with Co-Authors Plus 3.0.5 since I updated to WordPress 3.5.1. A large part of the authors are not returned when I want to assign author(s) to a post.
But if in co-authors-plus.php, I comment the lines 890 to 908, the plugin returns the author(s) I want.
$args = array( 'search' => $search, 'get' => 'all', 'number' => 10, ); $args = apply_filters( 'coauthors_search_authors_get_terms_args', $args ); add_filter( 'terms_clauses', array( $this, 'filter_terms_clauses' ) ); $found_terms = get_terms( $this->coauthor_taxonomy, $args ); remove_filter( 'terms_clauses', array( $this, 'filter_terms_clauses' ) ); if ( empty( $found_terms ) ) return array(); // Get the co-author objects $found_users = array(); foreach( $found_terms as $found_term ) { $found_user = $this->get_coauthor_by( 'user_nicename', $found_term->slug ); if ( !empty( $found_user ) ) $found_users[$found_user->user_login] = $found_user; }
Do you have an idea of the problem?
Thank you in advance,
Emmanuelhttps://www.ads-software.com/extend/plugins/co-authors-plus/
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Some authors are not returned.’ is closed to new replies.