Subscribe via
Welcome, Guest. Please login or register.
Did you miss your activation email?
Pages: [1]
Print
Author Topic: css-exclude  (Read 1599 times)
stemu2000
Newbie
*
Posts: 1


View Profile Email
« on: May 25, 2009, 03:52:13 AM »

great plugin, love it! -cuts down on the page loading time.

just wanted to let you know that i had some problems with the gd-star-rating plugin. The relative paths to the pictures in the css files didn't work so i wanted to exclude that css file and found this little bug in your code:


          preg_match('/href=[\'"]([^\'"]+)/', $link_tag, $href_match);
          if ( $href_match[1] ) {
            // do not include anything in excluded list
            $skip = false;
            foreach ($wpm_options['css_exclude'] as $exclude_pat) {
              if ( strpos($src_match[1], $exclude_pat) !== false ) {


last line should be changed to

              if ( strpos($href_match[1], $exclude_pat) !== false ) {


Regards,
Stefan
Logged

Thaya
Administrator
Sr. Member
*****
Posts: 420



View Profile WWW Email
« Reply #1 on: May 25, 2009, 02:40:02 PM »

Thanks for letting me know.  I have fixed this in version 0.2.1.
Logged

Pages: [1]
Print
Jump to: