dartiss / plugins-list

WordPress plugin to insert a list of the Wordpress plugins you are using into any post/page.
https://wordpress.org/plugins/plugins-list/
GNU General Public License v2.0
7 stars 6 forks source link

error in PHP 5.6.33-0+deb8u1 #20

Closed b4zz4 closed 6 years ago

b4zz4 commented 6 years ago
        // Sort the plugin array if required in author sequence
        if ( 'true' === $by_author ) {
                usort( $plugins, function( $a, $b ) {
                        return strtoupper( $a['Author'] ) <=> strtoupper( $b['Author'] );
                });
        }

I use it in https://4232.cf/software-libre/

dartiss commented 6 years ago

Hi,

No issue here - the latest version, as per the README, doesn't support PHP 5.6 any longer.

Please see https://wordpress.org/support/topic/issue-with-version-2-4-2-onwards/ and https://artiss.blog/2018/07/my-wordpress-plugins-and-php-support/

b4zz4 commented 6 years ago

without this work

/      if ( 'true' === $by_author ) {                 uasort( $plugins, function( $a, $b ) {                         return strtoupper( $a['Author'] ) <=> strtoupper( $b['Author'] );                 });         } /

El 09/07/18 a las 04:14, David Artiss escribió:

Hi,

No issue here - the latest version, as per the README, doesn't support PHP 5.6 any longer.

Please see https://wordpress.org/support/topic/issue-with-version-2-4-2-onwards/ and https://artiss.blog/2018/07/my-wordpress-plugins-and-php-support/

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dartiss/plugins-list/issues/20#issuecomment-403382439, or mute the thread https://github.com/notifications/unsubscribe-auth/AAnS-RU5KYDDgJozLrdNNw9H0Sgau3_yks5uEwLpgaJpZM4VGXvC.

-- maquinaslibres.tk http://maquinaslibres.tk 4232.cf http://4232.cf

dartiss commented 6 years ago

Yes, that's right - without that code it will work, albeit without the author sorting option.