fix attachment bug and remove buggy message
This commit is contained in:
parent
e90cd16563
commit
b0d1d42118
@ -114,7 +114,7 @@ class ComicPressAdmin {
|
||||
* Modify the Media Gallery for ComicPress use.
|
||||
*/
|
||||
function setup_comic_metadata_buttons($form_fields, $post) {
|
||||
global $pagenow;
|
||||
global $pagenow, $post_id;
|
||||
|
||||
$comicpress_info = get_post_meta($post->ID, 'comicpress', true);
|
||||
$is_managed = false;
|
||||
@ -130,7 +130,7 @@ class ComicPressAdmin {
|
||||
. '</label>'
|
||||
|
||||
. '<input type="hidden" name="cp[_nonce]" value="' . wp_create_nonce('comicpress') . '" />'
|
||||
. '<input type="hidden" name="attachments[' . $post->ID . '][post_parent]" value="' . $post->post_parent . '" />'
|
||||
. '<input type="hidden" name="attachments[' . $post->ID . '][post_parent]" value="' . esc_attr($_REQUEST['post_id']) . '" />'
|
||||
);
|
||||
|
||||
if ($pagenow !== "media.php") {
|
||||
|
@ -1,12 +1,8 @@
|
||||
<p><em>
|
||||
<?php _e('Drag and drop the comic files below to change the order in which they\'ll appear.', 'comicpress') ?>
|
||||
<?php
|
||||
printf(
|
||||
__('To upload new images, use the %s.', 'comicpress'),
|
||||
'<a href="' . esc_attr($image_upload_iframe_src) . '" class="thickbox" onclick="return false;">' . __('Image Uploader', 'comicpress') . '</a>'
|
||||
)
|
||||
?>
|
||||
<?php _e('To upload new images, use the Image Uploader at the top of the post page.', 'comicpress') ?>
|
||||
<?php _e('Click the Refesh button underneath the zoom slider if you\'ve changed the images attached to this post.', 'comicpress') ?>
|
||||
<em><?php _e('Image not appearing? Make sure you <strong>attached it to the parent post</strong>.', 'comicpress') ?></em>
|
||||
</em></p>
|
||||
<?php if (!empty($ordering)) { ?>
|
||||
<div id="comic-ordering">
|
||||
|
Loading…
Reference in New Issue
Block a user