-
Notifications
You must be signed in to change notification settings - Fork 0
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
Support for WordPress 5.0 and the new editor - Gutenberg #24
Comments
Two other problems arose when cloning a post created using the new block editor.
Both problems are known issues the second one being a core REST API issue.
|
The cloning logic will also need to be improved to detect post IDs stored in block attributes that will need to be mapped to different ID when cloned. It will also need to be able to clone |
Problem encountered today is that new line characters stored for block attributes in the HTML comments for the block are lost in the cloning process. The |
Further investigation of the backslash cloning problem is that it occurs when cloning a post for the first time. For updates the backslashes are not lost. For updates follow #22. |
In the server, the post content is filtered in the OK then, let's just call |
Of the problems reported above this one has not been addressed. But it’s detecting the referenced posts that could be more of a problem. |
This problem has now occurred. When cloning the block definitions for the two advanced-gutenberg-blocks blocks that are dependent upon WooCommerce the productID attributes are not mapped. Failure to map the IDs led to fatal errors in the blocks. The problem is compounded by the fact the WooCommerce may not be activated on either end of the clone... so the post IDs may not be recognised as mappable; get_post() might fail if the post type is not registered? Perhaps New logic will be needed to perform mapping of attributes which contain IDs. |
The new logic implemented for #38 goes a long way to solving the problem of dealing with WordPress blocks. It’s a hybrid solution at present that uses a new method for dealing with IDs in attributes in blocks and the original method for handling IDs in shortcodes. Although it has its limitations, such as not being able to map taxonomy term IDs, and it lacks unit tests, I feel it’s OK for this to be closed. |
Since early 2017 a new editor has been under development. Code named Gutenberg this new editor is being developed as a feature plugin. It is expected to be merged into core for WordPress 5.0.
We need to be aware of Gutenberg and to attempt to be compatible with it.
Editor not showing when HEARTBEAT = false
In oik-clone there is some logic that was developed to prevent heartbeat processing while updates are in progress.
Gutenberg is dependent upon the heartbeat script and won't work at all when it's been deregistered.
Workaround
Don't define( 'HEARTBEAT', false ) in wp-config.php
Proposed solution
Find another way of disabling heartbeat processing when running clone on update.
The text was updated successfully, but these errors were encountered: