Title: Wrong function_exists wrapper
Last modified: August 30, 2023

---

# Wrong function_exists wrapper

 *  [sgumby](https://wordpress.org/support/users/sgumby/)
 * (@sgumby)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/wrong-function_exists-wrapper/)
 * I’m running a few versions behind (2.2.8) so maybe you’ve corrected this already.
 * In template tags line 1768 you have this code.
 *     ```wp-block-code
       if ( ! function_exists( 'onepress_load_hero' ) ) {
       	function onepress_load_hero_section() {
       		if ( is_page_template( 'template-frontpage.php' ) ) {
       			onepress_load_section( 'hero' );
       		}
       	}
       }
       ```
   
 * It should be looking for onepress_load_hero_section to exist.
 * Thanks

Viewing 1 replies (of 1 total)

 *  [boy8xnoname](https://wordpress.org/support/users/boy8xnoname/)
 * (@boy8xnoname)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/wrong-function_exists-wrapper/#post-17039803)
 * Hi [@sgumby](https://wordpress.org/support/users/sgumby/)
 * Thank you to remind our bug on template. Our tech team will working to fix this
   soon and will release new version with fixed this bug.
 * Thank you very much.

Viewing 1 replies (of 1 total)

The topic ‘Wrong function_exists wrapper’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/onepress/2.3.18/screenshot.png)
 * OnePress
 * [Support Threads](https://wordpress.org/support/theme/onepress/)
 * [Active Topics](https://wordpress.org/support/theme/onepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/onepress/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/onepress/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [boy8xnoname](https://wordpress.org/support/users/boy8xnoname/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/wrong-function_exists-wrapper/#post-17039803)
 * Status: not resolved