Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion src/wp-admin/includes/class-wp-posts-list-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -1136,10 +1136,22 @@

$title = _draft_or_post_title();

$post_type_object = get_post_type_object( $post->post_type );

if ( has_post_parent($post) ) {
$label = esc_attr( sprintf( __( 'Subpage %s (Edit)' ), $title) );
$parent = get_post( $post->post_parent );
$parent_name = apply_filters( 'the_title', $parent->post_title, $parent->ID );
} else {
$label = esc_attr( sprintf( __( '%s %s (Edit)' ), $post_type_object->labels->singular_name ,$title) ); $title;
}

Check failure on line 1147 in src/wp-admin/includes/class-wp-posts-list-table.php

View workflow job for this annotation

GitHub Actions / Coding standards / PHP checks

Expected 1 spaces before closing parenthesis; 0 found

Check failure on line 1147 in src/wp-admin/includes/class-wp-posts-list-table.php

View workflow job for this annotation

GitHub Actions / Coding standards / PHP checks

Expected 1 spaces after opening parenthesis; 0 found

Check failure on line 1148 in src/wp-admin/includes/class-wp-posts-list-table.php

View workflow job for this annotation

GitHub Actions / Coding standards / PHP checks

Expected 1 spaces before closing parenthesis; 0 found

if ( $can_edit_post && 'trash' !== $post->post_status ) {
printf(
'<a class="row-title" href="%s">%s%s</a>',
'<a class="row-title" aria-label="%s" href="%s">%s%s</a>',

Check failure on line 1152 in src/wp-admin/includes/class-wp-posts-list-table.php

View workflow job for this annotation

GitHub Actions / Coding standards / PHP checks

Each PHP statement must be on a line by itself

Check failure on line 1152 in src/wp-admin/includes/class-wp-posts-list-table.php

View workflow job for this annotation

GitHub Actions / Coding standards / PHP checks

Expected 1 spaces before closing parenthesis; 0 found

Check failure on line 1152 in src/wp-admin/includes/class-wp-posts-list-table.php

View workflow job for this annotation

GitHub Actions / Coding standards / PHP checks

No space found after comma in argument list

Check failure on line 1152 in src/wp-admin/includes/class-wp-posts-list-table.php

View workflow job for this annotation

GitHub Actions / Coding standards / PHP checks

Space found before comma in argument list

Check failure on line 1152 in src/wp-admin/includes/class-wp-posts-list-table.php

View workflow job for this annotation

GitHub Actions / Coding standards / PHP checks

Multiple placeholders in translatable strings should be ordered. Expected "%1$s, %2$s", but got "%s, %s" in '%s %s (Edit)'.
$label,
get_edit_post_link( $post->ID ),

Check failure on line 1154 in src/wp-admin/includes/class-wp-posts-list-table.php

View workflow job for this annotation

GitHub Actions / Coding standards / PHP checks

Functions must not contain multiple empty lines in a row; found 2 empty lines

Check failure on line 1154 in src/wp-admin/includes/class-wp-posts-list-table.php

View workflow job for this annotation

GitHub Actions / Coding standards / PHP checks

Whitespace found at end of line
$pad,
$title
);
Expand Down
Loading