Title: Deprecated Theme Functions &amp; undefined variables
Last modified: August 21, 2016

---

# Deprecated Theme Functions & undefined variables

 *  [mrwweb](https://wordpress.org/support/users/mrwweb/)
 * (@mrwweb)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/deprecated-theme-functions-undefined-variables/)
 * This is a really great plugin and I hope it can continue to be maintained. It
   fills a big need for anyone maintaining a large site network.
 * As [others have noted](http://wordpress.org/support/topic/setup-4?replies=4),
   I’m seeing some issues with undefined variables when initially setting up the
   plugin. Adding $current_site to the globals in the setup() function did resolve
   that one particular issue.
 * In the Global Settings page, I see:
 * > Notice: Use of undefined constant blogname_flag – assumed ‘blogname_flag’ in
   > C:\Users\mrw\xampp\htdocs\ciswa\wp-content\mu-plugins\cets_blog_defaults.php
   > on line 594
 * next to the checkbox in the blog title.
 * I also see that the plugin is using some deprecated functions (thanks to the 
   Log Deprecated Notices plugin). Here’s its output:
 * > Function: get_themes()
   >  Used in wp-content/mu-plugins/cets_blog_defaults.php
   > on line 1230. Use wp_get_themes() instead. Deprecated in version 3.4.
   > Select Function: current_theme_info() Function: current_theme_info()
   >  Used 
   > in wp-content/mu-plugins/cets_blog_defaults.php on line 1231. Use wp_get_theme()
   > instead. Deprecated in version 3.4.
   > Select Function: get_site_allowed_themes() Function: get_site_allowed_themes()
   > 
   > Used in wp-content/mu-plugins/cets_blog_defaults.php on line 1232. Use WP_Theme::
   > get_allowed_on_network() instead. Deprecated in version 3.4.
   > Select Function: wpmu_get_blog_allowedthemes() Function: wpmu_get_blog_allowedthemes()
   > 
   > Used in wp-content/mu-plugins/cets_blog_defaults.php on line 1236. Use WP_Theme::
   > get_allowed_on_site() instead. Deprecated in version 3.4.
 * [http://wordpress.org/extend/plugins/wpmu-new-blog-defaults/](http://wordpress.org/extend/plugins/wpmu-new-blog-defaults/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [mrwweb](https://wordpress.org/support/users/mrwweb/)
 * (@mrwweb)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/deprecated-theme-functions-undefined-variables/#post-3860937)
 * A few more. When I create a new site, I get the following:
 * > Notice: Undefined offset: 3 in \path\to\site\wp-content\mu-plugins\cets_blog_defaults.
   > php on line 282
   > Notice: Trying to get property of non-object in \path\to\site\wp-content\mu-
   > plugins\cets_blog_defaults.php on line 323
   > Notice: Trying to get property of non-object in \path\to\site\wp-content\mu-
   > plugins\cets_blog_defaults.php on line 323
   > Notice: Undefined variable: home_path in \path\to\site\wp-content\mu-plugins\
   > cets_blog_defaults.php on line 354
   > Notice: Undefined variable: home_path in \path\to\site\wp-content\mu-plugins\
   > cets_blog_defaults.php on line 354
   > Notice: Undefined variable: home_path in \path\to\site\wp-content\mu-plugins\
   > cets_blog_defaults.php on line 354

Viewing 1 replies (of 1 total)

The topic ‘Deprecated Theme Functions & undefined variables’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wpmu-new-blog-defaults.svg)
 * [New Blog Defaults](https://wordpress.org/plugins/wpmu-new-blog-defaults/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpmu-new-blog-defaults/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpmu-new-blog-defaults/)
 * [Active Topics](https://wordpress.org/support/plugin/wpmu-new-blog-defaults/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpmu-new-blog-defaults/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpmu-new-blog-defaults/reviews/)

## Tags

 * [New Blog Defaults](https://wordpress.org/support/topic-tag/new-blog-defaults/)

 * 1 reply
 * 1 participant
 * Last reply from: [mrwweb](https://wordpress.org/support/users/mrwweb/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/deprecated-theme-functions-undefined-variables/#post-3860937)
 * Status: not resolved