[wp-trac] [WordPress Trac] #19749: bug using combination of plugins

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 5 13:50:38 UTC 2012


#19749: bug using combination of plugins
--------------------------+-----------------------------
 Reporter:  MisterE2002   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Inline Docs   |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 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:
 {{{
 <i>
 This post is part of ... Check [permalink id=242]this[/permalink] page
 for....
 </i>
 }}}
 This page is using "the-permalinker1.6.zip" to easily link to the right
 post.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19749>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list