Opened 6 years ago

Closed 6 years ago

#3461 closed defect (bug) (fixed)

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

Reported by: markjaquith Owned by: 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 (1)

move_slug_function.diff (2.3 KB) - added by markjaquith 6 years ago.
Patch for trunk

Download all attachments as: .zip

Change History (2)

Patch for trunk

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

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

Note: See TracTickets for help on using tickets.