wpseek / wpseek-web

This repository is currently only used for issue tracking for wpseek.com
https://wpseek.com/
1 stars 0 forks source link

a way to list deprecated functions #34

Open joyously opened 5 years ago

joyously commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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.