Skip to content

Commit

Permalink
Corrected use of get_template_directory in load_theme_textdomain
Browse files Browse the repository at this point in the history
…parameters; documentation updates
  • Loading branch information
Cais committed Jul 18, 2012
1 parent c109eb3 commit 17d03d5
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 36 deletions.
65 changes: 39 additions & 26 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
=== Desk Mess Mirrored ===
== Version 2.0.4 ==
Changelog: July 6, 2012
Changelog: July 18, 2012
= Code =
* Corrected use of `get_template_directory` in `load_theme_textdomain` parameters
* Removed backward compatibility check for wp_nav_menu

= CSS =
Expand Down
11 changes: 5 additions & 6 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -461,17 +461,16 @@ function dmm_list_pages() { ?>

/**
* Make theme available for translation
*
* Translations can be filed in the /languages/ directory
*
* @package Desk_Mess_Mirrored
* @since 1.0.7
* @since 1.0.7
*
* Last revised December 2, 2011
* @version 2.0
* Replaced TEMPLATEPATH constant with `get_template_directory_uri`
* @version 2.0.4
* @date July 18, 2012
* Corrected parameter to use `get_template_directory`
*/
load_theme_textdomain( 'desk-mess-mirrored', get_template_directory_uri() . '/languages' );
load_theme_textdomain( 'desk-mess-mirrored', get_template_directory() . '/languages' );
$locale = get_locale();
$locale_file = get_template_directory_uri() . "/languages/$locale.php";
if ( is_readable( $locale_file ) )
Expand Down
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
* @link https://github.com/Cais/desk-mess-mirrored/
* @link http://wordpress.org/extend/themes/desk-mess-mirrored/
*
* @internal REQUIRES WordPress version 3.4-beta1
* @internal REQUIRES WordPress version 3.4
* @internal Tested up to WordPress version 3.4
*
* @version 2.0.3
* @version 2.0.4
* @author Edward Caissie <edward.caissie@gmail.com>
* @copyright Copyright (c) 2009-2012, Edward Caissie
*
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Theme Name: Desk Mess Mirrored
Theme URI: http://buynowshop.com/themes/desk-mess-mirrored/
Description: Marble desktop covered with a mix of old and new items, such as some vintage papers, a stainless steel pen, and, a hot cup of coffee! Now with more documentation and post-format support for the following types: asides, quotes and status! <strong>Please read the included changelog.txt, readme.txt, and support.txt files for details of the latest changes and important notices.</strong> Please note <strong>WordPress 3.4 is required</strong> for some functionality; also note the latest version of the Multi Child-Theme is available for download at http://buynowshop.com/themes/desk-mess-mirrored/multi too!
Version: 2.0.3
Version: 2.0.4
Author: Edward Caissie
Author URI: http://edwardcaissie.com/
Version Required: 3.4
Expand Down

0 comments on commit 17d03d5

Please sign in to comment.