Skip to content
This repository was archived by the owner on Sep 5, 2018. It is now read-only.

Conversation

@westonruter
Copy link
Member

This ensures that plugins which wrap the base initialize method will ensure it always will get called. See for example https://github.com/xwp/wp-customize-rest-resources/blob/456308e28a1b495417ca70f30c9da9b630b9ba07/js/rest-resources-manager.js#L49-L57

westonruter added a commit to xwp/wp-next-recent-posts-widget that referenced this pull request Jan 3, 2017
@adamsilverstein
Copy link

@westonruter Thanks for the PR. All my existing tests pass... I plan to add a test for the ability to subclass the base model.

I created this core ticket to get this change into the merged client: https://core.trac.wordpress.org/ticket/39559

@adamsilverstein adamsilverstein merged commit b5c8fe4 into WP-API:master Jan 12, 2017
@westonruter westonruter deleted the bugfix/ensure-base-initialize-called branch January 12, 2017 17:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants