Title: [PATCH] undefined variable: has_ut
Last modified: August 20, 2016

---

# [PATCH] undefined variable: has_ut

 *  [flynsarmy](https://wordpress.org/support/users/flynsarmy/)
 * (@flynsarmy)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/patch-undefined-variable-has_ut/)
 * 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/](http://wordpress.org/extend/plugins/all-in-one-seo-pack/)

Viewing 1 replies (of 1 total)

 *  [transom](https://wordpress.org/support/users/transom/)
 * (@transom)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/patch-undefined-variable-has_ut/#post-3516696)
 * 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'))`

Viewing 1 replies (of 1 total)

The topic ‘[PATCH] undefined variable: has_ut’ is closed to new replies.

 * ![](https://ps.w.org/all-in-one-seo-pack/assets/icon.svg?rev=2443290)
 * [All in One SEO – Powerful SEO Plugin to Boost SEO Rankings & Increase Traffic](https://wordpress.org/plugins/all-in-one-seo-pack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-seo-pack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-seo-pack/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-seo-pack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-seo-pack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-seo-pack/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [transom](https://wordpress.org/support/users/transom/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/patch-undefined-variable-has_ut/#post-3516696)
 * Status: not resolved