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

a way to list deprecated functions #34

Open
joyously opened this issue May 17, 2019 · 2 comments
Open

a way to list deprecated functions #34

joyously opened this issue May 17, 2019 · 2 comments

Comments

@joyously
Copy link

Using the Code Reference search, I can look for _deprecated_function and then the list of "Used by" to show me all the deprecated functions. (currently over 300) This is great except that they aren't organized in any way. It would be awesome to have that list by release, so I can see what was deprecated when.

My use case is to keep the Theme Check plugin up to date. (used for themes being uploaded to the WP repo)

@oliverschloebe
Copy link
Member

Hi joyously, would an API endpoint on https://wpseek.com/api/ suit your needs, e.g.

{
    ...
    "4.9.0": [
        "wp_ajax_press_this_save_post",
        ...

Please note that wpseek currently doesn't hold any WP classes so the API endpoint will most likely not include all 300+ functions/methods listed in the official Code Reference.

@joyously
Copy link
Author

I'm not interested in using the API myself. I'm just saying what would be nice to have.
An interface like the Plugin Doctor would be great. Just one click and you see a list of deprecated functions per release -- that was my thought.
I searched the code yesterday for _deprecated_function and built a manual list by using the parameter which is version number. Unfortunately, the parameter for function being deprecated is usually specified as __FUNCTION__, so it's not as straight forward as I wanted. The Code Reference does give that list of functions though.
I'm just wishing for an automated way to merge the two.

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

2 participants