]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-content/themes/twentyten/functions.php
Wordpress 3.3
[autoinstalls/wordpress.git] / wp-content / themes / twentyten / functions.php
index 36f55066f9df0248f3b935abcfd78b5431d51c0d..5fd5d3ef39732b5ea258194cf6522d7b94a86935 100644 (file)
@@ -88,10 +88,10 @@ function twentyten_setup() {
 
        // Make theme available for translation
        // Translations can be filed in the /languages/ directory
-       load_theme_textdomain( 'twentyten', TEMPLATEPATH . '/languages' );
+       load_theme_textdomain( 'twentyten', get_template_directory() . '/languages' );
 
        $locale = get_locale();
-       $locale_file = TEMPLATEPATH . "/languages/$locale.php";
+       $locale_file = get_template_directory() . "/languages/$locale.php";
        if ( is_readable( $locale_file ) )
                require_once( $locale_file );
 
@@ -473,7 +473,7 @@ function twentyten_posted_on() {
                ),
                sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
                        get_author_posts_url( get_the_author_meta( 'ID' ) ),
-                       sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ),
+                       esc_attr( sprintf( __( 'View all posts by %s', 'twentyten' ), get_the_author() ) ),
                        get_the_author()
                )
        );