New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit Post: Improve perf for PublishPanel and extenstions #6938

merged 1 commit into from May 25, 2018


None yet
2 participants

gziolo commented May 24, 2018

Addresses the comment from @aduth:

This will cause render reconciliation more than necessary because it's creating a new function each render.

Why not hoist to a top-level variable? Or could renderPrePublishExtension be interpreted as a component, so we could pass the PluginPrePublishPanel.Slot reference directly instead of a function?

How has this been tested?

Code to paste into your browser:



screen shot 2018-05-17 at 13 39 03


screen shot 2018-05-17 at 13 37 15

screen shot 2018-05-17 at 13 37 41

Types of changes



  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.

@gziolo gziolo added this to the 3.0 milestone May 24, 2018

@gziolo gziolo self-assigned this May 24, 2018

@gziolo gziolo requested review from aduth and jorgefilipecosta May 24, 2018

@gziolo gziolo referenced this pull request May 24, 2018


Extensibility: Add publish panels support for plugins #6798

4 of 4 tasks complete

aduth approved these changes May 25, 2018

Thanks. Looks great 👍

@aduth aduth merged commit 1e689af into master May 25, 2018

2 checks passed

codecov/project 46.13% (+<.01%) compared to 5ebefc3
continuous-integration/travis-ci/pr The Travis CI build passed

@aduth aduth deleted the update/publish-panel-perf branch May 25, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment