Non-printable characters were found – Twenty Ten
-
Hi Guys,
I uploaded a theme to the WordPress directory, and it was rejected, I corrected some isset() errors, and then looked at this one.Info: Non-printable characters were found in the D:\wamp\www\wordpress/wp-content/themes/atmosphere-2010/functions.php file. You may want to check this file for errors.
I spent a good couple of hours and rebuilt the functions.php file function by function, and the error is caused by a Twenty Ten function, “twentyten_posted_on”
I downloaded a clean “twenty ten 1.1” and the check Theme plugin gives the same error.
Theme passed all the tests!
* Info: Non-printable characters were found in the D:\wamp\www\wordpress/wp-content/themes/twentyten/functions.php file. You may want to check this file for errors.
Twenty Ten Posted On Function:
/** * Prints HTML with meta information for the current post—date/time and author. * * @since Twenty Ten 1.0 */ if ( ! function_exists( 'twentyten_posted_on' ) ) : function twentyten_posted_on() { printf( __( '<span class="%1$s">Posted on</span> %2$s <span class="meta-sep">by</span> %3$s', 'twentyten' ), 'meta-prep meta-prep-author', sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s</span></a>', get_permalink(), esc_attr( get_the_time() ), get_the_date() ), 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() ), get_the_author() ) ); } endif;
I downloaded and re-installed WordPress as well, when I run the Theme Check plugin (this is the only one activate), I also get a message:
Notice: get_plugin_data was called with an argument that is deprecated since version 3.0! The Site Wide Only: true plugin header is deprecated. Use Network: true instead. in D:\wamp\www\wordpress\wp-includes\functions.php on line 3321
I am now unsure if it is the ‘twentyten_posted_on’ function or the ‘theme test’ plugin, anyone have any ideas?
Regards
David
- The topic ‘Non-printable characters were found – Twenty Ten’ is closed to new replies.