sdickert
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: apply_filters returns a non-empty string, when the value is emptyThis was caused by an elegant_themes feature.
https://core.trac.www.ads-software.com/ticket/21430
Problem is not within the WP codebase.
Forum: Fixing WordPress
In reply to: !empty($title) returns 1 when $title is emptyThis topic is NOT resolved, but no one is responding. I am going to create a different post to resolve this.
Forum: Fixing WordPress
In reply to: !empty($title) returns 1 when $title is emptyAnd now I have explored and seen that the line that is likely to be the challenge is the resulting
apply_filters
line.$title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base );
The question I have is why would the
apply_filters
function return a single space when the value after the?
is clearly an empty value.Any reason why that would happen?
Forum: Fixing WordPress
In reply to: !empty($title) returns 1 when $title is emptySorry for the reposts – looks like the caching had some issues.
Forum: Fixing WordPress
In reply to: !empty($title) returns 1 when $title is emptyAdditional debugging:
- I have turned off all of the plugins
- I have checked and the value of
''
is given to$title
- When I swap
empty( $instance['title'] )
forempty( $title )
, the code works (no titles show on the text widgets) - When I print out
$title
, I see a space. - On another instance of WP, I have no problem with this code.
Help?
Forum: Fixing WordPress
In reply to: !empty($title) returns 1 when $title is emptyAdditional debugging:
- I have turned off all of the plugins
- I have checked and the value of
''
is given to `$title'</li>
<li>When I swapempty( $instance['title'] )
forempty( $title )
, the code works (no titles show on the text widgets)</li>
<li>When I print out$title
, I see a space. - On another instance of WP, I have no problem with this code.
Help?
Forum: Fixing WordPress
In reply to: !empty($title) returns 1 when $title is emptyAdditional debugging:
- I have turned off all of the plugins
- I have checked and the value of
''
is given to `$title'</li>
<li>When I swapempty( $instance['title'] )
forempty( $title )
, the code works. (no titles show on the text widgets)</li>
<li>When I print out$title
, I see a space. - On another instance of WP, I have no problem with this code.
Help?
J – I love the idea – but I will eliminate the CSS file and you think it will work then? It was defaulting to 600×131 for some reason.
J – thanks for the response. The problem I now have is that the size of the meteor-clip class is nto set correctly. I had to manually set it in my etra CSS. Any idea why?
You can see the action when you comment out line 29 in style.css – any idea why?
I fixed it with a force of the CSS for Chrome, but in Firefox is it weird.
I think there is a bug in the code.
I replaced the copy I had with the newest version from google code. Right now, I think we are having database problems.
Funny – I have TimThumb as well.
Sadly there are no files that match those names on the server which is why I summer I have been hit.
I will try the plug in. Any other advice?
Wow. It worked. I wonder why. Could it be some of the PHP code I have in the widget?
What made you suspect the PHP widget?
I will try. The Original Investigations widget is the ExecPHP widget.