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

Display memory_limit using [wp] shortcode #8

Closed
bobbingwide opened this issue Jul 18, 2016 · 1 comment
Closed

Display memory_limit using [wp] shortcode #8

bobbingwide opened this issue Jul 18, 2016 · 1 comment
Assignees

Comments

@bobbingwide
Copy link
Owner

bobbingwide commented Jul 18, 2016

Too low a memory limit and your site may crash in a big heap.
If you don't have phpinfo.php installed then you may not be able to find the front end memory limit all that easily.

Proposal

Extend the [wp] shortcode to display the memory limit.

Solution

Add a parameter called m which can be used to display the currently defined memory limit.
Example: [wp v p m] or [wp v m=y]

Notes:

  • Use of the parameter requires you to request the version ( v parameter ).
  • The value displayed may not be the memory_limit used in all instances; plugins and themes can alter it.
@bobbingwide
Copy link
Owner Author

This can be closed. The [wp] shortcode now has a block equivalent; oik-bbw/wordpress, released in v1.34.0.

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