- Read the Theme Review page
- Check out the Theme Unit Test page
- Finally, read the summary by Chip, one of the lead WPTRT admins
- For more details and flow, check out my WordPress Theme Directory slides from WordSesh 2012
- Get a WordPress.org account if you don't have already.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# Pull all files from Transifex; | |
# Minimum percentage change to whatever you want | |
tx pull -a --minimum-perc=100 | |
# Create .mo files from .po files. | |
# Twisted by WP-Translations.org, created by grappler. | |
for file in `find . -name "*.po"` ; do msgfmt -o ${file/.po/.mo} $file && rm $file ; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class EventsConnector { | |
var $events_calendar; | |
public function __construct() { | |
$this->events_calendar = 'the-events-calendar/the-events-calendar.php'; | |
$events_calendar_pro = WP_PLUGIN_DIR . '/events-calendar-pro/events-calendar-pro.php'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$( document ).ready( function() { | |
var cookie_name = 'dbrains-coupon'; | |
var cookie_name_error = 'dbrains-coupon-error'; | |
if ( 'undefined' === typeof $.cookie( cookie_name ) ) { | |
return; | |
} | |
var message = 'The coupon code ' + $.cookie( cookie_name ).toUpperCase() + ' has been successfully applied.'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Checks to see if new post type names (with prefixes) are being used. If not, then the old | |
* post type names are converted as long as there aren't conflicting post type names that are | |
* being registered by other plugins. | |
* | |
* @hook {action} after_setup_theme | |
*/ | |
function fjarrett_prefix_post_types(){ | |
global $wpdb; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
We have a private Git running on a server somewhere which we consider our central repository. Inside the .git/hooks/post-recieve is the following: | |
#!/bin/bash | |
while read oldrev newrev ref | |
do | |
branch=`echo $ref | cut -d/ -f3` | |
if [ "master" == "$branch" ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' ) ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wp db reset --yes | |
wp core install --url=http://theme-review.loc --title="This is a really long long title to check if this theme design doesn't break with the long site title" --admin_user=admin --admin_password=admin --admin_email=example@example.com | |
wp core update | |
wp plugin install theme-check debug-bar log-deprecated-notices monster-widget wordpress-importer show-current-template customizer-theme-resizer --activate | |
wp plugin install wordpress-beta-tester debogger jetpack | |
wp plugin update --all | |
wp option update blogdescription "I'm in the theme review process and this is a very very long tagline to see if this long tagline text string in WordPress doesn't break the design of the theme header and else." | |
wp option update posts_per_page 5 | |
wp option update thread_comments 1 | |
wp option update thread_comments_depth 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#2E3641,#FC781F,#1088C4,#FFFFFF,#808080,#FFFFFF,#FC781F,#1088C4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Dev Plugins | |
*/ | |
add_action( 'muplugins_loaded', function() { | |
// Plugins to activate automatically. | |
$auto_activate = [ | |
'debug-bar/debug-bar.php', | |
'debug-bar-extender/debug-bar-extender.php', |
OlderNewer