diff --git a/.travis.yml b/.travis.yml index 6933ef0..fb80881 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,14 +26,14 @@ env: # @link https://github.com/WordPress/WordPress - WP_VERSION=master WP_MULTISITE=0 - WP_VERSION=master WP_MULTISITE=1 + # WordPress 4.1 + # @link https://github.com/WordPress/WordPress/tree/4.1-branch + - WP_VERSION=4.1 WP_MULTISITE=0 + - WP_VERSION=4.1 WP_MULTISITE=1 # WordPress 4.0 # @link https://github.com/WordPress/WordPress/tree/4.0-branch - WP_VERSION=4.0 WP_MULTISITE=0 - WP_VERSION=4.0 WP_MULTISITE=1 - # WordPress 3.9 - # @link https://github.com/WordPress/WordPress/tree/3.9-branch - - WP_VERSION=3.9 WP_MULTISITE=0 - - WP_VERSION=3.9 WP_MULTISITE=1 # Declare 5.6 beta in test matrix. # @link https://buddypress.trac.wordpress.org/ticket/5620 diff --git a/archive.php b/archive.php index 3d0efcc..b0a1971 100644 --- a/archive.php +++ b/archive.php @@ -34,7 +34,7 @@ get_header(); ?> - + diff --git a/codesniffer.ruleset.xml b/codesniffer.ruleset.xml index 3f7872a..d2b1ce7 100644 --- a/codesniffer.ruleset.xml +++ b/codesniffer.ruleset.xml @@ -1,6 +1,7 @@ + A custom set of code standard rules to check for Underscores. @@ -8,6 +9,8 @@ + + diff --git a/inc/extras.php b/inc/extras.php index 02bdeea..e043cb6 100644 --- a/inc/extras.php +++ b/inc/extras.php @@ -7,18 +7,6 @@ * @package _s */ -/** - * Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link. - * - * @param array $args Configuration arguments. - * @return array - */ -function _s_page_menu_args( $args ) { - $args['show_home'] = true; - return $args; -} -add_filter( 'wp_page_menu_args', '_s_page_menu_args' ); - /** * Adds custom classes to the array of body classes. * @@ -81,24 +69,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' ); diff --git a/inc/template-tags.php b/inc/template-tags.php index 5dd3759..2dd9175 100644 --- a/inc/template-tags.php +++ b/inc/template-tags.php @@ -7,26 +7,28 @@ * @package _s */ -if ( ! function_exists( '_s_paging_nav' ) ) : +if ( ! function_exists( 'the_posts_navigation' ) ) : /** * Display navigation to next/previous set of posts when applicable. + * + * @todo Remove this function when WordPress 4.3 is released. */ -function _s_paging_nav() { +function the_posts_navigation() { // Don't print empty markup if there's only one page. if ( $GLOBALS['wp_query']->max_num_pages < 2 ) { return; } ?> -