Skip to content

Commit 3930d1c

Browse files
authored
Removed the "page is in trash" error
1 parent 6b3e05b commit 3930d1c

1 file changed

Lines changed: 1 addition & 14 deletions

File tree

src/wp-admin/options-privacy.php

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -127,20 +127,7 @@ static function ( $body_class ) {
127127
'error'
128128
);
129129
} else {
130-
if ( 'trash' === $privacy_policy_page->post_status ) {
131-
add_settings_error(
132-
'page_for_privacy_policy',
133-
'page_for_privacy_policy',
134-
sprintf(
135-
/* translators: %s: URL to Pages Trash. */
136-
__( 'The currently selected Privacy Policy page is in the Trash. Please create or select a new Privacy Policy page or <a href="%s">restore the current page</a>.' ),
137-
'edit.php?post_status=trash&post_type=page'
138-
),
139-
'error'
140-
);
141-
} else {
142-
$privacy_policy_page_exists = true;
143-
}
130+
$privacy_policy_page_exists = true;
144131
}
145132
}
146133

0 commit comments

Comments
 (0)