[wp-trac] [WordPress Trac] #23435: Bundled Themes: use .text() instead .html() for blogname and blogdescription in the Customizer.

WordPress Trac noreply at wordpress.org
Sun Feb 10 13:30:32 UTC 2013


#23435: Bundled Themes: use .text() instead .html() for blogname and
blogdescription in the Customizer.
-----------------------------+---------------------------
 Reporter:  mfields          |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Bundled Theme
  Version:                   |   Severity:  normal
 Keywords:                   |
-----------------------------+---------------------------
 Twenty Eleven and Twenty Twelve use the jQuery method ```.html()``` in the
 ```wp.customize()``` callback for both ```blogname``` and
 ```blogdescription```. Both of these fields are filtered through
 ```esc_html()``` berfore they are saved to the database. Use of
 ```.html()``` in the Customizer may lead to user confusion when HTML is
 entered in one of these fields. The HTML will work in the preview but will
 be rendered as entities after save. Using ```.text()``` instead of
 ```.html()``` will show an accurate preview their site for ```blogname```
 and ```blogdescription```.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/23435>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list