Skip to content

Commit

Permalink
Remove unused dt-post-status input.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterwilsoncc committed Jul 14, 2023
1 parent 9b500f5 commit 5a76939
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions assets/js/push.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ jQuery( window ).on( 'load', () => {
let selectAllConnections = '';
let selectNoConnections = '';
let connectionsSearchInput = '';
let postStatusInput = '';
let asDraftInput = '';
let errorDetails = '';

Expand Down Expand Up @@ -91,7 +90,6 @@ jQuery( window ).on( 'load', () => {
connectionsSearchInput = document.getElementById(
'dt-connection-search'
);
postStatusInput = document.getElementById( 'dt-post-status' );
asDraftInput = document.getElementById( 'dt-as-draft' );
errorDetails = document.querySelector( '.dt-error ul.details' );

Expand Down
1 change: 0 additions & 1 deletion templates/show-connections-amp.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ class="add-connection{{#syndicated}} syndicated{{/syndicated}}"
<div class="selected-connections-list"></div>

<div class="action-wrapper">
<input type="hidden" id="dt-post-status" value="<?php echo esc_attr( $post->post_status ); ?>">
<?php
$as_draft = ( 'draft' !== $post->post_status ) ? true : false;
/**
Expand Down
1 change: 0 additions & 1 deletion templates/show-connections.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ class="add-connection<# if ( ! _.isEmpty( connections[ key ]['syndicated'] ) ) {
<div class="selected-connections-list"></div>

<div class="action-wrapper">
<input type="hidden" id="dt-post-status" value="<?php echo esc_attr( $post->post_status ); ?>">
<?php
$as_draft = ( 'draft' !== $post->post_status ) ? true : false;
/**
Expand Down

0 comments on commit 5a76939

Please sign in to comment.