Make WordPress Core

Changeset 35667


Ignore:
Timestamp:
11/18/2015 05:40:43 PM (10 years ago)
Author:
SergeyBiryukov
Message:

I18N: Move translatable Codex URLs to separate strings in wp-includes/functions.php.

Props ramiy.
See #34687.

File:
1 edited

Legend:

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

    r35556 r35667  
    37813781        if ( function_exists( '__' ) ) {
    37823782            $version = is_null( $version ) ? '' : sprintf( __( '(This message was added in version %s.)' ), $version );
    3783             $message .= ' ' . __( 'Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information.' );
     3783            /* translators: %s: Codex URL */
     3784            $message .= ' ' . sprintf( __( 'Please see <a href="%s">Debugging in WordPress</a> for more information.' ),
     3785                __( 'https://codex.wordpress.org/Debugging_in_WordPress' )
     3786            );
    37843787            trigger_error( sprintf( __( '%1$s was called <strong>incorrectly</strong>. %2$s %3$s' ), $function, $message, $version ) );
    37853788        } else {
    37863789            $version = is_null( $version ) ? '' : sprintf( '(This message was added in version %s.)', $version );
    3787             $message .= ' Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information.';
     3790            $message .= sprintf( ' Please see <a href="%s">Debugging in WordPress</a> for more information.',
     3791                'https://codex.wordpress.org/Debugging_in_WordPress'
     3792            );
    37883793            trigger_error( sprintf( '%1$s was called <strong>incorrectly</strong>. %2$s %3$s', $function, $message, $version ) );
    37893794        }
Note: See TracChangeset for help on using the changeset viewer.