mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
I18N: Capitalize translator comments consistently, add trailing punctuation.
Includes minor code layout fixes. See #44360. git-svn-id: https://develop.svn.wordpress.org/trunk@45932 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -70,7 +70,7 @@ function add_shortcode( $tag, $callback ) {
|
||||
}
|
||||
|
||||
if ( 0 !== preg_match( '@[<>&/\[\]\x00-\x20=]@', $tag ) ) {
|
||||
/* translators: 1: shortcode name, 2: space separated list of reserved characters */
|
||||
/* translators: 1: Shortcode name, 2: Space-separated list of reserved characters. */
|
||||
$message = sprintf( __( 'Invalid shortcode name: %1$s. Do not use spaces or reserved characters: %2$s' ), $tag, '& / < > [ ] =' );
|
||||
_doing_it_wrong( __FUNCTION__, $message, '4.4.0' );
|
||||
return;
|
||||
@@ -296,7 +296,7 @@ function do_shortcode_tag( $m ) {
|
||||
$attr = shortcode_parse_atts( $m[3] );
|
||||
|
||||
if ( ! is_callable( $shortcode_tags[ $tag ] ) ) {
|
||||
/* translators: %s: shortcode tag */
|
||||
/* translators: %s: Shortcode tag. */
|
||||
$message = sprintf( __( 'Attempting to parse a shortcode without a valid callback: %s' ), $tag );
|
||||
_doing_it_wrong( __FUNCTION__, $message, '4.3.0' );
|
||||
return $m[0];
|
||||
|
||||
Reference in New Issue
Block a user