Comments (6)
I've changed the Block CPT so that it's hierarchical.
I've noticed that when I make a selection from the Parent Page: select list in the Page Attributes panel, I get a 404 in response to https://s.b/wordpress/wp-json/wp/v2/pages/1748
.
This request appears to be coming from jQuery.js
Note: 1748 is the correct ID of the parent but it's not a pages
, it should be block
.
https://s.b/wordpress/wp-json/wp/v2/block/1748
The same thing happens for the File CPT.... which has been hierarchical for a long time now.
from oik-shortcodes.
New logic needs to be developed to create/update a block variation. This requires a co-requisite change in the blocklist
block to add the additional query arg called variation
See bobbingwide/oik-blocks/issues/39
from oik-shortcodes.
As I see it there two options for recording the information in posts:
...
2. Create block variations as children of the parent block.
Examples of titles and permalinks for the WordPress variation of the Social link block
block | permalink | title |
---|---|---|
parent | social-icon-core-social-link | Social Icon - core/social-link |
variation | social-icon-core-social-link/wordpress-core-social-link | WordPress - core/social-link |
from oik-shortcodes.
Well, this issue's not closed so here's a new problem.
It appears that the link from oik-block/blocklist to create a new block no longer works the first time it's clicked.
Creating Comment Author Avatar - core/comment-author-avatar: : 4017 Created: 8779 Updating core/comment-author-avatar theme Block does not exist: core/comment-author-avatar It needs to be created first core/comment-author-avatarComment Author AvatarAdd the avatar of this comment's author.
Clicking on the link a second time results in
Updating core/comment-author-avatar theme UpdatingComment Author Avatar - core/comment-author-avatarComment Author Avatar - core/comment-author-avatar Comment Author Avatar - core/comment-author-avatar Array ( ) Array ( [0] => 648 ) core/comment-author-avatarComment Author AvatarAdd the avatar of this comment's author.[Edit]
from oik-shortcodes.
It appears that the link from oik-block/blocklist to create a new block no longer works the first time it's clicked.
The changes seem to have uncovered a couple of issues with the SQL being run.
- I needed to add
exclude=-1
since the newly created post was not being found. bw_get_posts() automatically adds an exclude parameter for the current post ID. number_posts
should have beennumberposts
. I don't believe this was affecting the results. But best to correct.
from oik-shortcodes.
Released in v1.41.2
from oik-shortcodes.
Related Issues (20)
- Cannot skip a file that fails to parse HOT 1
- Catchable fatal error during restart after out of memory HOT 1
- Fatal error: Cannot use "self" when no class scope is active HOT 1
- Add Blocks Catalogued virtual field to display the number of blocks catalogued for a plugin HOT 4
- Delete temporary files starting oikscloa from the /tmp folder to avoid getting disk full HOT 1
- oik_get_the_excerpt returning incorrect results in Full Site Editing HOT 1
- Parse error: syntax_error, unexpected ';', expecting '(' in /tmp/oikscloae0qwnk on line 2 HOT 5
- Allow comments for Blocks and Block examples CPTs
- Support PHP 8.1 and PHP 8.2 HOT 4
- [blocks] shortcode - extend to support links to block variations HOT 1
- Remove compatible with shortcake field HOT 1
- Notice: Block type is already registered running oikwp oik-shortcodes.php HOT 2
- Extend the dynamic implementation of `oik-block/blocklist` to "Determine updates to apply" HOT 3
- Warning: Only the first byte will be assigned to the string offset in shortcodes/oik-api-importer.php line 1864 HOT 2
- Cannot parse Jetpack 11.5.1 HOT 4
- Support PHP 8.1 and PHP 8.2 HOT 3
- Block template: Replace oik-blocks/fields for featured image with core/post-featured-image HOT 1
- Undefined array key "category" in oik-block-determine-updates.php line 104
- Disable dynamic parsing of code where not required
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-shortcodes.