Bug
-
Latest version of PMpro
File: paid-memberships-pro\includes\content.php
Following filters must receive 2 arguments:
add_filter(“comments_array”, “pmpro_comments_filter”);
add_filter(“comments_open”, “pmpro_comments_filter”);it must be
add_filter(“comments_array”, “pmpro_comments_filter”, 10, 2);
add_filter(“comments_open”, “pmpro_comments_filter”, 10, 2);because function has 2 arguments: pmpro_comments_filter($comments, $post_id = NULL)
in other case there are errors on some pages.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Bug’ is closed to new replies.