Skip to content

Commit

Permalink
Hide Save button in block widget control
Browse files Browse the repository at this point in the history
  • Loading branch information
noisysocks committed Oct 16, 2020
1 parent e3433e9 commit cdba0b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wp-includes/widgets/class-wp-widget-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public function update( $new_instance, $old_instance ) {
* @since 5.6.0
*
* @param array $instance Current instance.
* @return string Default return is 'noform'.
*/
public function form( $instance ) {
$instance = wp_parse_args( (array) $instance, $this->default_instance );
Expand All @@ -94,6 +95,7 @@ public function form( $instance ) {
<textarea id="<?php echo $textarea_id; ?>" name="<?php echo $this->get_field_name( 'content' ); ?>"
class="content sync-input" hidden><?php echo esc_textarea( $instance['content'] ); ?></textarea>
<?php
return 'noform';
}

/**
Expand Down

0 comments on commit cdba0b1

Please sign in to comment.