bobbingwide / oik-shortcodes

Shortcode, block and API server
https://www.oik-plugins.com/oik-plugins/oik-shortcode-server/
GNU General Public License v2.0
1 stars 0 forks source link

oik_query_component_by_ID produces Allowed memory exhausted Fatal error when ID=0 #45

Closed bobbingwide closed 7 years ago

bobbingwide commented 7 years ago

oik_query_component_by_ID does not properly handle a zero value for post ID, causing it to go recursive and fail by running out of memory.

Example where it fails: