Git Product home page Git Product logo

Comments (6)

bobbingwide avatar bobbingwide commented on August 17, 2024

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.

bobbingwide avatar bobbingwide commented on August 17, 2024

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.

bobbingwide avatar bobbingwide commented on August 17, 2024

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.

bobbingwide avatar bobbingwide commented on August 17, 2024

Well, this issue's not closed so here's a new problem.
image

It appears that the link from oik-block/blocklist to create a new block no longer works the first time it's clicked.

https://blocks.wp.a2z/wp-admin/admin-ajax.php?action=oiksc_create_or_update_block&title=Comment%20Author%20Avatar&name=core%2Fcomment-author-avatar&description=Add%20the%20avatar%20of%20this%20comment%27s%20author.&component=&keywords=&category=theme&icon=

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.

bobbingwide avatar bobbingwide commented on August 17, 2024

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.

  1. 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.
  2. number_posts should have been numberposts. I don't believe this was affecting the results. But best to correct.

from oik-shortcodes.

bobbingwide avatar bobbingwide commented on August 17, 2024

Released in v1.41.2

from oik-shortcodes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.