• WordPress needs to use POST for bulk editing and any other operation creating a lot of form data.

    I needed to set all blog posts (600+) to not allow comments and it fails due to handling this via GET.

    Part of the URL causing the issue (it fails after 1000+ symbols):

    https://[somedomain]/wp-admin/edit.php?s=&post_status=all&post_type=post&_wpnonce=0ddbd96e67&_wp_http_referer=%2Fwp-admin%2Fedit.php&action=edit&m=0&cat=0&post_format=&paged=1&post_category%5B%5D=0&tax_input%5Bpost_tag%5D=&post_author=-1&comment_status=closed&ping_status=&_status=-1&sticky=-1&bulk_edit=Update&post_view=list&screen=edit-post&post%5B%5D=957898&post%5B%5D=957881&post%5B%5D=957815&post%5B%5D=957761&post%5B%5D=957634&post%5B%5D=957631&post%5B%5D=957601&post%5B%5D=957559&post%5B%5D=957338&post%5B%5D=957041&post%5B%5D=956907&post%5B%5D=956898&post%5B%5D=956855&post%5B%5D=956705&post%5B%5D=956676&post%5B%5D=956654&post%5B%5D=956594&post%5B%5D=956592&post%5B%5D=956490&post%5B%5D=956483&post%5B%5D=956465&post%5B%5D=956459&post%5B%5D=956348&post%5B%5D=956339&post%5B%5D=956327&post%5B%5D=956286&post%5B%5D=956273&post%5B%5D=956254&post%5B%5D=956205&post%5B%5D=956188&post%5B%5D=956165&post%5B%5D=955897&post%5B%5D=955879&post%5B%5D=955862&post%5B%5D=955856&post%5B%5D=955853&post%5B%5D=955849&post%5B%5D=890391&post%5B

    Thanks in advance.

    • This topic was modified 7 months, 1 week ago by Anders Borg.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • I would recommend storing your specific concern in the WordPress Core Trac so that developers can evaluate it: https://core.trac.www.ads-software.com/newticket

    However, I would recommend solving your specific case in another way: via WP CLI. There you could change such settings more reliably on many posts in one go. The command would be:

    wp post update wp<code>post list --post_type=page --field=</code>ID --comment_status=open

    Create a backup of your database first, just to be on the safe side.

    Alternatively, you can also use the export/import function in WordPress. Export all posts, edit the generated XML file so that comment_status is set to open (can be done quickly with search & replace in a suitable editor) and import the file back into WordPress. I would also recommend backing up the database beforehand.

    Thread Starter Anders Borg

    (@andersborg)

    Thanks for the advice. Somehow spammers can now post comments on images and posts that are not enabled for comments. Not sure how. Got several such notifications recently.

    I’ll post it to Core, as this seems overlooked. Maybe WordPress makes a 303 redirect, and converts a POST to a GET, to enable going back on pages without warnings, but by now maybe there are better ways to solve that.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Bulk editing fails’ is closed to new replies.