WordPress.org

Ready to get started?Download WordPress

Forums

Custom More Link Complete
[resolved] To greedy link catch in version 1.0 (1 post)

  1. gerobe
    Member
    Posted 3 years ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic