Ticket #3461 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

wp_check_for_changed_slugs is in admin-functions.php, but may be called in other contexts

Reported by: markjaquith Assigned to: anonymous
Priority: high Milestone: 2.1
Component: General Version: 2.1
Severity: blocker Keywords: has-patch
Cc:

Description

Saw this on the other Mark's blog while submitting a comment.

Warning: call_user_func_array() [function.call-user-func-array]: First argumented is expected to be a valid callback, 'wp_check_for_changed_slugs' was given in /home/tamba2/public_html/T2/wp-includes/plugin.php on line 123

That function is called on edit_post. He may have a plugin that is calling that hook in other contexts. We should move that function out of admin-functions.php

Attachments

move_slug_function.diff (2.3 kB) - added by markjaquith on 12/10/06 17:16:32.
Patch for trunk

Change History

12/10/06 17:16:32 changed by markjaquith

  • attachment move_slug_function.diff added.

Patch for trunk

12/10/06 17:18:00 changed by markjaquith

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

(In [4637]) Move wp_check_for_changed_slugs() to post.php so it can be called in non-admin contexts. fixes #3461