Skip to content

Masterbar: Fix compatibility with BeaverBuilder plugin.#8595

Merged
jeherve merged 3 commits intoAutomattic:masterfrom
Pross:patch-1
Jan 25, 2018
Merged

Masterbar: Fix compatibility with BeaverBuilder plugin.#8595
jeherve merged 3 commits intoAutomattic:masterfrom
Pross:patch-1

Conversation

@Pross
Copy link
Copy Markdown

@Pross Pross commented Jan 23, 2018

Fixes #8594

Changes proposed in this Pull Request:

  • Add filter provided by BeaverBuilder which forces a page refresh on save.

Testing instructions:

  • Install BeaverBuilder from https://wordpress.org/plugins/beaver-builder-lite-version/
  • Make sure WordPress.com toolbar (masterbar) module is active.
  • Edit a page with BeaverBuilder, add a module to the page anything you like.
  • Click 'Done', then 'Publish'.
  • The 'My Sites' link will now be unclickable.

Proposed changelog entry for your changes:

Simon Prosser added 2 commits January 23, 2018 15:15
When beaverBuilder publishes a layout the admin bar is restored but unclickable.
The filter `fl_builder_should_refresh_on_publish` forces BeaverBuilder to refresh the current page.
@Pross Pross requested a review from a team as a code owner January 23, 2018 16:11
@jeherve jeherve changed the title Fix compatibility with BeaverBuilder plugin. Masterbar: Fix compatibility with BeaverBuilder plugin. Jan 23, 2018
@jeherve jeherve added Bug When a feature is broken and / or not performing as intended [Status] Needs Review This PR is ready for review. [Pri] Normal [Feature] Masterbar WordPress.com Toolbar and Dashboard customizations labels Jan 23, 2018
Copy link
Copy Markdown
Member

@jeherve jeherve left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking good. I would only have one small nitpick with the function name, just so we know what this is all about when we get back to it later.

/**
* If masterbar module is active force BeaverBuilder to refresh when publishing a layout.
*/
function masterbar_refresh() {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think you could name this a bit differently, since we are refreshing the builder, and not the masterbar?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a problem.

@jeherve jeherve added [Status] Needs Author Reply We need more details from you. This label will be auto-added until the PR meets all requirements. and removed [Status] Needs Review This PR is ready for review. labels Jan 23, 2018
@jeherve jeherve requested a review from vindl January 23, 2018 16:56
@Pross
Copy link
Copy Markdown
Author

Pross commented Jan 23, 2018

Not sure why travis failed, just seemed to timeout.

@jeherve jeherve added [Status] Needs Review This PR is ready for review. and removed [Status] Needs Author Reply We need more details from you. This label will be auto-added until the PR meets all requirements. labels Jan 23, 2018
@jeherve
Copy link
Copy Markdown
Member

jeherve commented Jan 23, 2018

Thanks. I just relaunched the Travis tests to get that solved.

Copy link
Copy Markdown
Contributor

@zinigor zinigor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

@zinigor zinigor 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 Jan 25, 2018
Copy link
Copy Markdown
Member

@vindl vindl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! :shipit:

@jeherve jeherve merged commit 7b79e93 into Automattic:master Jan 25, 2018
@jeherve jeherve added [Status] Has Changelog and removed [Status] Ready to Merge Go ahead, you can push that green button! [Status] Needs Changelog labels Jan 25, 2018
jeherve added a commit that referenced this pull request Jan 25, 2018
@Pross Pross deleted the patch-1 branch January 26, 2018 17:09
zinigor pushed a commit that referenced this pull request Jan 30, 2018
* Changelog 5.8: create base for changelog.

* Update 5.8 release post link

* fix 5.8 release date

* Updates to plugin description

* Changelog: add #8499

* Changelog: add #8506

* Changelog: add #8509

* Changelog: add #8516

* Changelog: add #8517

* Changelog: add #8523

* Changelog: add #8547

* Changelog: add #8496

* Changelog: add #8584

* Changelog: add #8595

* Changelog: add #8445

* Changelog: add #8431

* Changelog: add #8284

* Changelog: add #8270

* Changelog: add #8124

* Changelog: add #8581

* Changelog: add #8463

* Changelog: add #8568 (#8646)

* Updates to testing list and changelog

* Changelog: add #8443

* Changelog: add #8459

* Changelog: add #8469

* Changelog: add #8464

* Changelog: add #8478 and #8479

* Changelog: add #8483

* Changelog: add #8488

* Changelog: add #8513

* Changelog: add #8555

* Changelog: add #8565

* Changelog: add #8601

* Changelog: add #8612

* Changelog: add first pass at Search items.

* Changelog: add more info to help test Search.

* Changelog: add #8144

* Changelog: add #8313

* Changelog: add #8419

* Changelog: add #8465

* Changelog: add #8515

* Changelog: add #8587

* Changelog: add #8591

* Changelog: add #8659

* Changelog: add #8661

* Changelog: add #8671

* Changelog: add 5.7.1 to archived changelog too.

* Reverted changes to readme, removed entry about backups.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug When a feature is broken and / or not performing as intended [Feature] Masterbar WordPress.com Toolbar and Dashboard customizations [Pri] Normal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants