Un utilisateur a demandé 👇

Ce plugin a quelques mises en garde lorsqu’il est utilisé avec PHP 7 :

Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; wassupOptions has a deprecated constructor in <b>/xxx/wp-content/plugins/wassup/lib/wassup.class.php</b> on line 38

Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; Wassup_Widget has a deprecated constructor in <b>/xxx/wp-content/plugins/wassup/widgets/widgets.php</b> on line 51

Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; wassup_onlineWidget has a deprecated constructor in <b>/xxx/wp-content/plugins/wassup/widgets/widgets.php</b> on line 196

Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; wassup_topstatsWidget has a deprecated constructor in <b>/xxx/wp-content/plugins/wassup/widgets/widgets.php</b> on line 364

Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; wassup_pagination has a deprecated constructor in <b>/xxx/wp-content/plugins/wassup/lib/main.php</b> on line 29

Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; wDetector has a deprecated constructor in <b>/xxx/wp-content/plugins/wassup/lib/main.php</b> on line 179

Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; WassupItems has a deprecated constructor in <b>/xxx/wp-content/plugins/wassup/lib/main.php</b> on line 1482

Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; UADetector has a deprecated constructor in <b>/xxx/wp-content/plugins/wassup/lib/uadetector.class.php</b> on line 45

Vous devriez __construct() Méthode de remplacement du constructeur de style PHP4 pour les classes :

Dépréciation des constructeurs de style PHP4 dans WordPress 4.3

Ce sujet a été modifié il y a 2 ans et 12 mois par.


(@helened)

il y a 2 ans, 12 mois

Merci pour tes commentaires. Une mise à jour pour corriger ces bugs PHP7 sera bientôt disponible.

Cela a-t-il résolu votre problème ?

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *