@@ -40,7 +40,7 @@ switch ($action) {
$content = isset($_POST['content']) ? Security::remove_XSS($_POST['content']) : null;
$blockId = isset($_POST['block']) ? Security::remove_XSS($_POST['block']) : null;
- if (empty($content) || empty($blockId)) {
+ if (empty($blockId)) {
die;
}
@@ -99,6 +99,6 @@ $(document).ready(function() {
</form>
</div>
<div class="modal-footer">
- <a href="#" id="btn-block-editor-save" class="btn btn-primary">{{ 'Save' | get_lang }}</a>
+ <button id="btn-block-editor-save" class="btn btn-primary">{{ 'Save' | get_lang }}</button>