IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 393 | 393 | $post_type_obj = get_post_type_object( $this->screen->post_type ); |
| 394 | 394 | |
| 395 | 395 | if ( current_user_can( $post_type_obj->cap->edit_posts ) ) { |
| 396 | | if ( $this->is_trash ) { |
| | 396 | |
| | 397 | /** |
| | 398 | * Filters whether to disable inline edit. |
| | 399 | * |
| | 400 | * @since 4.8.0 |
| | 401 | * |
| | 402 | * @param bool $status Whether to disable the inline. Default false. |
| | 403 | * @param string $post_type Post type slug. |
| | 404 | */ |
| | 405 | if ( $this->is_trash ) { |
| 397 | 406 | $actions['untrash'] = __( 'Restore' ); |
| 398 | | } else { |
| | 407 | } elseif ( ! apply_filters( 'disable_inline_edit_post', false, $this->screen->post_type ) ) { |
| 399 | 408 | $actions['edit'] = __( 'Edit' ); |
| 400 | 409 | } |
| 401 | 410 | } |
| … |
… |
|
| 1230 | 1239 | esc_attr( sprintf( __( 'Edit “%s”' ), $title ) ), |
| 1231 | 1240 | __( 'Edit' ) |
| 1232 | 1241 | ); |
| 1233 | | $actions['inline hide-if-no-js'] = sprintf( |
| 1234 | | '<a href="#" class="editinline" aria-label="%s">%s</a>', |
| 1235 | | /* translators: %s: post title */ |
| 1236 | | esc_attr( sprintf( __( 'Quick edit “%s” inline' ), $title ) ), |
| 1237 | | __( 'Quick Edit' ) |
| 1238 | | ); |
| | 1242 | |
| | 1243 | /** This filter is documented in wp-admin/includes/class-wp-posts-list-table.php */ |
| | 1244 | if ( ! apply_filters( 'disable_inline_edit_post', false, $post->post_type ) ) { |
| | 1245 | $actions['inline hide-if-no-js'] = sprintf( |
| | 1246 | '<a href="#" class="editinline" aria-label="%s">%s</a>', |
| | 1247 | /* translators: %s: post title */ |
| | 1248 | esc_attr( sprintf( __( 'Quick edit “%s” inline' ), $title ) ), |
| | 1249 | __( 'Quick Edit' ) |
| | 1250 | ); |
| | 1251 | } |
| 1239 | 1252 | } |
| 1240 | 1253 | |
| 1241 | 1254 | if ( current_user_can( 'delete_post', $post->ID ) ) { |
| … |
… |
|
| 1343 | 1356 | $taxonomy_names = get_object_taxonomies( $screen->post_type ); |
| 1344 | 1357 | $hierarchical_taxonomies = array(); |
| 1345 | 1358 | $flat_taxonomies = array(); |
| | 1359 | |
| | 1360 | /** This filter is documented in wp-admin/includes/class-wp-posts-list-table.php */ |
| | 1361 | if ( apply_filters( 'disable_inline_edit_post', false, $screen->post_type ) ) { |
| | 1362 | return; |
| | 1363 | } |
| | 1364 | |
| 1346 | 1365 | foreach ( $taxonomy_names as $taxonomy_name ) { |
| 1347 | 1366 | |
| 1348 | 1367 | $taxonomy = get_taxonomy( $taxonomy_name ); |