| @@ 1241-1255 (lines=15) @@ | ||
| 1238 | $actions = array(); |
|
| 1239 | $title = _draft_or_post_title(); |
|
| 1240 | ||
| 1241 | if ( $can_edit_post && 'trash' != $post->post_status ) { |
|
| 1242 | $actions['edit'] = sprintf( |
|
| 1243 | '<a href="%s" aria-label="%s">%s</a>', |
|
| 1244 | get_edit_post_link( $post->ID ), |
|
| 1245 | /* translators: %s: post title */ |
|
| 1246 | esc_attr( sprintf( __( 'Edit “%s”' ), $title ) ), |
|
| 1247 | __( 'Edit' ) |
|
| 1248 | ); |
|
| 1249 | $actions['inline hide-if-no-js'] = sprintf( |
|
| 1250 | '<a href="#" class="editinline" aria-label="%s">%s</a>', |
|
| 1251 | /* translators: %s: post title */ |
|
| 1252 | esc_attr( sprintf( __( 'Quick edit “%s” inline' ), $title ) ), |
|
| 1253 | __( 'Quick Edit' ) |
|
| 1254 | ); |
|
| 1255 | } |
|
| 1256 | ||
| 1257 | if ( current_user_can( 'delete_post', $post->ID ) ) { |
|
| 1258 | if ( 'trash' === $post->post_status ) { |
|
| @@ 437-451 (lines=15) @@ | ||
| 434 | ); |
|
| 435 | ||
| 436 | $actions = array(); |
|
| 437 | if ( current_user_can( 'edit_term', $tag->term_id ) ) { |
|
| 438 | $actions['edit'] = sprintf( |
|
| 439 | '<a href="%s" aria-label="%s">%s</a>', |
|
| 440 | esc_url( $edit_link ), |
|
| 441 | /* translators: %s: taxonomy term name */ |
|
| 442 | esc_attr( sprintf( __( 'Edit “%s”' ), $tag->name ) ), |
|
| 443 | __( 'Edit' ) |
|
| 444 | ); |
|
| 445 | $actions['inline hide-if-no-js'] = sprintf( |
|
| 446 | '<a href="#" class="editinline aria-button-if-js" aria-label="%s">%s</a>', |
|
| 447 | /* translators: %s: taxonomy term name */ |
|
| 448 | esc_attr( sprintf( __( 'Quick edit “%s” inline' ), $tag->name ) ), |
|
| 449 | __( 'Quick Edit' ) |
|
| 450 | ); |
|
| 451 | } |
|
| 452 | if ( current_user_can( 'delete_term', $tag->term_id ) ) { |
|
| 453 | $actions['delete'] = sprintf( |
|
| 454 | '<a href="%s" class="delete-tag aria-button-if-js" aria-label="%s">%s</a>', |
|