Comments (11)
The code should work with Gutenberg v.4.1.0 when it's released. Currently v4.1.0-rc.2
from oik-blocks.
It would be nice if the JavaScript ( .js ) code was documented according to WordPress's JavaScript Documentation Standards. https://make.wordpress.org/core/handbook/best-practices/inline-documentation-standards/javascript/
e.g. For the start of each file
/**
* Summary.
*
* Description.
*
* @copyright (C) Copyright Bobbing Wide 2018
* @author @bobbingwide
*/
Not sure if it's necessary to use @url, @link or others. What about @Package?
from oik-blocks.
oik-block is not working at all on WordPress 5.0-beta5 on my new laptop with Edge.
Could be due to a problem with oik-bwtrace… which is not installed.
<b>Warning</b>: require_once(C:/apache/htdocs/wordpress/wp-content/plugins/oik-bwtrace/includes/bwtrace-actions.php):
failed to open stream: No such file or directory in
<b>C:\apache\htdocs\wordpress\wp-content\plugins\oik\libs\oik_boot.php</b> on line <b>70</b><br />
It was. Workaround was to install oik-bwtrace. It didn't need activating.
from oik-blocks.
With WordPress 5.0-beta5 but NOT Gutenberg the Github Issue block produces a Console log message and none of the oik-block blocks load.
Uncaught TypeError: Cannot read property 'TextControl' of undefined
at eval (index.js?7662:25)
at Object.<anonymous> (editor.blocks.js?ver=1542566507:595)
at __webpack_require__ (editor.blocks.js?ver=1542566507:20)
at eval (index.js?8193:1)
at Object.<anonymous> (editor.blocks.js?ver=1542566507:588)
at __webpack_require__ (editor.blocks.js?ver=1542566507:20)
at editor.blocks.js?ver=1542566507:63
at editor.blocks.js?ver=1542566507:66
I mentioned this on Slack and was told I needed to add dependencies on the script registration. I needed to add wp.components and wp.editor to make it work in native WordPress 5.0-beta5.
wp-editor needed for Editable used by the Person block.
from oik-blocks.
It turns out that the real problem was that my code was registering the editor blocks on the front end. This also caused a problem with Autoptimize. The fix is applied in https://github.com/bobbingwide/oik-blocks
from oik-blocks.
When responding to enqueue_block_editor_assets
the code currently checks if we’re doing_filter( ‘editor_replace’ )
. This test only works when Gutenberg is activated. The need for the test, to avoid enqueuing the blocks when loading the Classic editor, is no longer necessary. So the test should be removed.
from oik-blocks.
I noticed a major problem when WordPress SEO was activated.
Autosave never seemed to finish.
In the console log there was a 500 response occurring.
This was due to logic in oik_blocks_editor_scripts()
that was testing if the Classic Editor was being loaded. It seems that in conversion from Gutenberg to 5.0 the enqueue_block_editor_assets
action is called for requests to display the WordPress SEO metabox.
/wp-admin/post.php?meta_box=1&action=edit&classic-editor&post=31818
The logic should not fail in this instance. Either we update the check or simply remove the ( debugging ) call to the missing function gob()
.
from oik-blocks.
Gutenberg 4.8.0 was released on 7th/8th Jan 2019. WordPress 5.0.3 on 9th Jan.
from oik-blocks.
It's about time we switched from alpha versions to proper semantic numbering. The next version, delivering the Block info block will be 0.2.0.
This version won't be on WordPress.org since there are still many blocks that Need work.
from oik-blocks.
The table should be updated to reflect the status for all the blocks under development for oik-blocks and their operational status with Gutenberg 5.1.1 and WordPress 5.1
from oik-blocks.
Closing this as I'm now retesting the most recent version of the blocks with WordPress 5.9 and/or Gutenberg 12.3.2
from oik-blocks.
Related Issues (20)
- Improve the Block info block to display a single block using same format as block list HOT 1
- Since Gutenberg v8.8.0 oik-blocks doesn't list core-embed blocks HOT 4
- Block validation failed when using the block inserter HOT 2
- Dashicons not being enqueued for logged out users HOT 2
- Add styles to the block icon block ( oik-blocks/blockicon ) HOT 3
- Fatal error: Uncaught Error: Call to undefined function bw_get_field_names() HOT 1
- Add `oik-block/blockstyles` block to display information about a block's styling
- Add new Fields to the Fields block: post_date, post_modified and author_name HOT 1
- Uncaught Error: Call to undefined function is_plugin_active() HOT 3
- Update blocks to build using wp-scripts, register with block.json. Test with WordPress 6.5 HOT 8
- Fatal error: Uncaught Error: Call to undefined function bw_load_plugin_textdomain()
- Block list block shows multiple core/navigation-link variations for WordPress 5.8 but not 5.7.2 HOT 7
- Block list block not showing icons with Gutenberg 11.9.0 HOT 5
- Visibility issues for some icons HOT 4
- Icons for Qubely's blocks appear very large
- Enable easier copy to clipboard of block list text HOT 1
- blocklist - Don't display the current theme's template variations HOT 1
- WSOD editing Jetpack plugin on jetpack.wp.a2z and jetpack.wp-a2z.org. Jetpack 11.3.1 HOT 13
- Blocklist - Add "Determine updates to apply" toggle to improve the process of detecting block changes HOT 1
- Support PHP 8.1 and PHP 8.2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oik-blocks.