[wp-trac] [WordPress Trac] #24016: RFE : Amend coding standards so that theme developers place dynamic styles in separate files

WordPress Trac noreply at wordpress.org
Wed Apr 10 10:54:29 UTC 2013


#24016: RFE : Amend coding standards so that theme developers place dynamic styles
in separate files
-------------------------+------------------------------
 Reporter:  pembo13      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Themes       |     Version:  3.5
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------------------

Comment (by kovshenin):

 > When visitor user-agent requests the URL path pointing to dynamic-
 styles.php

 This will return a 403 error on most well-configured hosts, where PHP
 execution is disallowed inside the wp-content directory.

 I think themes and plugins that generate CSS should use the
 [http://codex.wordpress.org/Filesystem_API Filesystem API] and write
 actual .css files to disk, which could then be served by apache/nginx,
 cached by browsers and propagated across configured CDNs.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/24016#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list