sdelling
Forum Replies Created
-
There are at least two related issues I found with WordPress 3.1.1 and TBP 0.5.0.1 on a test server for a multisite installation: TinyMCE stopped loading on edit pages and the WP3.1 admin bar stopped working for logged-in users who were in one of the pages under /wp-admin/ (but not somewhere in the front-end). Both issues go away if the plugin is turned off, and come back if turned on. The issue appears to be something relating to the included JSON library. If I comment out references to that and just use PHP >= 5.2.0’s json_decode() call instead, these issues go away. Of course, that only works with modern versions of PHP, but it at least narrows the problem scope. I’m also not sure why the issue just appeared; maybe it’s an interaction with something in WP3.1.1.
Also, TBP 0.5 introduced spacing issues (that still exist in 0.5.0.1) when using the oEmbed style of putting a tweet on a line by itself, as the WordPress automatic paragraphing wpautop filter seems to be interacting badly with this plugin. Paragraph tags are being put around the tweet ID comment at the beginning, and again near the end at one of the closing div’s, leading to extra spacing before the tweet and at the bottom of the tweet below the user icon and name. If I move or remove the tweet ID comment and replace the str_replace() calls at the end of create_tweet_html() with
$tweetHTML = preg_replace( '/\s*[\r\n\t]+\s*/', '', $tweetHTML );, those issues go away.