Ticket #3118 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Autop no longer working on posts

Reported by: ketsugi Assigned to:
Priority: high Milestone: 2.1
Component: Template Version: 2.1
Severity: major Keywords:
Cc:

Description

After updating from 4174 to 4178, I noticed that auto-paragraphing was no longer in effect on my item posts, although it still works in comments. I'm not sure if this is reproducible, as I asked around in #wordpress and no other svn user seemed to have the same problem. However I'm at a loss as to why this might be the case, and I'm hoping that it's due to some error on my part rather than a bug in the code, but I can't be too sure.

The issue can be seen at http://ketsugi.com

Change History

09/09/06 07:02:54 changed by ketsugi

  • owner changed from anonymous to ketsugi.
  • status changed from new to assigned.

Reverting to 4174 has fixed the issue so the issue can no longer be seen on my blog, but the symptoms remain as reported above.

09/09/06 07:03:27 changed by ketsugi

  • owner deleted.
  • status changed from assigned to new.

09/09/06 09:27:43 changed by Viper007Bond

  • status changed from new to closed.
  • severity changed from normal to major.
  • component changed from Administration to Template.
  • priority changed from normal to high.
  • milestone set to 2.1.
  • resolution set to worksforme.

Deactivate plugins? Try default theme? Something must be conflicting as it works perfectly fine for me with a clean copy of the SVN with no real plugins installed.

09/09/06 17:05:38 changed by ketsugi

You're right; it is a plugin problem. However it seems that multiple plugins are causing this problem. My best guess is that it has to do with [4176] and any plugin that uses add_action, as this seems to be the common deminominator with the plugins that I found causes the problem.

I'm assuming for now that this is desired behavior, so I'm leaving this ticket closed.

09/09/06 17:25:59 changed by ketsugi

I did some further testing and can now confirm that it is actually [4177] that is causing the problem. Again, plugins are not broken, but the autop somehow gets turned off whenever one of these plugins is activated.

As before, I'm not sure if this is considered a bug, or if it is desired behaviour. If it is desired behaviour, may I request some documentation on [4177] so I know how to modify the plugins to prevent this autop breakage?

09/09/06 18:51:30 changed by ryan

How is add_action() being used? What do the calls to it look like?

09/09/06 20:03:59 changed by ryan

Which plugins are you using?

09/10/06 08:24:10 changed by Viper007Bond

It must be some funky old ones or something because none of the plugins that I have activated break my v2.0.4 blog.

09/10/06 13:04:04 changed by ketsugi

Viper007Bond: This ticket is for 2.1, with specific regard to [4177].

Two of the specific plugins I noticed which individually caused the breakage are my own Acronyms plugin and the Ultimate Tag Warrior plugin. I think mine is the simpler of the two. The relevant add_action calls are thus:

add_action( 'activate_acronyms.php', array( 'Acronyms', 'install' ) );
add_action( 'deactivate_acronyms.php', array( 'Acronyms', 'uninstall' ) );
if (1 == get_option( 'acronym_content' ) )
	add_filter( 'the_content', array( 'Acronyms', 'acronym_replace' ) );
if (1 == get_option( 'acronym_comments' ) )
	add_filter( 'comment_text', array( 'Acronyms', 'acronym_replace' ) );
add_action( 'admin_head', array( 'Acronyms', 'manage_acronyms_css') );
add_action( 'admin_menu', array( 'Acronyms', 'add_pages' ) );

The

09/10/06 13:29:11 changed by Viper007Bond

  • status changed from closed to reopened.
  • resolution deleted.

You're right, I'm sorry. I dunno where I got the idea 2.0.4 was in play. Sorry about that. :/

Oh, and this is a filter, not an action issue. ;)

Anyway, I just noticed that while my local SVN blog is not affected (Windows), my online test blog is (*nix). From what I can see, the plugins that have the issue is ones in which the referenced function for the filter is inside a PHP class.

09/10/06 17:16:22 changed by ryan

  • status changed from reopened to closed.
  • resolution set to fixed.

(In [4179]) Pass along the modified string instead of the original. fixes #3118