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

  • Resolved gerobe

    (@gerobe)


    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 ‘[Plugin: Custom More Link Complete] To greedy link catch in version 1.0’ is closed to new replies.