Skip to content

Commit

Permalink
Update layers_ajax.php
Browse files Browse the repository at this point in the history
$sendPlainText was always true here, also.
  • Loading branch information
bbannon authored Apr 24, 2024
1 parent 1f6308d commit ad082ba
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions layers_ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,10 @@

$action = getValue ( 'action' );
$public = getValue ( 'public' );

$sendPlainText = false;
$format = getValue ( 'format' );
if ( ! empty ( $format ) &&

$sendPlainText = ( ! empty ( $format ) &&
( $format == 'text' || $format == 'plain' ) );
$sendPlainText = true;

$error = '';

Expand Down

0 comments on commit ad082ba

Please sign in to comment.