WordPress.org

Ready to get started?Download WordPress

Forums

Keyword to URL
[resolved] Works but I've discovered a warning message. (4 posts)

  1. wholmes
    Member
    Posted 2 years ago #

    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/

  2. mcngraphics
    Member
    Plugin Author

    Posted 2 years ago #

    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

  3. mcngraphics
    Member
    Plugin Author

    Posted 2 years ago #

    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

  4. wholmes
    Member
    Posted 2 years ago #

    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. :-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic