When the code in default_post_datetime_hook()
is run as part of a WPCLI request there are lots of lots of PHP warnings / errors.
I don’t think there is any need for the code here to be run during WPCLI requests so simply adding:
// Don't run when called via WP CLI
if ( defined( 'WP_CLI' ) && WP_CLI ) {
return $data;
}
Should be sufficient.
]]>Thanks for making this plugin available!
I’ve added two gettext strings and German translation files to this package:
default-post-datetime.1.3.1 DE MOD.zip
—
Datums- und Uhrzeitvorgabe
Eine deutsche übersetzung dieser Erweiterung findet sich hier:
default-post-datetime.1.3.1 DE MOD.zip.?
Das ?MOD“ (für Modifikation) im Dateinamen bezieht sich auf geringfügige ?nderungen der gettext-Auszeichnung, da nicht alle Textelemente übersetzbar waren.
]]>