WordPress.org

Ready to get started?Download WordPress

Forums

Twenty Eleven Theme Extensions
[Twenty Eleven Theme Extensions][Fix] for a number of PHP notices (2 posts)

  1. jrf
    Member
    Posted 2 years ago #

    L.S.,

    Thanks for this great plugin. I really like it a lot.

    The plugin however does throw a number of PHP notices/errors in WP_DEBUG mode. Would be great if you could fix those.

    Files & line numbers refer to those found in the latest public version of the plugin, v1.2.

    File moztheme2011admin.php

    line 150:
    return $_REQUEST['page'] == $this->themeOptionsSlug;
    change to:
    return ( isset( $_REQUEST['page'] ) && $_REQUEST['page'] == $this->themeOptionsSlug );

    File moztools/mozadmin.php

    line 32:
    protected $adminCapability = 8;
    change to:
    protected $adminCapability = 'edit_theme_options';

    line 162:
    return $_REQUEST['page'] == $this->adminMenuSlug;
    change to:
    return ( isset( $_REQUEST['page'] ) && $_REQUEST['page'] == $this->adminMenuSlug );

    line 228:
    return '<tr valign="top"><th scope="row">'.$rowTitle.($help !== false ? '<img id="'.$idHelp.'" src="'.$this->pluginUrl.'/images/help_16.png" title="Click here for help">' : '').'</th><td>'.$content.'</td></tr>';
    change to:
    return '<tr valign="top"><th scope="row">'.$rowTitle.($idHelp !== false ? '<img id="'.$idHelp.'" src="'.$this->pluginUrl.'/images/help_16.png" title="Click here for help">' : '').'</th><td>'.$content.'</td></tr>';

    Hope this help!

    Smile,
    Juliette

    http://wordpress.org/extend/plugins/twenty-eleven-theme-extensions/

  2. boxcarpress
    Member
    Posted 2 years ago #

    Thanks for posting this! I hadn't caught all of them when I found this post.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic