WordPress.org

Making WordPress.org

Ticket #1445: wporg-glotpress-fix-button-reenabling.diff

File wporg-glotpress-fix-button-reenabling.diff, 430 bytes (added by diddledan, 4 years ago)

Fix for WP.org's glotpress plugin "wporg-js-warnings" - incorrect usage of the ok function

  • wporg-js-warnings/wporg-js-warnings.js

     
    5050                }
    5151
    5252                // No warnings, or warnings skipped
    53                 $gp.editor.hooks.ok( button );
     53                $gp.editor.hooks.ok.call( button );
    5454        },
    5555        check_entry: function( entry ) {
    5656                var warnings = [];