Style issue with ‘echo table’ in get_calendar()
Found this while tracking down a CSS validation error. Line 365 of template-functions-general.php:
echo '<table id="wp-calendar">
This was actually causing a problem for me, since I was using a style sheet and index.php I’d been working with since before upgrading to 1.2, and in that index.php was a list member id’d as “wp-calendar” in the line above the call to get_calendar().
It looks to me as this kind of thing (hiding CSS elements in code, even if they’re not mentioned in the latest and greatest default style sheet) can lead to all sorts of odd glitches that can be difficult to track down. I changed the line to a simple “echo <table>” and let the
- above it, since it’s IN the index.php file, handle the formatting, and maybe I did it right and maybe I didn’t, but I stopped having weird changes in my calendar formats and the CSS validated afterward, so I’m okay for now.
- The topic ‘Style issue with ‘echo table’ in get_calendar()’ is closed to new replies.