• Please be advised of warnings in PHP 7.2:

    FILE: /wp-content/plugins/meteor-slides/includes/meteor-slides-settings.php
    -------------------------------------------------------------------------------------------------------
    FOUND 2 WARNINGS AFFECTING 2 LINES
    -------------------------------------------------------------------------------------------------------
     102 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
     152 | WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead
    -------------------------------------------------------------------------------------------------------
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Josh Leuze

    (@jleuze)

    Thanks for sharing this warning, I’ll be sure to fix this in the next plugin update!

    Thread Starter Malae

    (@malae)

    You marked this issue as resolved, which it is not. When do you expect to update this plugin?

    Thread Starter Malae

    (@malae)

    I would like to run PHP 7.2 without getting warnings. When do you expect to update this plugin?

    Thread Starter Malae

    (@malae)

    Hi Josh,

    Perhaps you are very busy and have not had time to update the code. I made the
    following changes and they seem to work ok, but my PHP is rather rusty. Can you check them and advise if ok?

    // Line 102:  while ( list( $meteor_key, $meteor_val ) = each( $meteor_item ) ) {   changed to remove WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead.
    Line 102:  foreach( $meteor_item as $meteor_key  => $meteor_val ) {
    // Line 152:  while ( list( $meteor_key, $meteor_val ) = each( $meteor_item ) ) {   changed to remove WARNING | Function each() is deprecated since PHP 7.2; Use a foreach loop instead.
    Line 152:  foreach( $meteor_item as $meteor_key  => $meteor_val ) {
    Plugin Author Josh Leuze

    (@jleuze)

    Hi, sorry for the delayed response. Thanks for sharing your code, that looks correct to me. I will get this updated in the next release for WordPress 5.0!

    Thread Starter Malae

    (@malae)

    Hi josh,

    No worries, glad my code is ok. Will await your update.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Warnings in PHP 7.2’ is closed to new replies.