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

Import global WP function #8

Closed
szepeviktor opened this issue Apr 14, 2020 · 2 comments · Fixed by #9
Closed

Import global WP function #8

szepeviktor opened this issue Apr 14, 2020 · 2 comments · Fixed by #9
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@szepeviktor
Copy link
Contributor

e.g. in CachePool

use function set_transient;
use function delete_transient;
use function get_transient;
use function get_option;

What do you think about it?

@XedinUnknown XedinUnknown added the enhancement New feature or request label Apr 15, 2020
@XedinUnknown XedinUnknown added this to the 0.1 milestone Apr 15, 2020
@XedinUnknown
Copy link
Member

Function import is a good way to disambiguate function names, and make it obvious from the start what is being used throughout the file.

If you would like to do this, I'd welcome a PR :)

@szepeviktor
Copy link
Contributor Author

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants