Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add [guts] logic into the oik-bbw/wp block #39

Open
bobbingwide opened this issue May 11, 2021 · 1 comment
Open

Add [guts] logic into the oik-bbw/wp block #39

bobbingwide opened this issue May 11, 2021 · 1 comment
Assignees

Comments

@bobbingwide
Copy link
Owner

bobbingwide commented May 11, 2021

Requirement

  • replace the [guts] shortcode from oik-block with the eqiuvalent logic in a block

Proposed solution

  • Enhance the oik-bbw/wp block to call the server logic for the guts shortcode when the attribute called g is set.
  • No need to remove the code from the oik-block plugin, just don't activate oik-block.

Note: This is a QAD solution.
The original code uses text fields for the options to display version, PHP version and memory.
The new option to display Gutenberg information is also implemented as a string.

It's only really needed to assist problem determination, being performed immediately or in the future.

In a future version the attributes would be better implemented as toggles, with logic to convert the boolean variables to the attributes the shortcode functions expect.

@bobbingwide
Copy link
Owner Author

When tested as a standalone plugin ( on https://cwiccer.com) there were a couple of problems with functions not being found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant