Title: Deprecated code
Last modified: August 27, 2019

---

# Deprecated code

 *  [brit77](https://wordpress.org/support/users/brit77/)
 * (@brit77)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/deprecated-code-13/)
 * 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 6 years, 9 months ago by [brit77](https://wordpress.org/support/users/brit77/).

The topic ‘Deprecated code’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/genesis-featured-page-extras_7b47c2.
   svg)
 * [Genesis Featured Page Extras](https://wordpress.org/plugins/genesis-featured-page-extras/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/genesis-featured-page-extras/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/genesis-featured-page-extras/)
 * [Active Topics](https://wordpress.org/support/plugin/genesis-featured-page-extras/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/genesis-featured-page-extras/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/genesis-featured-page-extras/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [brit77](https://wordpress.org/support/users/brit77/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/deprecated-code-13/)
 * Status: not resolved