• Skip to primary navigation
  • Skip to main content

RocketGeek

Home of WP-Members, The Original WordPress Membership Plugin

  • WordPress Plugins
    • WP-Members
      • FAQs
      • Quick Start
      • Documentation
      • Extensions
    • Advanced Options
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Download Protect
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Invite Codes
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • MailChimp Integration
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • PayPal Subscriptions
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Salesforce Web-to-Lead
    • Security
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Text Editor
      • Purchase the Plugin
      • Get the Pro Bundle
    • User List
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • User Tracking
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Memberships for WooCommerce
    • WordPass
  • Blog
    • Basics
    • Tips and Tricks
    • Filters
    • Actions
    • Code Snippets
    • Shortcodes
    • Design
    • Release Announcements
  • Store
    • Cart
    • Checkout
  • Contact
  • Log In
  • Show Search
Hide Search
Home » Blog » WP-Members 2.8.2 bug fix for “string contains…” when using auto excerpt

WP-Members 2.8.2 bug fix for “string contains…” when using auto excerpt

Chad Butler · May 2, 2013 ·

This article is provided free. Find out how you can get full access to premium content, including how-to articles and support forums, as well as priority email support and member exclusive plugin extensions..

 

This is one of those odd things that slips through quality control before a full release package.  There is an artifact in the code that was there for debugging a new feature and this inadvertently made it into the production version.  

This particular bug only effects the use of the auto excerpt feature.  It only effects those automatically generated excerpts that may contain html tags such as <i> (italics), <strong> (bold text), <b> (also bold text), and <h1,2,3,4,5> (heading) tags.

So if you are effected by this particular issue, the fix is fairly simple and involves removing the offending script.

In the utilities.php file, the wpmem_do_excerpt function is all the way at the end.  You will find line 218 to be as follows:

if( stristr( $content, '<' . $tag . '>' ) ) { echo 'string contains: ' . '< --' . $tag . '-- >';

Remove everything after the opening curly brace so that is looks like this:

if( stristr( $content, '<' . $tag . '>' ) ) {

Save the file and you are all set.

This fix will be permanently applied to the next version (2.8.3)

Blog bug-fix

Ready to get started?

Join Today!

© 2025 · butlerblog.com · RocketGeek is built using WordPress, WP-Members, and the Genesis Framework

  • butlerblog.com
  • WP-Members Support Subscription
  • Terms of Service
  • Privacy Policy
  • Refund Policy