WordPress Bug 902

Everyone using plugins with WordPress 1.5 should read bug #902, and apply the patch.

Without this, the admin plugin hooks will break, and only allow you to manage the last-added plugin.

To fix this problem, edit wp-admin/menu-header.php. Find the section that looks like this (starting on line 43):

$page_hook = get_plugin_page_hook($item[2], $parent_file);
if ( $page_hook )

Change it to look like this:

$menu_hook = get_plugin_page_hook($item[2], $parent_file);
if ( $menu_hook )

9 Responses to WordPress Bug 902

  1. 491 Carina 2005-04-12 15:49:59

    Should I do this, or is it already integrated in the install I downloaded Friday?

  2. 635 William’s Blog » Blog Archive » WordPress 外掛備忘錄 2005-05-04 12:12:11

    [...]

  3. 622 William’s Blog » Blog Archive » WordPress 升級至 1.5.1 2005-05-10 04:44:15

    [...]

  4. 1449 Ruby Sinreich 2005-08-31 15:14:54

    Should I have to do this with WP 1.5.2? I don't think so but I am having trouble the options for yours and another plug in not displaying on http://indyweekblogs.com/scan

    Line 43-46 in my menu-header.php file looks like this:
    $menu_hook = get_plugin_page_hook($item[2], $parent_file); if (file_exists(ABSPATH . "wp-content/plugins/{$item[2]}") || ! empty($menu_hook)) {

  5. 1450 skippy 2005-08-31 15:20:56

    Ruby: WordPress 1.5.2 should not require this fix. What's the other plugin you're trying to use?

  6. 1451 Ruby Sinreich 2005-08-31 15:23:09

    OMG, I have a clue! (Alert the press...)

    Is it possible that I don't see the options because I am only a Level 8 user?

  7. 1452 Ruby Sinreich 2005-08-31 15:24:14

    Sorry, didn't see your response. The other plugin is Ryan's contact form. http://ryanduff.net/projects/wp-contactform/

    As with yours, everything seems to be working, but I can't see the option tabs to configure it.

  8. 1447 skippy 2005-08-31 15:36:15

    Ruby: I think you figured it out. Most of my plugins assume user level 10. Feel free to adjust the user level checks in the code from 10 to 8, if that's the most expeditious solution.

  9. 1443 Ruby Sinreich 2005-08-31 15:57:47

    Cool. I know I'm able to access the Subscribe2 options on one of my other blogs when I'm only logged in as a 9. So I will see if I can get promoted (lowly consultant that I am).

Leave a Reply



About

Brewer philosopher.

User