• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

PHP 7.3 compatibility warnings for Genesis code

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › PHP 7.3 compatibility warnings for Genesis code

This topic is: resolved

Tagged: deprecated functions, PHP warning

  • This topic has 4 replies, 3 voices, and was last updated 4 years, 12 months ago by LeviaDesign.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • June 23, 2020 at 2:53 pm #499494
    LeviaDesign
    Member

    Hi,

    I ran a PHP 7.3 compatibility test and found the below warnings for the Genesis code in the files 'genesis/lib/admin/menu.php' and 'genesis/lib/functions/layout.php':

    FILE: /home/animalch/public_html/wp-content/themes/genesis/lib/functions/layout.php
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 6 WARNINGS AFFECTING 6 LINES
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
     614 | WARNING | Function name "__genesis_return_content_sidebar" is discouraged; PHP has reserved all method names with a double underscore prefix for future use.
     629 | WARNING | Function name "__genesis_return_sidebar_content" is discouraged; PHP has reserved all method names with a double underscore prefix for future use.
     644 | WARNING | Function name "__genesis_return_content_sidebar_sidebar" is discouraged; PHP has reserved all method names with a double underscore prefix for future use.
     659 | WARNING | Function name "__genesis_return_sidebar_sidebar_content" is discouraged; PHP has reserved all method names with a double underscore prefix for future use.
     674 | WARNING | Function name "__genesis_return_sidebar_content_sidebar" is discouraged; PHP has reserved all method names with a double underscore prefix for future use.
     689 | WARNING | Function name "__genesis_return_full_width_content" is discouraged; PHP has reserved all method names with a double underscore prefix for future use.
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    
    FILE: /home/animalch/public_html/wp-content/themes/genesis/lib/admin/menu.php
    --------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------------------------
     150 | WARNING | Global with anything other than bare variables is discouraged since PHP 7.0. Found ${$admin_object_name}
    --------------------------------------------------------------------------------------------------------------------------

    I wanted to know if the Genesis team is aware of these deprecated codes and if it is planning to update them.

    Thanks for your help.

    Rana

    June 23, 2020 at 7:40 pm #499496
    AnitaC
    Keymaster

    There's an open issue on this on Github.


    Need help with customization or troubleshooting? Reach out to me.

    June 24, 2020 at 5:50 am #499499
    Nick the Geek
    Member

    To expand on this. Yes, we are aware of it. The code may be updated in Genesis core but it will likely not be removed or deprecated. Deprecating it just means throwing more errors.

    However, this may be replaced without directly deprecating by adding new functions which are in turn invoked by the old functions. It does mean more code, but less than replacing with deprecation and it will result in fewer warnings.

    Just wanted to add some detail here to make it clear that this is a complex issue and something being discussed to make sure it is handled in the best way possible.

    July 1, 2020 at 6:45 am #499785
    LeviaDesign
    Member

    Hi @Anita,

    Thanks for your reply. The link you have provided to Github (https://github.com/studiopress/genesis/issues/2384) doesn't open for me.

    July 1, 2020 at 6:46 am #499786
    LeviaDesign
    Member

    Thanks for the clarification! @NicktheGeek

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘PHP 7.3 compatibility warnings for Genesis code’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble