Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#19749 closed defect (bug) (invalid)

bug using combination of plugins

Reported by: MisterE2002 Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Plugins Keywords:
Focuses: Cc:


I think there is a problem in the core (getting post content functions) when using these two plugins in combination.

background: i want to include some some static text on multiple posts. So, i created a post with some text. I use plugin "mindvalley-include-content.1.3.2" to include it in another page with a simple line: "[mv_include id=846]"

I also use a syntax highlighter (like "wp-syntax.0.9.12.zip" or "wp-geshi-highlight.1.0.5.zip")

The combination of those plugins does not work (seperate they work perfect)
My lines like "pre lang="text">dom0:~# apt-get update</pre>" are changed in "51ff8912511808b1ab96b77e34bc8e7d000".
The next "pre" like is the previous number plus one (51ff8912511808b1ab96b77e34bc8e7d001).
Probably a identifier for the text?

In fact i use version 1.0 of the mindvalley plugin (2.3 is really bloated, but 1.0 contains the essential) The source is:

function mv_includeContentShortcode( $atts ) {
	$thepostid = (int) $atts['id'];

	if ( !$post = get_post( $thepostid ) )
	    return '';

	return apply_filters( 'the_content', $post->post_content );
	//return ($post->post_content );

add_shortcode("mv_include", "mv_includeContentShortcode");

If i change the "return" value line, to the commented one, then the highlighting works again,
but then my "permalink" does not work as aspected. (and this is not recommended?)
My included post contains this:

This post is part of ... Check [permalink id=242]this[/permalink] page for....

This page is using "the-permalinker1.6.zip" to easily link to the right post.

Change History (3)

#1 @scribu
4 years ago

  • Milestone Awaiting Review deleted

You should bring this to the attention of both plugin developers through the support forums before declaring it's an issue with Core.

#2 @scribu
4 years ago

  • Resolution set to invalid
  • Status changed from new to closed

#3 @scribu
4 years ago

  • Component changed from Inline Docs to Plugins
Note: See TracTickets for help on using tickets.