Ticket #36634: 36634.patch
File 36634.patch, 1.4 KB (added by , 9 years ago) |
---|
-
src/wp-includes/l10n.php
489 489 * @return string Either $single or $plural translated text. 490 490 */ 491 491 function translate_nooped_plural( $nooped_plural, $count, $domain = 'default' ) { 492 if ( ! array_key_exists( 'singular', $nooped_plural ) || ! array_key_exists( 'plural', $nooped_plural ) || ! array_key_exists( 'context', $nooped_plural ) ) { 493 return ( isset( $nooped_plural[0] ) && is_string( $nooped_plural[0] ) ) ? $nooped_plural[0] : ''; 494 } 495 492 496 if ( $nooped_plural['domain'] ) 493 497 $domain = $nooped_plural['domain']; 494 498 -
src/wp-includes/post.php
729 729 if ( false === $args->label ) 730 730 $args->label = $post_status; 731 731 732 if ( false === $args->label_count ) 732 if ( false === $args->label_count ) { 733 _doing_it_wrong( 734 __FUNCTION__, 735 sprintf( 736 /* translators: %s: post status label */ 737 __( 'Use _n_noop() or _nx_noop() to set the $label_count argument for the "%s" post status.' ), 738 $args->label 739 ), 740 'x.y.z' 741 ); 742 733 743 $args->label_count = array( $args->label, $args->label ); 744 } 734 745 735 746 $wp_post_statuses[$post_status] = $args; 736 747