WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Job Manager] RSS bug when title or category begins with feed (1 post)

  1. Jeff Sterup
    Member
    Posted 3 years ago #

    I found a bug in the Job Manager plugin. When a job title or category begins with the word feed the rss feed is shown. I'm working on a agricultural job service website and they have feedlot jobs. Whenever I go to the url for that category I get the rss feed. I also have listings for feedlot manager and those also show the feed. I fixed it by editing the rewrite rules in frontend.php. On line 70 I changed the rule as follows:

    The rule was this
    "$url/feed/?" => "index.php?feed=jobman",

    I changed it to this
    "$url/feed/?$" => "index.php?feed=jobman",

    On line 86 I changed the rule as follows

    The rule was this
    "($lang)?$url/feed/?" => 'index.php?feed=jobman&lang=$matches[2]',

    I changed it to this
    "($lang)?$url/feed/?$" => 'index.php?feed=jobman&lang=$matches[2]',

    The $ character at the end of the matching regex tells it to end so it only matches /feed or /feed/ and it wont match /feedlot/.

Topic Closed

This topic has been closed to new replies.

About this Topic