WordPress.org

Forums

WP Title 2
debug mode throws error and notice (1 post)

  1. 3r1c
    Member
    Posted 1 year ago #

    Thank you for this plugin. It works great and we have it active on many of our sites.

    I did notice some errors though in debug mode and have resolved(?) them with the following two edits:

    Plugin version: 3.6
    File: wp-title-2.php
    Line: 67
    I've wrapped the if statement:
    if ($_POST['action']=='update_wp_title_2')
    with this if statement:
    if (isset($_POST['action']))
    which solves an undefined index issue.

    Line: 93
    I've changed this line:
    load_plugin_textdomain('wp_title_2', PLUGINDIR.'/'.dirname(plugin_basename(__FILE__)).'/lang');
    to:
    load_plugin_textdomain('wp_title_2', false, dirname(plugin_basename(__FILE__)).'/lang/');
    since $abs_rel_path has been deprecated and is no longer functional(?)

    Please correct me if I'm mistaken.

    http://wordpress.org/extend/plugins/wp-title-2/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags