Changeset 31597 for trunk/src/wp-admin/includes/class-wp-press-this.php
- Timestamp:
- 03/02/2015 12:57:34 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-press-this.php
r31596 r31597 724 724 $post_ID = (int) $post->ID; 725 725 726 wp_enqueue_media( array( 'post' => $post_ID ) ); 726 727 wp_enqueue_style( 'press-this' ); 727 728 wp_enqueue_script( 'press-this' ); 728 729 wp_enqueue_script( 'json2' ); 729 wp_enqueue_media( array( 'post' => $post->ID ) );730 730 wp_enqueue_script( 'editor' ); 731 731 … … 736 736 $supports_formats = true; 737 737 738 if ( ! ( $post_format = get_post_format( $post ->ID ) ) ) {738 if ( ! ( $post_format = get_post_format( $post_ID ) ) ) { 739 739 $post_format = 0; 740 740 } … … 795 795 796 796 <form id="pressthis-form" name="pressthis-form" method="POST" autocomplete="off"> 797 <input type="hidden" name="post_ID" id="post_ID" value="<?php echo esc_attr( $post_ID ); ?>" />797 <input type="hidden" name="post_ID" id="post_ID" value="<?php echo $post_ID; ?>" /> 798 798 <input type="hidden" name="action" value="press-this-save-post" /> 799 799 <input type="hidden" name="post_status" id="post_status" value="draft" />
Note: See TracChangeset
for help on using the changeset viewer.