Make WordPress Core

Opened 19 years ago

Closed 19 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's profile markjaquith Owned by:
Milestone: 2.1 Priority: high
Severity: blocker Version: 2.1
Component: General Keywords: has-patch
Focuses: 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 19 years ago.
Patch for trunk

Download all attachments as: .zip

Change History (2)

@markjaquith
19 years ago

Patch for trunk

#1 @markjaquith
19 years ago

  • 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.