mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-01 00:27:38 +02:00
submit_button() fixes. Props sbressler. See #15064
git-svn-id: http://svn.automattic.com/wordpress/trunk@16362 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bb15731084
commit
866c6e1faa
@ -71,7 +71,7 @@ $date = date_i18n( $datef, strtotime( $comment->comment_date ) );
|
|||||||
<?php echo "<a class='submitdelete deletion' href='" . wp_nonce_url("comment.php?action=" . ( !EMPTY_TRASH_DAYS ? 'deletecomment' : 'trashcomment' ) . "&c=$comment->comment_ID&_wp_original_http_referer=" . urlencode(wp_get_referer()), 'delete-comment_' . $comment->comment_ID) . "'>" . ( !EMPTY_TRASH_DAYS ? __('Delete Permanently') : __('Move to Trash') ) . "</a>\n"; ?>
|
<?php echo "<a class='submitdelete deletion' href='" . wp_nonce_url("comment.php?action=" . ( !EMPTY_TRASH_DAYS ? 'deletecomment' : 'trashcomment' ) . "&c=$comment->comment_ID&_wp_original_http_referer=" . urlencode(wp_get_referer()), 'delete-comment_' . $comment->comment_ID) . "'>" . ( !EMPTY_TRASH_DAYS ? __('Delete Permanently') : __('Move to Trash') ) . "</a>\n"; ?>
|
||||||
</div>
|
</div>
|
||||||
<div id="publishing-action">
|
<div id="publishing-action">
|
||||||
<?php submit_button( __( 'Update Comment' ), 'primary', 'save', true, array( 'tabindex' => '4' ) ); ?>
|
<?php submit_button( __( 'Update Comment' ), 'primary', 'save', false, array( 'tabindex' => '4' ) ); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -338,7 +338,7 @@ if ( ! is_taxonomy_hierarchical($taxonomy) )
|
|||||||
do_action('add_tag_form_fields', $taxonomy);
|
do_action('add_tag_form_fields', $taxonomy);
|
||||||
do_action($taxonomy . '_add_form_fields', $taxonomy);
|
do_action($taxonomy . '_add_form_fields', $taxonomy);
|
||||||
|
|
||||||
submit_button( $tax->labels->add_new_item );
|
submit_button( $tax->labels->add_new_item, 'button' );
|
||||||
|
|
||||||
// Back compat hooks. Deprecated in preference to {$taxonomy}_add_form
|
// Back compat hooks. Deprecated in preference to {$taxonomy}_add_form
|
||||||
if ( 'category' == $taxonomy )
|
if ( 'category' == $taxonomy )
|
||||||
|
Loading…
Reference in New Issue
Block a user