Plugin Directory

Changeset 676649


Ignore:
Timestamp:
03/05/2013 09:40:48 PM (13 years ago)
Author:
danielauener
Message:

tagging version 1.1, resolving preg_match bug

Location:
color-scheme-every-theme
Files:
4 edited
6 copied

Legend:

Unmodified
Added
Removed
  • color-scheme-every-theme/tags/1.1/classes/ColorExtractor.class.php

    r673507 r676649  
    7070            if ($this->color_scheme_exists()) {
    7171                $scheme = file_get_contents($this->current_css_tmpl);
    72                 if (preg_match('/\/\*(.|\\n|\\r)+\*\//',$scheme, $default_colors)) {
    73                     return $default_colors[0];
     72                $start = strpos($scheme,"/*");
     73                $stop = strpos($scheme,"*/");
     74                if ($start >= 0 && $stop >= 0) {
     75                    return substr($scheme,$start,$stop-$start+2);
    7476                }
    7577            }
  • color-scheme-every-theme/tags/1.1/color-scheme-every-theme.php

    r673507 r676649  
    44    Plugin URI: http://www.danielauener.com/color-scheme-every-theme
    55    Description: This plugin lets you change the entire color scheme of the current theme via the theme customizer.
    6     Version: 1.0
     6    Version: 1.1
    77    Author: @danielauener
    88    Author URI: http://www.danielauener.se
  • color-scheme-every-theme/tags/1.1/readme.txt

    r673507 r676649  
    55Requires at least: 3.4
    66Tested up to: 3.5
    7 Stable tag: trunk
     7Stable tag: 1.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5050= 1.0 =
    5151* Version 1.0 done
     52
     53= 1.1 =
     54* Fixed a bug that resulted in a blank page after generating the color scheme - thanks to Stiaan for reporting the bug and Ulrich P for helping me to reproduce it!
  • color-scheme-every-theme/trunk/classes/ColorExtractor.class.php

    r673507 r676649  
    7070            if ($this->color_scheme_exists()) {
    7171                $scheme = file_get_contents($this->current_css_tmpl);
    72                 if (preg_match('/\/\*(.|\\n|\\r)+\*\//',$scheme, $default_colors)) {
    73                     return $default_colors[0];
     72                $start = strpos($scheme,"/*");
     73                $stop = strpos($scheme,"*/");
     74                if ($start >= 0 && $stop >= 0) {
     75                    return substr($scheme,$start,$stop-$start+2);
    7476                }
    7577            }
  • color-scheme-every-theme/trunk/color-scheme-every-theme.php

    r673507 r676649  
    44    Plugin URI: http://www.danielauener.com/color-scheme-every-theme
    55    Description: This plugin lets you change the entire color scheme of the current theme via the theme customizer.
    6     Version: 1.0
     6    Version: 1.1
    77    Author: @danielauener
    88    Author URI: http://www.danielauener.se
  • color-scheme-every-theme/trunk/readme.txt

    r673507 r676649  
    55Requires at least: 3.4
    66Tested up to: 3.5
    7 Stable tag: trunk
     7Stable tag: 1.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5050= 1.0 =
    5151* Version 1.0 done
     52
     53= 1.1 =
     54* Fixed a bug that resulted in a blank page after generating the color scheme - thanks to Stiaan for reporting the bug and Ulrich P for helping me to reproduce it!
Note: See TracChangeset for help on using the changeset viewer.