Make WordPress Core


Ignore:
Timestamp:
05/02/2006 10:36:06 PM (21 years ago)
Author:
ryan
Message:

Nonce from above. #2678

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/theme-editor.php

    r3665 r3759  
    4848case 'update':
    4949
    50         check_admin_referer();
     50        check_admin_referer('edit-theme' . $file . $theme);
    5151
    5252        if ( !current_user_can('edit_themes') )
    … …  
    132132        ?>
    133133  <form name="template" id="template" action="theme-editor.php" method="post">
     134  <?php wp_nonce_field('edit-theme' . $file . $theme) ?>
    134135                 <div><textarea cols="70" rows="25" name="newcontent" id="newcontent" tabindex="1"><?php echo $content ?></textarea>
    135136     <input type="hidden" name="action" value="update" />
Note: See TracChangeset for help on using the changeset viewer.