Make WordPress Core


Ignore:
Timestamp:
01/29/2017 11:49:49 AM (9 years ago)
Author:
SergeyBiryukov
Message:

I18N: Merge similar strings in _deprecated_argument() calls.

Add translator comments.

Props ramiy, SergeyBiryukov.
Fixes #39020.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-query.php

    r39952 r40028  
    17141714
    17151715        if ( isset( $q['caller_get_posts'] ) ) {
    1716             _deprecated_argument( 'WP_Query', '3.1.0', __( '"caller_get_posts" is deprecated. Use "ignore_sticky_posts" instead.' ) );
    1717             if ( !isset( $q['ignore_sticky_posts'] ) )
     1716            _deprecated_argument( 'WP_Query', '3.1.0',
     1717                /* translators: 1: caller_get_posts, 2: ignore_sticky_posts */
     1718                sprintf( __( '%1$s is deprecated. Use %2$s instead.' ),
     1719                    '<code>caller_get_posts</code>',
     1720                    '<code>ignore_sticky_posts</code>'
     1721                )
     1722            );
     1723
     1724            if ( ! isset( $q['ignore_sticky_posts'] ) ) {
    17181725                $q['ignore_sticky_posts'] = $q['caller_get_posts'];
     1726            }
    17191727        }
    17201728
Note: See TracChangeset for help on using the changeset viewer.