diff --git a/inc/extras.php b/inc/extras.php index 02bdeea3..2e254481 100644 --- a/inc/extras.php +++ b/inc/extras.php @@ -81,24 +81,3 @@ if ( version_compare( $GLOBALS['wp_version'], '4.1', '<' ) ) : } add_action( 'wp_head', '_s_render_title' ); endif; - -/** - * Sets the authordata global when viewing an author archive. - * - * This provides backwards compatibility with - * http://core.trac.wordpress.org/changeset/25574 - * - * It removes the need to call the_post() and rewind_posts() in an author - * template to print information about the author. - * - * @global WP_Query $wp_query WordPress Query object. - * @return void - */ -function _s_setup_author() { - global $wp_query; - - if ( $wp_query->is_author() && isset( $wp_query->post ) ) { - $GLOBALS['authordata'] = get_userdata( $wp_query->post->post_author ); - } -} -add_action( 'wp', '_s_setup_author' );