Skip to content

Commit

Permalink
Fix post ID when saving.
Browse files Browse the repository at this point in the history
  • Loading branch information
benhuson committed Aug 5, 2016
1 parent 44a45ee commit d2f17e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ public static function _save_post( $post_id ) {
// Save data
if ( isset( $_POST['wps_subtitle'] ) ) {

$subtitle = new WP_Subtitle( $post );
$subtitle = new WP_Subtitle( $post_id );
$subtitle->update_subtitle( $_POST['wps_subtitle'] );

}
Expand Down

0 comments on commit d2f17e4

Please sign in to comment.