WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: SlideShare] Patch for 2.8.4 (2 posts)

  1. King Granite
    Member
    Posted 4 years ago #

    Code was not placing the hidden nonce in the settings form.

    In short, move the wp_nonce_field() call into the $content variable assignment.

    Patch is below:

    44,46d43
    <                                                       if (function_exists('wp_nonce_field'))
    <                                                               wp_nonce_field('slideshare-updatesettings');
    <
    53c50
    <                                                       $content = '<form action="" method="post" id="slideshare-conf">'.$this->form_table($rows).'<div class
    ="submit"><input type="submit" class="button-primary" name="submit" value="'.__("Update SlideShare Settings").' &raquo;" /></div></form>';
    ---
    >                                                       $content = '<form action="" method="post" id="slideshare-conf">'.$this->form_table($rows).'<div class
    ="submit"><input type="submit" class="button-primary" name="submit" value="'.__("Update SlideShare Settings").' &raquo;" /></div>'.(function_exists('wp_nonce
    _field')? wp_nonce_field('slideshare-updatesettings') : '').'</form>';
    116c113
    < ?>
    \ No newline at end of file
    ---
    > ?>

    http://wordpress.org/extend/plugins/slideshare/

  2. Joost de Valk
    Member
    Posted 4 years ago #

    What can I say, sometimes, I'm a moron. Fixed in 1.8.4!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags