Support » Plugin: Keyword to URL » [Plugin: Keyword to URL] Works but I've discovered a warning message.

  • Resolved wholmes

    (@wholmes)


    Nice plugin, it get’s right to the point. I notice this warning while running the P3 Plugin Profiler. Although from what I can tell the plugin is working I thought I’d pass this info along…

    Warning usort() [function.usort]: Array was modified by user comparison function in /path-to/keyword-to-url.php on line 101

    http://wordpress.org/extend/plugins/keyword-to-url/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author MBird

    (@mcngraphics)

    Hi —

    Thank you for using the plugin and for the feedback!

    I am not sure why P3 lists this as a warning. The usort function on line 101 sorts the $ba array using the callback in line 135 (compareOrder). The behavior P3 reported is the expected behavior (that is, usort sorted the array using a user comparison function).

    Best regards!
    Matt

    Plugin Author MBird

    (@mcngraphics)

    Hi —

    I did some investigating and found the reason for the usort warning.

    Warning messages like this: Warning: usort() [function.usort]: Array was modified by the user comparison function are due to a known php bug. See php bug #50688 for more information. This warning does not affect the functionality of your site and it is not visible to your users.
    Reference: http://wordpress.org/extend/plugins/p3-profiler/faq/

    Thank you again for using the plugin and for the feedback!

    Best regards!
    Matt

    That’s cool thanks for looking into it. I totally missed that info on the P3 page. One less bug to squash… lol!
    You’ve just received 5 stars my friend. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Keyword to URL] Works but I've discovered a warning message.’ is closed to new replies.