Comments (4)
I developed a prototype version that uses bw_get_posts to find the related blocks for a plugin. When applied to the full list of plugins it appeared quite slow. Consider using a query against post_meta.
Select count(*) from $wpdb->postmeta
where meta_key = ‘_oik_sc_plugin’ and meta_value = %d
Where the meta_value is the ID of the oik-plugin.
It needs to join the post_id of postmeta to posts where the post type is ‘block’, since _oik_sc_plugin
is the noderef for a number of different posts.
from oik-shortcodes.
This is now released in v1.37.0 to wp-a2z.org.
See
from oik-shortcodes.
The logic using oiksc_maybe_get_current_post_id()
produced the wrong results on the home page.
Revert to using bw_current_post_id()
and only call oiksc_count_blocks_directly()
when the $id is set to other than 0.
from oik-shortcodes.
This is now active on blocks.wp-a2z.org so can be closed.
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
- Delete temporary files starting oikscloa from the /tmp folder to avoid getting disk full HOT 1
- Add support for block variations HOT 6
- 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.