-
Notifications
You must be signed in to change notification settings - Fork 30
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
Add Gutenberg v. 3.5+ support #64
Comments
I started looking into this today. I pushed a branch, but no commits as of yet: https://github.com/WebDevStudios/WDS-Blocks/tree/feature/%2364-support-for-3-7-0 I upgraded my local Gutenberg to The image and video background options do not work globally. There is no button being supplied to upload/set a file: Other than the issue above, the following blocks look to be in working order:
The rest of the blocks do not seems to show up for selection. This is most likely due to some console errors. It looks like https://wordpress.org/gutenberg/handbook/blocks/creating-dynamic-blocks/ |
Pushed branch: All blocks (except Users Grid, notes below) work now as expected in 3.9. A few items deprecating in 4.0, but I think all of those potential issues are already resolved as of now. Changed
AddedUpdated
PendingThe one block I can't get working at this moment is the user grid block. It uses the same This works fine with posts and there's another option for categories There is a |
I reworked the withSelect to just make use of the export default withSelect( ( select, props ) => {
const { posts } = props;
if ( undefined !== posts && '[]' !== posts ) {
const selectedResultsQuery = JSON.parse( posts ).map( item => {
return `include[]=${ item.id }&orderby=include`;
} );
if ( 0 < selectedResultsQuery.length ) {
const selectedResultsFilter = selectedResultsQuery.join( '&' );
const selectedResults = apiFetch( { path: `/wp/v2/${ props.attributes.queryFor }?_embed&${ selectedResultsFilter }&orderby=include` } )
.then( ( response ) => {
if ( response ) {
return response;
}
} )
.catch( ( error ) => console.log( error ) /* eslint-disable-line */ );
return {
selectedResults: selectedResults,
};
}
}
} )( PostRenderer ); I can't tell if it's a result of |
…-fixes Feature/#64 gutenberg 3.9.0 fixes
Gutenberg v. 3.5+ breaks some blocks. Needs testing and updates for all blocks.
The text was updated successfully, but these errors were encountered: