Skip to content

Commit

Permalink
Update the bulk post update messages code for WP 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbillion committed Nov 4, 2013
1 parent 6681b0d commit 5f6b62f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions extended-cpts.php
Original file line number Diff line number Diff line change
Expand Up @@ -959,28 +959,28 @@ public function post_updated_messages( array $messages ) {
public function bulk_post_updated_messages( array $messages, array $counts ) {

$messages[$this->cpt->post_type] = array(
'updated' => sprintf( self::n( '%2$s updated.', '%1$s %3$s updated.', $counts[1] ),
$counts[1],
'updated' => sprintf( self::n( '%2$s updated.', '%1$s %3$s updated.', $counts['updated'] ),
number_format_i18n( $counts['updated'] ),
$this->cpt->post_singular,
$this->cpt->post_plural_low
),
'locked' => sprintf( self::n( '%2$s not updated, somebody is editing it.', '%1$s %3$s not updated, somebody is editing them.', $counts[2] ),
$counts[2],
'locked' => sprintf( self::n( '%2$s not updated, somebody is editing it.', '%1$s %3$s not updated, somebody is editing them.', $counts['locked'] ),
number_format_i18n( $counts['locked'] ),
$this->cpt->post_singular,
$this->cpt->post_plural_low
),
'deleted' => sprintf( self::n( '%2$s permanently deleted.', '%1$s %3$s permanently deleted.', $counts[3] ),
$counts[3],
'deleted' => sprintf( self::n( '%2$s permanently deleted.', '%1$s %3$s permanently deleted.', $counts['deleted'] ),
number_format_i18n( $counts['deleted'] ),
$this->cpt->post_singular,
$this->cpt->post_plural_low
),
'trashed' => sprintf( self::n( '%2$s moved to the trash.', '%1$s %3$s moved to the trash.', $counts[4] ),
$counts[4],
'trashed' => sprintf( self::n( '%2$s moved to the trash.', '%1$s %3$s moved to the trash.', $counts['trashed'] ),
number_format_i18n( $counts['trashed'] ),
$this->cpt->post_singular,
$this->cpt->post_plural_low
),
'untrashed' => sprintf( self::n( '%2$s restored from the trash.', '%1$s %3$s restored from the trash.', $counts[5] ),
$counts[5],
'untrashed' => sprintf( self::n( '%2$s restored from the trash.', '%1$s %3$s restored from the trash.', $counts['untrashed'] ),
number_format_i18n( $counts['untrashed'] ),
$this->cpt->post_singular,
$this->cpt->post_plural_low
),
Expand Down

0 comments on commit 5f6b62f

Please sign in to comment.