Ticket #29808: 29808.12.diff
File 29808.12.diff, 4.6 KB (added by , 10 years ago) |
---|
-
src/wp-content/themes/twentyfifteen/archive.php
45 45 endwhile; 46 46 47 47 // Previous/next page navigation. 48 the_p agination( array(48 the_posts_pagination( array( 49 49 'prev_text' => __( 'Previous page', 'twentyfifteen' ), 50 50 'next_text' => __( 'Next page', 'twentyfifteen' ), 51 51 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>', -
src/wp-content/themes/twentyfifteen/index.php
42 42 endwhile; 43 43 44 44 // Previous/next page navigation. 45 the_p agination( array(45 the_posts_pagination( array( 46 46 'prev_text' => __( 'Previous page', 'twentyfifteen' ), 47 47 'next_text' => __( 'Next page', 'twentyfifteen' ), 48 48 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>', -
src/wp-content/themes/twentyfifteen/search.php
34 34 endwhile; 35 35 36 36 // Previous/next page navigation. 37 the_p agination( array(37 the_posts_pagination( array( 38 38 'prev_text' => __( 'Previous page', 'twentyfifteen' ), 39 39 'next_text' => __( 'Next page', 'twentyfifteen' ), 40 40 'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page', 'twentyfifteen' ) . ' </span>', -
src/wp-includes/link-template.php
2238 2238 * @global WP_Query $wp_query WordPress Query object. 2239 2239 * 2240 2240 * @param array $args { 2241 * Optional. Default p agingnavigation arguments. Default empty array.2241 * Optional. Default posts navigation arguments. Default empty array. 2242 2242 * 2243 2243 * @type string $prev_text Anchor text to display in the previous posts link. 2244 2244 * Default 'Older posts'. … … 2247 2247 * @type string $screen_reader_text Screen reader text for nav element. 2248 2248 * Default 'Posts navigation'. 2249 2249 * } 2250 * @return string Markup for p aginglinks.2250 * @return string Markup for posts links. 2251 2251 */ 2252 2252 function get_the_posts_navigation( $args = array() ) { 2253 2253 $navigation = ''; … … 2271 2271 $navigation .= '<div class="nav-next">' . $next_link . '</div>'; 2272 2272 } 2273 2273 2274 $navigation = _navigation_markup( $navigation, 'p aging-navigation', $args['screen_reader_text'] );2274 $navigation = _navigation_markup( $navigation, 'posts-navigation', $args['screen_reader_text'] ); 2275 2275 } 2276 2276 2277 2277 return $navigation; … … 2303 2303 * } 2304 2304 * @return string Markup for pagination links. 2305 2305 */ 2306 function get_the_p agination( $args = array() ) {2306 function get_the_posts_pagination( $args = array() ) { 2307 2307 $navigation = ''; 2308 2308 2309 2309 // Don't print empty markup if there's only one page. … … 2334 2334 * 2335 2335 * @since 4.1.0 2336 2336 * 2337 * @param array $args Optional. See {@see get_the_p agination()} for available arguments.2337 * @param array $args Optional. See {@see get_the_posts_pagination()} for available arguments. 2338 2338 * Default empty array. 2339 2339 */ 2340 function the_p agination( $args = array() ) {2341 echo get_the_p agination( $args );2340 function the_posts_pagination( $args = array() ) { 2341 echo get_the_posts_pagination( $args ); 2342 2342 } 2343 2343 2344 2344 /** … … 2348 2348 * @access private 2349 2349 * 2350 2350 * @param string $links Navigational links. 2351 * @param string $class Optional. Custom class for nav element. Default: 'p aging-navigation'.2351 * @param string $class Optional. Custom class for nav element. Default: 'posts-navigation'. 2352 2352 * @param string $screen_reader_text Optional. Screen reader text for nav element. Default: 'Posts navigation'. 2353 2353 * @return string Navigation template tag. 2354 2354 */ 2355 function _navigation_markup( $links, $class = 'p aging-navigation', $screen_reader_text = '' ) {2355 function _navigation_markup( $links, $class = 'posts-navigation', $screen_reader_text = '' ) { 2356 2356 if ( empty( $screen_reader_text ) ) { 2357 2357 $screen_reader_text = __( 'Posts navigation' ); 2358 2358 }