Digital Raindrops have had their first theme accepted into the WordPress themes directory, we learned quite a bit while preparing the theme for the directory and discovered that some of the calls we have in our code have been superseded, so we thought we would create a post with some details about these.
Even if you are not creating a theme for the WordPress directory, we would recommend theme developers using the test data and tools that are used for submitting to WordPress, you cannot submit Child Themes or Artisteer themes to the WordPress theme directory, we just re-engineered the twenty ten theme.
This theme was created for fun in response to a topic in the WordPress support forum, you can view the theme at the demo website theme Atmosphere 2010, this theme is a simple but pleasant two column narrow theme, the new theme based on the atmosphere theme published back in 2007, we could not find the original authors contact details, so we created a new theme based on the look and feel of the original.
The theme can be downloaded from the downloads page or from WordPress, we were amazed at the number of downloads, over 400 in less than twenty four hours, compared with about 40 a month from this website, we also have a page which will show you how to manage the theme.
WordPress have made available test data which we imported from Admin > Tools > Import, to get a copy of this file to use you will need to register over at WordPress.org, then login on the themes page and download the themes test data
We used the Theme Check plugin which checked all your files for deprecated code and recommended replacements, this picked up where we had used is_term() and get_settings() and recommended replacements, lets just run the plugin and have a look at the results from a new clean Artisteer Theme, this does not mean the theme is broken and are just advisory.
- wp_specialchars use esc_html()
- attribute_escape use esc_attr()
- register_sidebar_widget use wp_register_sidebar_widget()
- license.txt is missing you must include a licence.txt or Licence URI: in style.css header..
- .gallery-caption is missing.
- The CSS is missing the .sticky class.
- The CSS is missing the .bypostauthor class.
- No reference to add_custom_image_header() was found.
- No reference to add_custom_background() was found.
- No reference to add_editor_style() was found.
- bloginfo(‘template_directory’) use get_template_directory_uri().
- get_option(‘home’) use home_url() instead.
- bloginfo(‘wpurl’) use echo site_url() instead.
- The theme appears to use include or require where possible get_template_part() should be used instead.
- Non-printable characters were found, You may want to check this file for errors. (possible pasted from word?)
Submitting the Theme
We packaged and submitted the theme to the WordPress directory and got a rejection:
=>Themes should be reviewed using “define(‘WP_DEBUG’, true);” in wp-
=>Themes should be reviewed using the test data from the Theme Checklists
We just set the debug to true in the wp-config.php, and downloaded the test data file.
WP_DEBUG et al.:
— Debug: Undefined index: action on line 274 of /wp-
content/themes/atmosphere-2010/admin-options.php (Theme Options)
— Debug: Undefined variable: style on line 78 of /wp-
content/themes/atmosphere-2010/header.php (single view)
This was where we had used not use isset() for the theme options, and used a conditional variable which was not set.
– Info: Non-printable characters were found in the /wp-
content/themes/atmosphere-2010/functions.php file. You may want to check
this file for errors.
-> “Top of Page” appears to the far right but does not appear to do
=> This is a re-work of the Twenty Ten theme made most obvious by using
the ‘twentyten_’ namespace. This is not allowed. The namespace for a theme
must be unique to the theme for inclusion in the Theme repository, suggest
=> Note, this also applies to the theme’s textdomain if
internationalization is being implemented.
The non printable character was in a comment from the twenty ten theme, we removed most of the comments to cut down the file sizes, “Top of Page” had a broken link.
Namespace we searched and replaced all code instances of twentyten for atmosphere in all files, renamed and edited the language file (textdomain).
We went from version 1.0 to 1.5 within this process, however we have learnt a lot from doing this, and the theme is getting the downloads rather than sitting on our downloads page, the tools will become part of the process we will use going forward for our themes.
We do require your feedback to improve our themes and tutorials, please leave your comments good or bad.
Code disclaimer information
If this document contains programming examples, www.DigitalRaindrops.net grants you a nonexclusive copyright license to use all programming code from which you can generate similar functions tailored to your own specific needs.
All sample code is provided by http://DigitalRaindrops.net for learning illustrative purposes only.
These examples have not been thoroughly tested under all conditions. www.DigitalRaindrops.net, therefore, cannot guarantee or imply reliability, serviceability, or function of these examples.
All programs contained herein are provided to you “AS IS” without any warranties of any kind. The implied warranties of non-infringement, merchantability and fitness for a particular purpose are expressly disclaimed.
Registration and Membership is no longer required for downloading files or interacting with Digital Raindrops, posting a comment or topic in the forum does use Captcha to reduce spammers.
This website is a tool to support and promote WordPress and Artisteer theme development, please support, share and give credit for any benefits you gain from the tutorials on this website.