[wp-trac] [WordPress Trac] #8712: Previewing Themes
WordPress Trac
wp-trac at lists.automattic.com
Wed Dec 24 08:01:40 GMT 2008
#8712: Previewing Themes
--------------------------+-------------------------------------------------
Reporter: shinsou | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone:
Component: Themes | Version:
Severity: minor | Keywords:
--------------------------+-------------------------------------------------
Let's say you're using a theme which uses a function called
"maybe_add_widgets()".
Let's say you have two versions of that theme with "maybe_add_widgets()";
version 1 and version 2.
Now, just for the sake of it, let's say that version 2 has a style.php
which contains all of style.css' data but is a bit dynamic AND that the
style.php is loaded as the main style sheet (and not style.css).
To add to it, the style.php also loads the wp-config.php just so that it
can carry out variables saved in some sort of settings.
Now, if you were to activate version 1 and then try to preview version 2,
the CSS of that file will return a "You cannot redeclare maybe_add_widgets
in line blah blah blah". How do you stop that error?
--
Ticket URL: <http://trac.wordpress.org/ticket/8712>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list