Title: PHP 8 &#8211; PHP Deprecated: usort()
Last modified: May 31, 2022

---

# PHP 8 – PHP Deprecated: usort()

 *  Resolved [dimal](https://wordpress.org/support/users/dimalifragis/)
 * (@dimalifragis)
 * [4 years ago](https://wordpress.org/support/topic/php-8-php-deprecated-usort/)
 * Switching to PHP 8, we get these:
 * [31-May-2022 17:24:54 UTC] PHP Deprecated: usort(): Returning bool from comparison
   function is deprecated, return an integer less than, equal to, or greater than
   zero in /home/wp-content/plugins/geodirectory/includes/general-functions.php 
   on line 1429
 * Thanks

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Paolo](https://wordpress.org/support/users/paoltaia/)
 * (@paoltaia)
 * [4 years ago](https://wordpress.org/support/topic/php-8-php-deprecated-usort/#post-15696492)
 * Hi [@dimalifragis](https://wordpress.org/support/users/dimalifragis/), thanks
   for reporting this, we will fix it asap and report once it’s done.
 * Thanks again,
 *  Thread Starter [dimal](https://wordpress.org/support/users/dimalifragis/)
 * (@dimalifragis)
 * [4 years ago](https://wordpress.org/support/topic/php-8-php-deprecated-usort/#post-15696621)
 * No problem, since it seems to work fine….
 *  Plugin Author [Paolo](https://wordpress.org/support/users/paoltaia/)
 * (@paoltaia)
 * [4 years ago](https://wordpress.org/support/topic/php-8-php-deprecated-usort/#post-15699717)
 * Hi [@dimalifragis](https://wordpress.org/support/users/dimalifragis/),
 * this has been fixed and will be in the next release. If you need to patch it 
   you can find the changes here: [https://github.com/AyeCode/geodirectory/pull/2111/commits/e207caa9d029543f731846a031e74f8df1ab8833](https://github.com/AyeCode/geodirectory/pull/2111/commits/e207caa9d029543f731846a031e74f8df1ab8833)
 * Thanks,
 *  Thread Starter [dimal](https://wordpress.org/support/users/dimalifragis/)
 * (@dimalifragis)
 * [4 years ago](https://wordpress.org/support/topic/php-8-php-deprecated-usort/#post-15699731)
 * Elementor is mentioned, still i do not use Elementor at all.
 * Just FYI.
 *  Plugin Author [Paolo](https://wordpress.org/support/users/paoltaia/)
 * (@paoltaia)
 * [4 years ago](https://wordpress.org/support/topic/php-8-php-deprecated-usort/#post-15699739)
 * > lementor is mentioned, still i do not use Elementor at all.
 * I’m not sure I understand what you mean. Where is it mentioned?
 *  Thread Starter [dimal](https://wordpress.org/support/users/dimalifragis/)
 * (@dimalifragis)
 * [4 years ago](https://wordpress.org/support/topic/php-8-php-deprecated-usort/#post-15699802)
 * Your LINK
    [https://github.com/AyeCode/geodirectory/pull/2111/commits/e207caa9d029543f731846a031e74f8df1ab8833](https://github.com/AyeCode/geodirectory/pull/2111/commits/e207caa9d029543f731846a031e74f8df1ab8833)
 * says “Elementor”. Wrong link?
 *  Plugin Author [Paolo](https://wordpress.org/support/users/paoltaia/)
 * (@paoltaia)
 * [4 years ago](https://wordpress.org/support/topic/php-8-php-deprecated-usort/#post-15699815)
 * Our plugin is compatible with Elementor and the code we use to make it compatible,
   was generating this warning. It doesn’t matter if you are using Elementor or 
   not.
 * Thanks,

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘PHP 8 – PHP Deprecated: usort()’ is closed to new replies.

 * ![](https://ps.w.org/geodirectory/assets/icon-256x256.jpg?rev=2778361)
 * [GeoDirectory - WP Business Directory Plugin and Classified Listings Directory](https://wordpress.org/plugins/geodirectory/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/geodirectory/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/geodirectory/)
 * [Active Topics](https://wordpress.org/support/plugin/geodirectory/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/geodirectory/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/geodirectory/reviews/)

## Tags

 * [php 8](https://wordpress.org/support/topic-tag/php-8/)

 * 7 replies
 * 2 participants
 * Last reply from: [Paolo](https://wordpress.org/support/users/paoltaia/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/php-8-php-deprecated-usort/#post-15699815)
 * Status: resolved