WordPress.org

Support

Support » Plugins and Hacks » Custom More Link Complete » [Resolved] [Plugin: Custom More Link Complete] To greedy link catch in version 1.0

[Resolved] [Plugin: Custom More Link Complete] To greedy link catch in version 1.0

  • I found out that the regular expression to look for the more-link is to greedy. If you have a link in the post, it might wrap the new code around the whole section.

    So please replaxe the linke

    $search_pattern='=<a href\="(.*)(#more-[\d]+)" class\="([a-zA-Z\-\ ]+)">(.*)<\/a>=';

    with

    $search_pattern='=<a href\="([^>]*)(#more-[\d]+)" class\="([a-zA-Z\-\ ]+)">(.*)<\/a>=';

    to fix this.

    http://wordpress.org/extend/plugins/custom-more-link-complete/

  • The topic ‘[Resolved] [Plugin: Custom More Link Complete] To greedy link catch in version 1.0’ is closed to new replies.
Skip to toolbar