Ticket #32254: 32254.patch
File 32254.patch, 9.2 KB (added by , 10 years ago) |
---|
-
src/wp-admin/includes/class-wp-links-list-table.php
150 150 echo "<td $attributes><strong><a class='row-title' href='$edit_link' title='" . esc_attr( sprintf( __( 'Edit “%s”' ), $link->link_name ) ) . "'>$link->link_name</a></strong><br />"; 151 151 152 152 $actions = array(); 153 $actions['edit'] = '<a href="' . $edit_link . '">' . __( 'Edit' ) . '</a>';154 153 $actions['delete'] = "<a class='submitdelete' href='" . wp_nonce_url( "link.php?action=delete&link_id=$link->link_id", 'delete-bookmark_' . $link->link_id ) . "' onclick=\"if ( confirm( '" . esc_js( sprintf( __( "You are about to delete this link '%s'\n 'Cancel' to stop, 'OK' to delete." ), $link->link_name ) ) . "' ) ) { return true;}return false;\">" . __( 'Delete' ) . "</a>"; 155 154 echo $this->row_actions( $actions ); 156 155 -
src/wp-admin/includes/class-wp-media-list-table.php
506 506 $actions = array(); 507 507 508 508 if ( $this->detached ) { 509 if ( current_user_can( 'edit_post', $post->ID ) )510 $actions['edit'] = '<a href="' . get_edit_post_link( $post->ID ) . '">' . __( 'Edit' ) . '</a>';511 509 if ( current_user_can( 'delete_post', $post->ID ) ) 512 510 if ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) { 513 511 $actions['trash'] = "<a class='submitdelete' href='" . wp_nonce_url( "post.php?action=trash&post=$post->ID", 'trash-post_' . $post->ID ) . "'>" . __( 'Trash' ) . "</a>"; … … 520 518 $actions['attach'] = '<a href="#the-list" onclick="findPosts.open( \'media[]\',\''.$post->ID.'\' );return false;" class="hide-if-no-js">'.__( 'Attach' ).'</a>'; 521 519 } 522 520 else { 523 if ( current_user_can( 'edit_post', $post->ID ) && !$this->is_trash )524 $actions['edit'] = '<a href="' . get_edit_post_link( $post->ID ) . '">' . __( 'Edit' ) . '</a>';525 521 if ( current_user_can( 'delete_post', $post->ID ) ) { 526 522 if ( $this->is_trash ) 527 523 $actions['untrash'] = "<a class='submitdelete' href='" . wp_nonce_url( "post.php?action=untrash&post=$post->ID", 'untrash-post_' . $post->ID ) . "'>" . __( 'Restore' ) . "</a>"; … … 544 540 * @since 2.8.0 545 541 * 546 542 * @param array $actions An array of action links for each attachment. 547 * Default ' Edit', 'Delete Permanently', 'View'.543 * Default 'Delete Permanently', 'View'. 548 544 * @param WP_Post $post WP_Post object for the current attachment. 549 545 * @param bool $detached Whether the list table contains media not attached 550 546 * to any posts. Default true. -
src/wp-admin/includes/class-wp-ms-sites-list-table.php
279 279 'visit' => '', 280 280 ); 281 281 282 $actions['edit'] = '<span class="edit"><a href="' . esc_url( network_admin_url( 'site-info.php?id=' . $blog['blog_id'] ) ) . '">' . __( 'Edit' ) . '</a></span>';283 282 $actions['backend'] = "<span class='backend'><a href='" . esc_url( get_admin_url( $blog['blog_id'] ) ) . "' class='edit'>" . __( 'Dashboard' ) . '</a></span>'; 284 283 if ( get_current_site()->blog_id != $blog['blog_id'] ) { 285 284 if ( get_blog_status( $blog['blog_id'], 'deleted' ) == '1' ) -
src/wp-admin/includes/class-wp-ms-users-list-table.php
196 196 <br/> 197 197 <?php 198 198 $actions = array(); 199 $actions['edit'] = '<a href="' . $edit_link . '">' . __( 'Edit' ) . '</a>';200 199 201 200 if ( current_user_can( 'delete_user', $user->ID ) && ! in_array( $user->user_login, $super_admins ) ) { 202 201 $actions['delete'] = '<a href="' . $delete = esc_url( network_admin_url( add_query_arg( '_wp_http_referer', urlencode( wp_unslash( $_SERVER['REQUEST_URI'] ) ), wp_nonce_url( 'users.php', 'deleteuser' ) . '&action=deleteuser&id=' . $user->ID ) ) ) . '" class="delete">' . __( 'Delete' ) . '</a>'; … … 249 248 echo '<a href="'. esc_url( network_admin_url( 'site-info.php?id=' . $val->userblog_id ) ) .'">' . str_replace( '.' . get_current_site()->domain, '', $val->domain . $path ) . '</a>'; 250 249 echo ' <small class="row-actions">'; 251 250 $actions = array(); 252 $actions['edit'] = '<a href="'. esc_url( network_admin_url( 'site-info.php?id=' . $val->userblog_id ) ) .'">' . __( 'Edit' ) . '</a>';253 251 254 252 $class = ''; 255 253 if ( get_blog_status( $val->userblog_id, 'spam' ) == 1 ) -
src/wp-admin/includes/class-wp-posts-list-table.php
755 755 756 756 $actions = array(); 757 757 if ( $can_edit_post && 'trash' != $post->post_status ) { 758 $actions['edit'] = '<a href="' . get_edit_post_link( $post->ID ) . '" title="' . esc_attr__( 'Edit this item' ) . '">' . __( 'Edit' ) . '</a>';759 758 $actions['inline hide-if-no-js'] = '<a href="#" class="editinline" title="' . esc_attr__( 'Edit this item inline' ) . '">' . __( 'Quick Edit' ) . '</a>'; 760 759 } 761 760 if ( current_user_can( 'delete_post', $post->ID ) ) { … … 789 788 * @since 2.8.0 790 789 * 791 790 * @param array $actions An array of row action links. Defaults are 792 * ' Edit', 'Quick Edit', 'Restore, 'Trash',791 * 'Quick Edit', 'Restore, 'Trash', 793 792 * 'Delete Permanently', 'Preview', and 'View'. 794 793 * @param WP_Post $post The post object. 795 794 */ … … 804 803 * @since 2.8.0 805 804 * 806 805 * @param array $actions An array of row action links. Defaults are 807 * ' Edit', 'Quick Edit', 'Restore, 'Trash',806 * 'Quick Edit', 'Restore, 'Trash', 808 807 * 'Delete Permanently', 'Preview', and 'View'. 809 808 * @param WP_Post $post The post object. 810 809 */ -
src/wp-admin/includes/class-wp-terms-list-table.php
330 330 331 331 $actions = array(); 332 332 if ( current_user_can( $tax->cap->edit_terms ) ) { 333 $actions['edit'] = '<a href="' . $edit_link . '">' . __( 'Edit' ) . '</a>';334 333 $actions['inline hide-if-no-js'] = '<a href="#" class="editinline">' . __( 'Quick Edit' ) . '</a>'; 335 334 } 336 335 if ( current_user_can( $tax->cap->delete_terms ) && $tag->term_id != $default_term ) … … 345 344 * @deprecated 3.0.0 Use {$taxonomy}_row_actions instead. 346 345 * 347 346 * @param array $actions An array of action links to be displayed. Default 348 * ' Edit', 'Quick Edit', 'Delete', and 'View'.347 * 'Quick Edit', 'Delete', and 'View'. 349 348 * @param object $tag Term object. 350 349 */ 351 350 $actions = apply_filters( 'tag_row_actions', $actions, $tag ); … … 358 357 * @since 3.0.0 359 358 * 360 359 * @param array $actions An array of action links to be displayed. Default 361 * ' Edit', 'Quick Edit', 'Delete', and 'View'.360 * 'Quick Edit', 'Delete', and 'View'. 362 361 * @param object $tag Term object. 363 362 */ 364 363 $actions = apply_filters( "{$taxonomy}_row_actions", $actions, $tag ); -
src/wp-admin/includes/class-wp-users-list-table.php
363 363 364 364 if ( current_user_can( 'edit_user', $user_object->ID ) ) { 365 365 $edit = "<strong><a href=\"$edit_link\">$user_object->user_login</a></strong><br />"; 366 $actions['edit'] = '<a href="' . $edit_link . '">' . __( 'Edit' ) . '</a>';367 366 } else { 368 367 $edit = "<strong>$user_object->user_login</strong><br />"; 369 368 } … … 379 378 * @since 2.8.0 380 379 * 381 380 * @param array $actions An array of action links to be displayed. 382 * Default ' Edit', 'Delete' for single site, and383 * ' Edit', 'Remove' for Multisite.381 * Default 'Delete' for single site, and 382 * 'Remove' for Multisite. 384 383 * @param WP_User $user_object WP_User object for the currently-listed user. 385 384 */ 386 385 $actions = apply_filters( 'user_row_actions', $actions, $user_object );