• 0
Sign in to follow this  
Followers 0

WP_DEBUG breaks some CSS in 2.2.1

Question

Posted · Report post

I am getting some strange css when I have WP_DEBUG enabled. I think this may be due to the PHP notice that gets echoed in the pageless/compiled css as shown here in the first few lines:

Notice:  get_theme_data is deprecated since version 3.4! Use wp_get_theme() instead. in C:xampphtdocspagelineswp-includesfunctions.php on line 2628

	.pagelines-grid { padding:1%; }
	.row, .row-fluid {
	  width:100%;
	  *zoom:1;
	  display:inline-block;
	  display:block;
	}[/code]

This causes things to look weird in the pagelines admin areas, and noticeable things on the front end include a search bar with 0 height (padding only gives it some height). Anyone else have this issue? We should be able to develop with DEBUG on without it breaking the theme :/

Share this post


Link to post
Share on other sites

3 answers to this question

  • 0

Posted · Report post

In your functions.php file have you already tried changing the deprecated get_theme_data to wp_get_theme() instead?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

The deprecated function get_theme_data [s]is[/s] [i]was[/i] used by pagelines, not by me. The PHP notice mentions [i]wordpress'[/i] functions.php, not my theme's. However, I just found the solution [url="http://www.pagelines.com/forum/discussion/comment/106104#Comment_106104"]here[/url]. The issue was in the setup.php of the child theme which used the deprecated function. It has since been updated to be compatible with 3.4. Thanks

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Ah okay. Thanks for posting the solution.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0