0

After upgrading from WordPress 3.5.2 to 3.6.1, with define('WP_DEBUG', true); a site of mine's showing warning for some deprecated codes throughout the site. Some of 'em are generated from my codes, and some of 'em are from plugins I'm using.

In some of the messages, the debug process shows me what function to use instead, but in some cases, it's not.

So, it becomes difficult for me to find a new code that replaces the deprecated one.

Note: I'm a Wikipedian, and a Codex editor also.
Suppose, in Codex we can find all the deprecated codes here in this category. Some of them are well cited, with the new codes that replaces the deprecated one, but some of 'em are not, i.e.: this one (as on this revision).

With this scenario, we know that some of the functions are replaced with another functions, while some other functions are replaced by a parameter of another different function. So, it's a bit unpredictable which one can be used instead on this one.

In this scenario, I think we need to find a place where we can sort all the deprecated functions with their new solutions, in a list. If such a thing is not available just now, we can make a separate page in Codex.

Edit

I may not clear with the motive of the question, I want a list like below:

+===========================+==============================+
|       DEPRECATED CODE     |            NEW CODE          |
+===========================+==============================+
|       `get_usermeta`      |         `get_user_meta`      |
| `register sidebar widget` | `wp_register_sidebar_widget` |
|            ...            |              ...             |
+===========================+==============================+
  • 2
    This reads more like call to action than question. :) There probably isn't one. New function reference for wordpress org is being developed, go suggest it as a feature there? – Rarst Sep 15 '13 at 11:22
  • @Rarst: This reads more like call to action than question. - may be u r ri8. :) and go suggest it, can we have a link please? – Mayeenul Islam Sep 15 '13 at 11:25
  • developer.WordPress.org Specification – Rarst Sep 15 '13 at 11:26
  • 1
    upgrading from WordPress 5 to 6.1 did you mean from 3.5.x to 3.6.1? – Pothi Kalimuthu Sep 15 '13 at 14:59
  • @PothiKalimuthu: Thanks for the clarification. I've corrected that now. – Mayeenul Islam Sep 16 '13 at 6:36
0

The deprecated functions are listed in the following files.

/wp-includes/deprecated.php
/wp-admin/includes/deprecated.php
/wp-includes/pluggable-deprecated.php
/wp-includes/ms-deprecated.php
/wp-admin/includes/ms-deprecated.php

As to whether the Codex is updated with the above I have no idea, but like always.. when in doubt look into the actual core code. Use an IDE or text editor that has a good find in files search, so you can quickly figure out what is going on over the whole codebase.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.