Skip to content
Permalink
Browse files

Notes: fix missing urls preventing notes actions from happening (#1009)

* add note related urls to editor options in the translations template

Co-authored-by: Daniele Scasciafratte <mte90net@gmail.com>
  • Loading branch information...
2 people authored and ocean90 committed May 14, 2019
1 parent 9040424 commit a08b7865ba0a28d4a8e84f8e81df66f1c16a9c4a
Showing with 1 addition and 1 deletion.
  1. +1 −1 gp-templates/translations.php
@@ -8,7 +8,7 @@
wp_localize_script( 'gp-translations-page', '$gp_translations_options', array( 'sort' => __( 'Sort', 'glotpress' ), 'filter' => __( 'Filter', 'glotpress' ) ) );
// localizer adds var in front of the variable name, so we can't use $gp.editor.options
$editor_options = compact('can_approve', 'can_write', 'url', 'discard_warning_url', 'set_priority_url', 'set_status_url');
$editor_options = compact( 'can_approve', 'can_write', 'url', 'discard_warning_url', 'set_priority_url', 'set_status_url', 'new_note_url', 'edit_note_url', 'delete_note_url' );
wp_localize_script( 'gp-editor', '$gp_editor_options', $editor_options );

0 comments on commit a08b786

Please sign in to comment.
You can’t perform that action at this time.