Fix Empty delimiter All in One SEO Pack Feature Requests Forum

The support forums have a new home! Please visit All in One SEO Pack's new residence at Semper Plugins to purchase a support plan.

 
You must be logged in to post
Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Fix Empty delimiter

Post
New Member

bryanruiz0

posts 1

9:52 am October 9, 2009

If you could fix this in the next release, i wont have to keep updating your code every time you release!  I have fixed it for you, you just need to iupdate aioseop.class.php with this function.

Warning: stristr() [function.stristr]: Empty delimiter in H:\Documents and Settings\Bryan\My Documents\workspace\exploremark\www\blog\wp-content\plugins\all-in-one-seo-pack\aioseop.class.php on line 122

Warning: stristr() [function.stristr]: Empty delimiter in H:\Documents and Settings\Bryan\My Documents\workspace\exploremark\www\blog\wp-content\plugins\all-in-one-seo-pack\aioseop.class.php on line 122

Below is the fixed version of this function:

function aioseop_mrt_exclude_this_page(){
            global $aioseop_options;
            $currenturl = trim($_SERVER['REQUEST_URI'],'/');
    /*        echo "<br /><br />";
            echo $aioseop_options['aiosp_ex_pages'];
            echo "<br /><br />";
*/
        
            $excludedstuff = explode(',',$aioseop_options['aiosp_ex_pages']);
            foreach($excludedstuff as $exedd){
                //echo $exedd;
            $exedd = trim($exedd);
            if($exedd){
                if(stristr($currenturl, $exedd)){
                    return true;
                }
            }
        }
        return false;
    }

Admin

hallsofmontezuma

Cary, NC

posts 202

2:49 pm November 10, 2009

You must be a subscriber to view administrator posts. Click here to purchase a support subscription.

For what shall it profit a man, if he shall gain the whole world, and lose his own soul?


About the WordPress Developer Forum

Forum Timezone: America/New_York

Most Users Ever Online: 205

Currently Online:
27 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 5
Forums: 23
Topics: 1543
Posts: 3447

Membership:

There are 6357 Members

There are 4 Admins
There are 3 Moderators