Ticket #6209: 6209.diff
File 6209.diff, 6.7 KB (added by , 16 years ago) |
---|
-
wp-admin/users.php
398 398 else 399 399 echo '<p>' . sprintf(__('Users cannot currently <a href="%1$s">register themselves</a>, but you can manually create users here.'), get_option('siteurl').'/wp-admin/options-general.php#users_can_register') . '</p>'; 400 400 ?> 401 <form action="#add-new-user" method="post" name="adduser" id="adduser" class="add:users: ">401 <form action="#add-new-user" method="post" name="adduser" id="adduser" class="add:users: validate"> 402 402 <?php wp_nonce_field('add-user') ?> 403 403 <table class="form-table"> 404 404 <tr class="form-field form-required"> -
wp-admin/includes/media.php
848 848 $callback = "type_form_$type"; 849 849 ?> 850 850 851 <form enctype="multipart/form-data" method="post" action="<?php echo attribute_escape($form_action_url); ?>" class="media-upload-form type-form " id="<?php echo $type; ?>-form">851 <form enctype="multipart/form-data" method="post" action="<?php echo attribute_escape($form_action_url); ?>" class="media-upload-form type-form validate" id="<?php echo $type; ?>-form"> 852 852 <input type="hidden" name="post_id" id="post_id" value="<?php echo $post_id; ?>" /> 853 853 <?php wp_nonce_field('media-form'); ?> 854 854 <h3><?php _e('From Computer'); ?></h3> … … 909 909 --> 910 910 </script> 911 911 912 <form enctype="multipart/form-data" method="post" action="<?php echo attribute_escape($form_action_url); ?>" class="media-upload-form " id="gallery-form">912 <form enctype="multipart/form-data" method="post" action="<?php echo attribute_escape($form_action_url); ?>" class="media-upload-form validate" id="gallery-form"> 913 913 <?php wp_nonce_field('media-form'); ?> 914 914 <?php //media_upload_form( $errors ); ?> 915 915 … … 1044 1044 </div> 1045 1045 </form> 1046 1046 1047 <form enctype="multipart/form-data" method="post" action="<?php echo attribute_escape($form_action_url); ?>" class="media-upload-form " id="library-form">1047 <form enctype="multipart/form-data" method="post" action="<?php echo attribute_escape($form_action_url); ?>" class="media-upload-form validate" id="library-form"> 1048 1048 1049 1049 <?php wp_nonce_field('media-form'); ?> 1050 1050 <?php //media_upload_form( $errors ); ?> -
wp-admin/js/common.js
7 7 8 8 // Basic form validation 9 9 if ( ( 'undefined' != typeof wpAjax ) && jQuery.isFunction( wpAjax.validateForm ) ) { 10 jQuery('form ').submit( function() { return wpAjax.validateForm( jQuery(this) ); } );10 jQuery('form.validate').submit( function() { return wpAjax.validateForm( jQuery(this) ); } ); 11 11 } 12 12 }); 13 13 -
wp-admin/edit-link-form.php
2 2 if ( ! empty($link_id) ) { 3 3 $heading = __('Edit Link'); 4 4 $submit_text = __('Save Changes'); 5 $form = '<form name="editlink" id="editlink" method="post" action="link.php" >';5 $form = '<form name="editlink" id="editlink" method="post" action="link.php" class="validate">'; 6 6 $nonce_action = 'update-bookmark_' . $link_id; 7 7 } else { 8 8 $heading = __('Add Link'); 9 9 $submit_text = __('Add Link'); 10 $form = '<form name="addlink" id="addlink" method="post" action="link.php" >';10 $form = '<form name="addlink" id="addlink" method="post" action="link.php" class="validate">'; 11 11 $nonce_action = 'add-bookmark'; 12 12 } 13 13 -
wp-admin/edit-link-category-form.php
2 2 if ( ! empty($cat_ID) ) { 3 3 $heading = __('Edit Category'); 4 4 $submit_text = __('Edit Category'); 5 $form = '<form name="editcat" id="editcat" method="post" action="link-category.php" >';5 $form = '<form name="editcat" id="editcat" method="post" action="link-category.php" class="validate">'; 6 6 $action = 'editedcat'; 7 7 $nonce_action = 'update-link-category_' . $cat_ID; 8 8 do_action('edit_link_category_form_pre', $category); 9 9 } else { 10 10 $heading = __('Add Category'); 11 11 $submit_text = __('Add Category'); 12 $form = '<form name="addcat" id="addcat" class="add:the-list: " method="post" action="link-category.php">';12 $form = '<form name="addcat" id="addcat" class="add:the-list: validate" method="post" action="link-category.php">'; 13 13 $action = 'addcat'; 14 14 $nonce_action = 'add-link-category'; 15 15 do_action('add_link_category_form_pre', $category); -
wp-admin/edit-tag-form.php
2 2 if ( ! empty($tag_ID) ) { 3 3 $heading = __('Edit Tag'); 4 4 $submit_text = __('Edit Tag'); 5 $form = '<form name="edittag" id="edittag" method="post" action="edit-tags.php" >';5 $form = '<form name="edittag" id="edittag" method="post" action="edit-tags.php" class="validate">'; 6 6 $action = 'editedtag'; 7 7 $nonce_action = 'update-tag_' . $tag_ID; 8 8 do_action('edit_tag_form_pre', $tag); 9 9 } else { 10 10 $heading = __('Add Tag'); 11 11 $submit_text = __('Add Tag'); 12 $form = '<form name="addtag" id="addtag" method="post" action="edit-tags.php" class="add:the-list: ">';12 $form = '<form name="addtag" id="addtag" method="post" action="edit-tags.php" class="add:the-list: validate">'; 13 13 $action = 'addtag'; 14 14 $nonce_action = 'add-tag'; 15 15 do_action('add_tag_form_pre', $tag); -
wp-admin/edit-category-form.php
2 2 if ( ! empty($cat_ID) ) { 3 3 $heading = __('Edit Category'); 4 4 $submit_text = __('Edit Category'); 5 $form = '<form name="editcat" id="editcat" method="post" action="categories.php" >';5 $form = '<form name="editcat" id="editcat" method="post" action="categories.php" class="validate">'; 6 6 $action = 'editedcat'; 7 7 $nonce_action = 'update-category_' . $cat_ID; 8 8 do_action('edit_category_form_pre', $category); 9 9 } else { 10 10 $heading = __('Add Category'); 11 11 $submit_text = __('Add Category'); 12 $form = '<form name="addcat" id="addcat" method="post" action="categories.php" class="add:the-list: ">';12 $form = '<form name="addcat" id="addcat" method="post" action="categories.php" class="add:the-list: validate">'; 13 13 $action = 'addcat'; 14 14 $nonce_action = 'add-category'; 15 15 do_action('add_category_form_pre', $category);