Permalink
Browse files

Correct 0-Index-Display for Update Numbers

  • Loading branch information...
Christian Jung authored and campino2k committed Nov 30, 2011
1 parent 24a6601 commit 82d5e3dfbe71916af4d4b2d24af028fa9704896c
Showing with 1 addition and 1 deletion.
  1. +1 −1 wp-post-update-links.php
View
@@ -41,7 +41,7 @@ public function insert_post_update_links( $content ){
public function execute_update_shortcodes( $atts, $content=null, $code="" ) {
global $post;
$this->update_count++;
$this->update_links[] = $atts['title'] ? $atts['title'] : __('Update ', 'wp_post_update_links' ) . $this->update_count;
$this->update_links[] = $atts['title'] ? $atts['title'] : __('Update ', 'wp_post_update_links' ) . ( $this->update_count + 1 );
return '<div class="update" id="post-' . $post->ID . '_update-' . $this->update_count . '">' . $content . '</div>';
}
};

0 comments on commit 82d5e3d

Please sign in to comment.