Ticket #3186 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

Core shouldn't use deprecated functions

Reported by: Nazgul Assigned to: 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 (0.5 kB) - added by Nazgul on 10/02/06 16:18:29.
3186-link_pages.diff (1.8 kB) - added by Nazgul on 10/02/06 16:18:43.
3186-wp_set_post_cats.diff (1.0 kB) - added by Nazgul on 10/02/06 16:18:56.

Change History

10/02/06 16:18:29 changed by Nazgul

  • attachment 3186-get_author_link.diff added.

10/02/06 16:18:43 changed by Nazgul

  • attachment 3186-link_pages.diff added.

10/02/06 16:18:56 changed by Nazgul

  • attachment 3186-wp_set_post_cats.diff added.

10/02/06 16:22:17 changed by Nazgul

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?

10/02/06 18:03:38 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

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

10/02/06 18:53:01 changed by foolswisdom

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