= 2 || $page >= 2 ) && ! is_404() ) { /* translators: %s is page number */ $title .= " $sep " . sprintf( __( 'Page %s', 'flymag' ), max( $paged, $page ) ); } return $title; } add_filter( 'wp_title', 'flymag_wp_title', 10, 2 ); /** * Title shim for sites older than WordPress 4.1. * * @link https://make.wordpress.org/core/2014/10/29/title-tags-in-4-1/ * @todo Remove this function when WordPress 4.3 is released. */ function flymag_render_title() { ?> <?php wp_title( '|', true, 'right' ); ?> is_author() && isset( $wp_query->post ) ) { $GLOBALS['authordata'] = get_userdata( $wp_query->post->post_author ); } } add_action( 'wp', 'flymag_setup_author' );