mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-24 07:14:28 +00:00
Themes: Account for uppercase chars when managing themes.
Fixes a bug where the UI wasn't updated after deleting/updating a theme. Also introduces unit tests for theme management ajax handlers. For now they're focused on `wp_ajax_update_theme()` but they can include tests for other handlers as well. Props chrisjean for initial patch. Fixes #37924. git-svn-id: https://develop.svn.wordpress.org/trunk@38710 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
5
tests/phpunit/data/themedir1/camelCase/index.php
Normal file
5
tests/phpunit/data/themedir1/camelCase/index.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
// dummy theme
|
||||
|
||||
echo dirname(__FILE__).'/'.basename(__FILE__);
|
||||
11
tests/phpunit/data/themedir1/camelCase/style.css
Normal file
11
tests/phpunit/data/themedir1/camelCase/style.css
Normal file
@@ -0,0 +1,11 @@
|
||||
/*
|
||||
Theme Name: camelCase
|
||||
Theme URI: http://example.org/
|
||||
Description: This theme has a camelCase slug.
|
||||
Version: 1.0
|
||||
Author: Minnie Bannister
|
||||
Author URI: http://example.com/
|
||||
|
||||
This is just a stub to test the loading of the above metadata.
|
||||
|
||||
*/
|
||||
Reference in New Issue
Block a user