Plugin Directory

Changeset 1066560


Ignore:
Timestamp:
01/13/2015 01:22:13 AM (11 years ago)
Author:
momen2009
Message:

What you have entered in the editor in WordPress 3.5 has fixed the bug that is not restored.

Location:
wp-post-demo/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-post-demo/trunk/readme.txt

    r1066544 r1066560  
    2424* A change since the previous version.
    2525* Another change.
     26
     27= 1.1 =
     28* What you have entered in the editor in WordPress 3.5 has fixed the bug that is not restored.
  • wp-post-demo/trunk/wp-post-demo.php

    r1064568 r1066560  
    1616    _e('Demo Editor','wp-post-demo');
    1717    echo "</h3>";
    18     $permalink = add_query_arg('wp-post-demo', 'true', get_permalink( $post->ID ));
     18    $permalink = add_query_arg('wp-post-demo', 'true', get_permalink(get_the_ID()));
    1919    echo "<a href=\"" . $permalink . "\" class=\"button button-small\" target=\"_blank\" style=\"margin-top:6px\">";
    2020    _e('View Demo','wp-post-demo');
     
    2727        $_wp_editor_expand = ( get_user_setting( 'editor_expand', 'on' ) === 'on' );
    2828    }
    29     wp_editor(get_post_meta($post->ID,"_demo_content",true), 'demo_content', array(
     29    wp_editor(get_post_meta(get_the_ID(),"_demo_content",true), 'demo_content', array(
    3030    'dfw' => true,
    3131    'drag_drop_upload' => true,
Note: See TracChangeset for help on using the changeset viewer.