Error in filter
-
Hi! There is an error in this file:
inc\common-functions-hooks.php
with this filter:if (!function_exists('infinity_mag_excerpt_length') && !is_admin()): /** * Excerpt length * * @since infinity-mag 1.0.0 * * @param null * @return int */ function infinity_mag_excerpt_length($length) { $excerpt_length = infinity_mag_get_option('excerpt_length_global'); if (absint($excerpt_length) > 0) { $excerpt_length = absint($excerpt_length); } return absint($excerpt_length); } endif; add_filter('excerpt_length', 'infinity_mag_excerpt_length', 999);
that the add_filter is behind the endif. This causes an error, as in the admin area the excerpt will get this filter, but the function won’t be created to it. Could you please fix this?
- The topic ‘Error in filter’ is closed to new replies.