- Timestamp:
- 12/11/2014 10:22:47 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/link-template.php
r30820 r30823 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. … … 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() ) { … … 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 … … 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 … … 2338 2338 * @since 4.1.0 2339 2339 * 2340 * @param array $args Optional. See {@see get_the_p agination()} for available arguments.2340 * @param array $args Optional. See {@see get_the_posts_pagination()} for available arguments. 2341 2341 * Default empty array. 2342 2342 */ 2343 function the_p agination( $args = array() ) {2344 echo get_the_p agination( $args );2343 function the_posts_pagination( $args = array() ) { 2344 echo get_the_posts_pagination( $args ); 2345 2345 } 2346 2346 … … 2352 2352 * 2353 2353 * @param string $links Navigational links. 2354 * @param string $class Optional. Custom class for nav element. Default: 'p aging-navigation'.2354 * @param string $class Optional. Custom class for nav element. Default: 'posts-navigation'. 2355 2355 * @param string $screen_reader_text Optional. Screen reader text for nav element. Default: 'Posts navigation'. 2356 2356 * @return string Navigation template tag. 2357 2357 */ 2358 function _navigation_markup( $links, $class = 'p aging-navigation', $screen_reader_text = '' ) {2358 function _navigation_markup( $links, $class = 'posts-navigation', $screen_reader_text = '' ) { 2359 2359 if ( empty( $screen_reader_text ) ) { 2360 2360 $screen_reader_text = __( 'Posts navigation' );
Note: See TracChangeset
for help on using the changeset viewer.