• Resolved tifosi

    (@tifosi)


    Hi

    Very useful plugin. One issue though with latest version (1.3) & WP 4.3.1.

    String arguments are not being accepted when creating or modifying a cron job.

    Plugin gives an example of: [‘i’,’want’,25,’cakes’]. Tried that. Not being accepted.

    Example I’m trying is [str, int] e.g. [‘deal’, 1234]. Won’t accept that and inserts blank argument. Trying [int, int] e.g [0,1234] works.

    Workaround atm is to use the int and map to a string inside the hook, but would prefer the string argument.

    Thanks

    Stephen

    https://wordpress.org/plugins/wp-crontrol/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Thanks for the report. I’ll get this fixed shortly.

    Tifosi – I’m trying to get in touch with you about the old postnuke-2-wordpress plugin. Not sure how to do this other than replying to a recent thread. Admins, any help?

    Thanks.

    Thread Starter tifosi

    (@tifosi)

    Thanks. Contact me at sb1304@hotmail.com. Haven’t looked at this in years so code may be well out of date.

    John… any advance on this. Don’t think it was ever looked at. Don’t recall a new version since reporting. Have a workaround but no actual fix.

    Thanks

    S

    Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    @tifosi,

    I’ve checked this and the problem is with the example code. Double quotes are required by the JSON decoding function. If you use double quotes instead of single quotes, these arguments work as expected.

    John

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘String arguments not accepted’ is closed to new replies.