Ticket #12171: 12171.3.diff
| File 12171.3.diff, 3.5 KB (added by , 16 years ago) |
|---|
-
wp-admin/edit-tags.php
290 290 291 291 <?php if ( current_user_can($tax->edit_cap) ) { 292 292 if ( 'category' == $taxonomy ) 293 do_action('add_category_form_pre', (object) array('parent' => 0) );293 do_action('add_category_form_pre', (object) array( 'parent' => 0 ) ); // Back compat hook. Deprecated. 294 294 else 295 do_action('add_tag_form_pre', $taxonomy); 296 do_action('add_' . $taxonomy . '_form_pre', $taxonomy); 295 do_action('add_tag_form_pre', $taxonomy); // Back compat hook. Deprecated. 296 297 do_action( $taxonomy . '_add_form_pre', $taxonomy); // Use this one. 297 298 ?> 298 299 299 300 <div class="form-wrap"> … … 329 330 </div> 330 331 331 332 <?php 332 if ( 'category' == $taxonomy ) 333 do_action('add_category_form_fields'); 334 else 335 do_action('add_tag_form_fields', $taxonomy); 336 do_action('add_' . $taxonomy . '_form_fields', $taxonomy); 333 if ( 'category' != $taxonomy ) 334 do_action('add_tag_form_fields', $taxonomy); // Back compat hook. Deprecated. 335 336 do_action($taxonomy . '_add_form_fields', $taxonomy); // Use this one. 337 337 ?> 338 338 339 339 <p class="submit"><input type="submit" class="button" name="submit" id="submit" value="<?php esc_attr_e('Add Tag'); ?>" /></p> 340 340 <?php 341 341 if ( 'category' == $taxonomy ) 342 do_action('edit_category_form', (object) array('parent' => 0) );342 do_action('edit_category_form', (object) array( 'parent' => 0 ) ); // Back compat hook. Deprecated. 343 343 else 344 do_action('add_tag_form', $taxonomy); 345 do_action('add_' . $taxonomy . '_form', $taxonomy); 344 do_action('add_tag_form', $taxonomy); // Back compat hook. Deprecated. 345 346 do_action($taxonomy . '_add_form', $taxonomy); // Use this one. 346 347 ?> 347 348 </form></div> 348 349 <?php } ?> -
wp-admin/edit-tag-form.php
20 20 } 21 21 22 22 if ( 'category' == $taxonomy ) 23 do_action('edit_category_form_pre', $tag ); 23 do_action('edit_category_form_pre', $tag ); // Back compat hook. Deprecated. 24 24 else 25 do_action('edit_tag_form_pre', $tag); 26 do_action('edit_' . $taxonomy . '_form_pre', $tag, $taxonomy); ?> 25 do_action('edit_tag_form_pre', $tag); // Back compat hook. Deprecated. 27 26 27 do_action($taxonomy . '_edit_form_pre', $tag, $taxonomy); // Use this one. 28 ?> 29 28 30 <div class="wrap"> 29 31 <?php screen_icon(); ?> 30 32 <h2><?php _e('Edit Tag'); ?></h2> … … 62 64 </tr> 63 65 <?php 64 66 if ( 'category' == $taxonomy ) 65 do_action('edit_category_form_fields', $tag); 67 do_action('edit_category_form_fields', $tag); // Back compat hook. Deprecated. 66 68 else 67 do_action('edit_tag_form_fields', $tag); 68 do_action('edit_' . $taxonomy . '_form_fields', $tag, $taxonomy); 69 do_action('edit_tag_form_fields', $tag); // Back compat hook. Deprecated. 70 71 do_action($taxonomy . '_edit_form_fields', $tag, $taxonomy); // Use this one. 69 72 ?> 70 73 </table> 71 74 <p class="submit"><input type="submit" class="button-primary" name="submit" value="<?php esc_attr_e('Update Tag'); ?>" /></p> 72 75 <?php 73 if ( 'category' == $taxonomy ) 74 do_action('edit_category_form _', $tag);76 if ( 'category' == $taxonomy ) 77 do_action('edit_category_form', $tag); // Back compat hook. Deprecated. 75 78 else 76 do_action('edit_tag_form_', $tag); 77 do_action('edit_' . $taxonomy . '_form', $tag, $taxonomy); 79 do_action('edit_tag_form', $tag); // Back compat hook. Deprecated. 80 81 do_action($taxonomy . '_edit_form', $tag, $taxonomy); // Use this one. 78 82 ?> 79 83 </form> 80 84 </div>