Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author scottmritter

    (@scottmritter)

    Hi Oli,

    Sorry for the considerable delay – I’ve now updated the plug-in so that it works on both pages and plugins.

    Cheers!

    Best,
    Scott

    Plugin Author scottmritter

    (@scottmritter)

    Hi Oli!

    I’m sorry about that error – it looks like I uploaded an early copy to the repository.

    Here are the changes from the options.php file:

    This goes under the register_setting() for NFRD_Username:

    register_setting(
                'NFRD_Group', // Option group
                'NFRD_PW', // Option name
                array( $this, 'sanitize' ) // Sanitize
            );

    and

    this line (also in options.php):

    $new_input['NFRD_Username'] = sanitize_text_field( $input['NFRD_Username'] );

    should replace:

    $new_input['NFRD_Username'] = absint( $input['NFRD_Username'] );

    I’ve also replaced the plugin on WordPress if you would rather just delete and re-install again (I’m still learning – sorry!)

    Thank you for pointing this out to me and I hope you have a wonderful day!

    Best,
    Scott

Viewing 2 replies - 1 through 2 (of 2 total)