Skip to content

Commit e3cd12b

Browse files
Merge pull request #999 from Codeinwp/bugfix/998
Fixed compatibility issue with WP 6.7 preventing New Import button to show up
2 parents 0e3d696 + 6ebeee3 commit e3cd12b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

includes/admin/feedzy-rss-feeds-import.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ public function register_import_post_type() {
230230
'name' => __( 'Import Posts', 'feedzy-rss-feeds' ),
231231
'singular_name' => __( 'Import Post', 'feedzy-rss-feeds' ),
232232
'add_new' => __( 'New Import', 'feedzy-rss-feeds' ),
233-
'add_new_item' => false,
233+
'add_new_item' => __( 'New Import', 'feedzy-rss-feeds' ),
234234
'edit_item' => false,
235235
'new_item' => __( 'New Import Post', 'feedzy-rss-feeds' ),
236236
'view_item' => __( 'View Import', 'feedzy-rss-feeds' ),

tests/e2e/specs/import.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ test.describe( 'Feed Import', () => {
144144
// Select the first post created by feeds import. Check the featured image.
145145
await page.getByRole('link', { name: 'Posts', exact: true }).click({ force: true });
146146
await page.locator('#the-list tr').first().locator('a.row-title').click({ force: true });
147-
await expect( page.getByLabel('Edit or replace the image') ).toBeVisible(); // Featured image is added.
147+
await expect( page.getByLabel('Edit or replace the featured image') ).toBeVisible(); // Featured image is added.
148148
});
149149

150150
test( 'importing feed with chained actions', async({ admin, page, requestUtils }) => {

0 commit comments

Comments
 (0)