Make WordPress Core

Ticket #38686: 38686.diff

File 38686.diff, 477 bytes (added by xrmx, 8 years ago)

use _n_noop() on fallback

  • src/wp-includes/post.php

    diff --git src/wp-includes/post.php src/wp-includes/post.php
    index 9e20aa0..98e01fe 100644
    function register_post_status( $post_status, $args = array() ) { 
    815815                $args->label = $post_status;
    816816
    817817        if ( false === $args->label_count )
    818                 $args->label_count = array( $args->label, $args->label );
     818                $args->label_count = _n_noop( $args->label, $args->label );
    819819
    820820        $wp_post_statuses[$post_status] = $args;
    821821