php notices on functions that do not exist
-
When using this shortcode setup: [bsp-display-forum-index forum= ‘47657, 47661, 47659′ search=’no’ breadcrumb=’no’] we get PHP errors on the search and breadcrumb parameter because the filters return ‘no function’.
Changing:
if (!empty( $attr['breadcrumb']) && ($attr['breadcrumb'] == 'no' ) ) { add_filter ('bbp_no_breadcrumb', 'asc_no_breadcrumb'); } if (!empty( $attr['search']) && ($attr['search'] == 'no' ) ) { add_filter ('bbp_allow_search', 'asc_no_search'); }to
if (!empty( $attr['breadcrumb']) && ($attr['breadcrumb'] == 'no' ) ) { add_filter ('bbp_no_breadcrumb', '__return_false'); } if (!empty( $attr['search']) && ($attr['search'] == 'no' ) ) { add_filter ('bbp_allow_search', '__return_false'); }resolves this issue because it calls the core WP versions to return a false.
If you have a Github repository I’m happy to provide a patch.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘php notices on functions that do not exist’ is closed to new replies.