• I’ve been getting the following notices in my error log whenever loading the widgets page (or the Customizer):

    Deprecated: Non-static method DDW_Genesis_Featured_Page_Extras::assets() should not be called statically in /home/xxx/public_html/wp-includes/class-wp-hook.php on line 286

    Notice: genesis_get_additional_image_sizes is deprecated since version 2.5.0! Use wp_get_additional_image_sizes instead. in /home/xxx/public_html/wp-includes/functions.php on line 4435

    I resolved the second Notice by replacing genesis_get_additional_image_sizes with wp_get_additional_image_sizes in gfpe-widget-featured-page-extras.php lines 341 and 612; and gfpe-widget-featired-page-estras-forms.php line 78.

    For the Deprecated: Non-static method notice, I made the following changes in gfpe-widget-featured-page-extras.php
    Line 166: changed
    public function assets_loader() {
    to
    public static function assets_loader() {

    and line 166: changed
    public function assets() {
    to
    public static function assets() {

    This resolved the issue, but I’m not sure if this is the best approach. Any insight would be appreciated!

    Thanks,
    Sarah

    • This topic was modified 5 years, 6 months ago by brit77.
  • The topic ‘Deprecated code’ is closed to new replies.