Hi @der-bank-blog
this plugin is discontinued since July 2019.
This plugin has been closed as of July 5, 2019 and is not available for download. This closure is permanent.
The problem you have mentioned is related to changes in the script translation method used in WordPress 5.5.
Former fix (now broken):
https://github.com/pluginkollektiv/publish-confirm/pull/16
Related make/core blogposts about new method:
More support for JavaScript i18n in WordPress 5.5
Deprecated JavaScript globals
i18n documentation:
https://developer.wordpress.org/apis/handbook/internationalization/#internationalizing-javascript
Unfortunately this will be not fixed here or on Github as this is all closed. You have to do this on your own.
You will need to change this line (in “inc/publish-confirm.php”):
var scheduleLabel = postL10n.schedule; // if the language is English, this is "Schedule"
to
var scheduleLabel = wp.i18n.__( 'post action\/button label\u0004Schedule' );
Then it will not show for scheduled posts anymore.
All the best
Torsten
Hallo Torsten
ganz herzlichen Dank. Schade, dass Euer hilfreiches Plugin nicht mehr gelistet ist. Mir leistet es jedenfalls wertvolle Dienste
VG
Hansjörg
Hallo @der-bank-blog
Das liegt daran, dass der neue Blockeditor so eine Funktion schon hat.
Konnte ja keiner ahnen, dass es nochmal mit einem Update kaputt geht …
Danke auf jeden Fall für deine Treue zum Plugin ☺️
Beste Grüße
Torsten
Nach Rücksprache wäre wohl folgender Code korrekter:
var scheduleLabel = wp.i18n._x( 'Schedule', 'post action/button label' );