Skip to content

Conversation

@jeherve
Copy link
Member

@jeherve jeherve commented Sep 12, 2019

Fixes #13453

Changes proposed in this Pull Request:

Testing instructions:

  • Start with a site on a Premium or Professional plan.
  • Activate the Ads module
  • Create a new post, and insert an ad block.
  • Publish a post.
  • Load your site's posts in Calypso: https://wordpress.com/posts/
  • Watch the fatal in your logs. This happens because the WordAds Object returned when loading the posts looks like this:
(
    [params] =>
    [ads] => Array
        (
            [0] => Array
                (
                    [location] => gutenberg
                    [width] => 300
                    [height] => 250
                )

        )

)
  • Apply patch.
  • Notice the fatal does not appear anymore.

Proposed changelog entry for your changes:

  • Ads Block: avoid PHP errors when loading posts via the WordPress.com interface.

@jeherve jeherve added [Type] Bug When a feature is broken and / or not performing as intended [Status] Needs Review This PR is ready for review. [Feature] WordAds [Focus] Blocks Issues related to the block editor, aka Gutenberg, and its extensions developed in Jetpack [Block] Ad labels Sep 12, 2019
@jeherve jeherve added this to the 7.8 milestone Sep 12, 2019
@jeherve jeherve requested review from a team and dbspringer September 12, 2019 16:56
@jeherve jeherve self-assigned this Sep 12, 2019
@matticbot
Copy link
Contributor

Caution: This PR has changes that must be merged to WordPress.com
Hello jeherve! These changes need to be synced to WordPress.com - If you 're an a11n, please commandeer, review, and approve D32727-code before merging this PR. Thank you!

@jetpackbot
Copy link
Collaborator

Thank you for the great PR description!

When this PR is ready for review, please apply the [Status] Needs Review label. If you are an a11n, please have someone from your team review the code if possible. The Jetpack team will also review this PR and merge it to be included in the next Jetpack release.

Scheduled Jetpack release: October 1, 2019.
Scheduled code freeze: September 24, 2019

Generated by 🚫 dangerJS against 03f2b3d

@kraftbj kraftbj added [Status] Ready to Merge Go ahead, you can push that green button! and removed [Status] Needs Review This PR is ready for review. labels Sep 18, 2019
@jeherve jeherve merged commit 31a5e2d into master Sep 19, 2019
@jeherve jeherve deleted the fix/fatal-ad-block branch September 19, 2019 07:11
@matticbot matticbot added [Status] Needs Changelog and removed [Status] Ready to Merge Go ahead, you can push that green button! labels Sep 19, 2019
jeherve added a commit that referenced this pull request Sep 24, 2019
jeherve added a commit that referenced this pull request Sep 24, 2019
* Changelog: initial set of changes for 7.8

* Changelog: add #13310

* Changelog: add #13103

* Changelog: add #13426

* Changelog: add #13389

* Changelog: add #13449

* Changelog: add #13461

* Changelog: add #13460

* Changelog: add #13441

* Changelog: add #13454

* Changelog: add #13457

* Changelog: add #13425

* Changelog: add #13473

* Changelog: add #13355

* Changelog: add #13451

* Changelog: add #13358

* Changelog: add #13464

* Changelog: add #13416

* Changelog: add #13494

* Changelog: add #13465

* Changelog: add #13424

* Changelog: add #13432

* Changelog: add #13471

* Changelog: add 7.7.2 entry

* Changelog: add #13446

* Add more testing elements
jeherve added a commit that referenced this pull request Sep 24, 2019
* Changelog: initial set of changes for 7.8

* Changelog: add #13310

* Changelog: add #13103

* Changelog: add #13426

* Changelog: add #13389

* Changelog: add #13449

* Changelog: add #13461

* Changelog: add #13460

* Changelog: add #13441

* Changelog: add #13454

* Changelog: add #13457

* Changelog: add #13425

* Changelog: add #13473

* Changelog: add #13355

* Changelog: add #13451

* Changelog: add #13358

* Changelog: add #13464

* Changelog: add #13416

* Changelog: add #13494

* Changelog: add #13465

* Changelog: add #13424

* Changelog: add #13432

* Changelog: add #13471

* Changelog: add 7.7.2 entry

* Changelog: add #13446

* Add more testing elements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Block] Ad [Feature] WordAds [Focus] Blocks Issues related to the block editor, aka Gutenberg, and its extensions developed in Jetpack Touches WP.com Files [Type] Bug When a feature is broken and / or not performing as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ad block causes posts list not to load in Calypso

5 participants