Skip to content

Commit faa6216

Browse files
Merge pull request #961 from Codeinwp/bugfix/960
Fixed PHP warnings
2 parents bf5fce0 + 24fe619 commit faa6216

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

.github/workflows/test-php.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Setup PHP version
1616
uses: shivammathur/setup-php@v2
1717
with:
18-
php-version: '7.1'
18+
php-version: '7.4'
1919
extensions: simplexml
2020
- name: Checkout source code
2121
uses: actions/checkout@v2
@@ -51,7 +51,7 @@ jobs:
5151
- name: Setup PHP version
5252
uses: shivammathur/setup-php@v2
5353
with:
54-
php-version: '7.1'
54+
php-version: '7.4'
5555
extensions: simplexml, mysql
5656
tools: phpunit-polyfills
5757
- name: Checkout source code

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1243,7 +1243,7 @@ private function run_job( $job, $max ) {
12431243
$import_translation_lang = get_post_meta( $job->ID, 'import_auto_translation_lang', true );
12441244
$max = $import_feed_limit;
12451245

1246-
if ( metadata_exists( $import_post_type, $job->ID, 'import_post_status' ) ) {
1246+
if ( metadata_exists( 'post', $job->ID, 'import_post_status' ) ) {
12471247
$import_post_status = get_post_meta( $job->ID, 'import_post_status', true );
12481248
} else {
12491249
add_post_meta( $job->ID, 'import_post_status', 'publish' );

includes/gutenberg/feedzy-rss-feeds-gutenberg-block.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ public function feedzy_gutenberg_scripts() {
7676
);
7777

7878
// Enqueue editor block styles
79-
wp_enqueue_style( 'feedzy-block-css', FEEDZY_ABSURL . 'css/feedzy-rss-feeds.css', '', $version );
80-
wp_enqueue_style( 'feedzy-gutenberg-block-css', FEEDZY_ABSURL . 'js/build/style-block.css', '', $version );
79+
wp_enqueue_style( 'feedzy-block-css', FEEDZY_ABSURL . 'css/feedzy-rss-feeds.css', array(), $this->version );
80+
wp_enqueue_style( 'feedzy-gutenberg-block-css', FEEDZY_ABSURL . 'js/build/style-block.css', array(), $this->version );
8181
}
8282

8383
/**

tests/e2e/specs/import.spec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ 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 page.getByRole('button', { name: 'Featured image' }).click({ force: true });
148147
await expect( page.getByLabel('Edit or replace the image') ).toBeVisible(); // Featured image is added.
149148
});
150149

0 commit comments

Comments
 (0)