Skip to content

Instantly share code, notes, and snippets.

Theme Testing Process

from Theme Development (Wordpress Codex)

  • Fix PHP and WordPress errors. Add the following debug setting to your wp-config.php file to see deprecated function calls and other WordPress-related errors: define('WP_DEBUG', true);. See Deprecated Functions Hook for more information.
  • Check template files against Template File Checklist.
  • Do a run-through using the Theme Unit Test.
  • Validate HTML and CSS. See Validating a Website.
  • Check for JavaScript errors.
  • Test in all your target browsers. For example, IE7, IE8, IE9, Safari, Chrome, Opera, and Firefox.
  • Clean up any extraneous comments, debug settings, or TODO items.
@heywin
heywin / wordpress-default.css
Created January 22, 2015 05:10
Default WordPress classes for using with CSS
/**
* Default Body Class Styles
*/
.rtl {}
.home {}
.blog {}
.archive {}
.date {}
.search {}
@heywin
heywin / DomainFilter.php
Created January 11, 2015 14:53
域名长度筛选
<?php
$content = file_get_contents("list.txt");
//echo $content;
$array = explode("\n", $content);
// print_r($array);
// foreach($array as $a){
// if (strlen($a) < 16 && strlen($a) > 14)
// echo $a."<br>";