WordPress.org

Make WordPress Core

Changeset 30823


Ignore:
Timestamp:
12/11/2014 10:22:47 AM (5 years ago)
Author:
johnbillion
Message:

Rename (get_)the_pagination() to (get_)the_posts_pagination() for clarity.

See #29808
Props obenland

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/link-template.php

    r30820 r30823  
    22392239 *
    22402240 * @param array $args {
    2241  *     Optional. Default paging navigation arguments. Default empty array.
     2241 *     Optional. Default posts navigation arguments. Default empty array.
    22422242 *
    22432243 *     @type string $prev_text          Anchor text to display in the previous posts link.
     
    22482248 *                                      Default 'Posts navigation'.
    22492249 * }
    2250  * @return string Markup for paging links.
     2250 * @return string Markup for posts links.
    22512251 */
    22522252function get_the_posts_navigation( $args = array() ) {
     
    22722272        }
    22732273
    2274         $navigation = _navigation_markup( $navigation, 'paging-navigation', $args['screen_reader_text'] );
     2274        $navigation = _navigation_markup( $navigation, 'posts-navigation', $args['screen_reader_text'] );
    22752275    }
    22762276
     
    23042304 * @return string Markup for pagination links.
    23052305 */
    2306 function get_the_pagination( $args = array() ) {
     2306function get_the_posts_pagination( $args = array() ) {
    23072307    $navigation = '';
    23082308
     
    23382338 * @since 4.1.0
    23392339 *
    2340  * @param array $args Optional. See {@see get_the_pagination()} for available arguments.
     2340 * @param array $args Optional. See {@see get_the_posts_pagination()} for available arguments.
    23412341 *                    Default empty array.
    23422342 */
    2343 function the_pagination( $args = array() ) {
    2344     echo get_the_pagination( $args );
     2343function the_posts_pagination( $args = array() ) {
     2344    echo get_the_posts_pagination( $args );
    23452345}
    23462346
     
    23522352 *
    23532353 * @param string $links              Navigational links.
    2354  * @param string $class              Optional. Custom class for nav element. Default: 'paging-navigation'.
     2354 * @param string $class              Optional. Custom class for nav element. Default: 'posts-navigation'.
    23552355 * @param string $screen_reader_text Optional. Screen reader text for nav element. Default: 'Posts navigation'.
    23562356 * @return string Navigation template tag.
    23572357 */
    2358 function _navigation_markup( $links, $class = 'paging-navigation', $screen_reader_text = '' ) {
     2358function _navigation_markup( $links, $class = 'posts-navigation', $screen_reader_text = '' ) {
    23592359    if ( empty( $screen_reader_text ) ) {
    23602360        $screen_reader_text = __( 'Posts navigation' );
Note: See TracChangeset for help on using the changeset viewer.