[Bug]WordPress 3.3 can not delete attachment in thickbox popup media window
-
I have deactivated all my plugins and I uses the default twentyten theme
before I do belowWordPress 3.3 can not delete attachment in thickbox popup media window after defined
EMPTY_TRASH_DAYS
to 0 inwp-config.php
.
the detailed information below:
I putdefine('EMPTY_TRASH_DAYS', 0 );
towp-config.php
.
then, I create a new post and uploaded an attachment in the post.
and then I click the “add media” button,”Gallery” tag,click “show” to show the attachment, and then I click the Delete Permanentlylink and try to delete the attachment ,it failed and gives me these message:“xxxx.jpg” has failed to upload. You do not have permission. Has your session expired?
,I found that the attachment is not deleted.
then,I comment the
define('EMPTY_TRASH_DAYS', 0 );
line inwp-config.php
.this time,the attachment can be deleted normally.ps:
I have tried this on both Linux and Windows server.
WordPress version 3.3
PHP version 5.3.6
mysql version 5.5.11======================================================================
extra info:
when putdefine('EMPTY_TRASH_DAYS', 0 );
towp-config.php
, and click the Delete Permanently link,WP will POST follow parameters via AJAX method:Request URL:wp-admin/admin-ajax.php
Request Method:POST
Status Code:200 OKForm Data:
id:300
action:trash-post
_ajax_nonce:8583b8742b======================================================================
when commentdefine('EMPTY_TRASH_DAYS', 0 );
this line,WP will GET follow parameters:Request URL: wp-admin/post.php?action=delete&post=300&_wpnonce=8583b8742b
Request Method:GETQuery String Parameters
action:delete
post:300
_wpnonce:8583b8742b
- The topic ‘[Bug]WordPress 3.3 can not delete attachment in thickbox popup media window’ is closed to new replies.