Skip to content

Commit

Permalink
Remove extraneous conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
philipjohn authored and westonruter committed Feb 11, 2018
1 parent 8edc415 commit 20c3944
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ private function render_entry( $id = '', $type = '', $config = '' ) {
$analytics_title = sprintf( __( 'Analytics: %s', 'amp' ), $entry_slug );
} else {
$analytics_title = __( 'Add new entry:', 'amp' );
}

if ( ! $is_existing_entry ) {
$id = '__new__';
$id = '__new__';
}

$id_base = sprintf( '%s[analytics][%s]', AMP_Options_Manager::OPTION_NAME, $id );
Expand Down

0 comments on commit 20c3944

Please sign in to comment.