WordPress.org

Forums

All in One SEO Pack
[PATCH] undefined variable: has_ut (2 posts)

  1. flynsarmy
    Member
    Posted 2 years ago #

    When visiting page 2 of my site I was getting the warning

    Notice: Undefined variable: has_ut in /path/to/wp-content/plugins/all-in-one-seo-pack/aioseop.class.php on line 567

    which was this line:

    if ($has_ut) {

    Just change it to

    if (!empty($has_ut)) {

    http://wordpress.org/extend/plugins/all-in-one-seo-pack/

  2. transom
    Member
    Posted 2 years ago #

    Actually - the variable $has_ut is created in another function using
    $has_ut = function_exists('user_trailingslashit');

    Since $has_ut is only used on line 567 in yoast_get_paged of All_in_One_SEO_Pack, it might be better to use this:
    if (function_exists('user_trailingslashit'))

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • All in One SEO Pack
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.