Ticket #3186 (closed enhancement: fixed)

Opened 5 years ago

Last modified 5 years ago

Core shouldn't use deprecated functions

Reported by: Nazgul Owned by: anonymous
Priority: normal Milestone: 2.1
Component: General Version: 2.1
Severity: normal Keywords:
Cc:

Description

If I look at deprecated.php I see a lot of functions still being used in the core. Isn't the point of deprecating them that we shouldn't be using them anymore?

Here's a list of the functions (and between brackets the files that use them). start_wp (wp-atom.php, wp-rss.php, wp-rss2.php, wp-admin/edit.php, wp-admin/export.php, wp-content/themes/clasdic/comment-popup.php and wp-content/themes/default/comment-popup.php)

wp_set_post_cats (wp-admin/import/dotclear.php and wp-admin/import/textpattern.php)

get_author_link (wp-includes/feed.php)

link_pages (wp-content/themes/default/attachment.php, wp-content/themes/default/page.php and wp-content/themes/default/single.php)

Attachments

3186-get_author_link.diff Download (512 bytes) - added by Nazgul 5 years ago.
3186-link_pages.diff Download (1.8 KB) - added by Nazgul 5 years ago.
3186-wp_set_post_cats.diff Download (1.0 KB) - added by Nazgul 5 years ago.

Change History

Nazgul5 years ago

Nazgul5 years ago

Nazgul5 years ago

I've created patches for get_author_link, link_pages and wp_set_post_cats, but I'm afraid that fixing the calls to start_wp is a little too advanced for my PHP skills.

Anybody want to help me with that, so we can close this issue?

comment:2   ryan5 years ago

  • Status changed from new to closed
  • Resolution set to fixed

(In [4264]) Don't use deprecated functions. Props Nazgul. fixes #3186

Nazgul, I have opened Ticket:3188 for "Shouldn't use deprecated function start_wp"

Note: See TracTickets for help on using tickets.