Bug introduced with v1.4.1
-
I use multiple Enhanced Text Widgets on my site, and love this plugin!
However, the last ETW update has introduced a weird bug for me.
One of the places I use this widget is inside “the loop” (the Graphene theme lets you use widgets almost anywhere), to display the publication time for each post.
Here is the code I use your widget to display:
<div style="font-family: Verdana, Arial, sans-serif; font-size: 7.5pt; color: #000;"><strong><?php the_time('g:i a'); ?></strong></div>
This worked perfectly for months. Since the last ETW update, however, the PHP call seems like it’s getting cached; it displays the SAME time (the time of the first displayed post) for every post on a page. Move on to an “older posts” page, and it will display the time for the first post on THAT page, for every post on the page.
To verify the problem was with ETW, I downloaded another plugin (“PHP Code Widget”, which is similar to yours but not as advanced, and moved my code to that. It works perfectly again!
If it helps track the problem down, the Graphene “action hook” (widget area) where your widget is suddenly having trouble is called “Graphene Before Post Content”. It fires after the post title is displayed, immediately before displaying the post body.
The blog area of my site is https://CorvallisSecular.org/blog/.
Until I hear from you, I’ll be using the “PHP Code Widget” in that one spot, so my blog post times come out right — but I’d much rather stick with your widget, if you can figure out what’s wrong.
Thanks in advance!
https://www.ads-software.com/extend/plugins/enhanced-text-widget/
- The topic ‘Bug introduced with v1.4.1’ is closed to new replies.