WordPress.org

Ready to get started?Download WordPress

Forums

ABT Relative Urls
[resolved] Update page results in "are you sure you want to do this" (6 posts)

  1. adubtech
    Member
    Posted 1 year ago #

    I can edit posts, and quickedit pages, but updating pages gives me "are you sure you want to do this?".

    Just updated to Headway Themes 3.4 and WP 3.5

    http://wordpress.org/extend/plugins/abt-relative-urls/

  2. goldenapples
    Member
    Posted 1 year ago #

    I just noticed this too. Looks like the issue is related to the plugin trying to hook directly to the default WP nonce, and the name of the default nonce action was updated in WP3.5

    A quick patch is here: in abt-relative-urls.php:

    --- abt-relative-urls.php	2012-12-18 12:45:32.641102283 -0800
    +++ abt-relative-urls.php	2012-12-18 12:44:43.237104028 -0800
    @@ -167,7 +167,7 @@
     		/* */
     		$posted_type = $_POST['post_type'];
     		$posted_id = $_POST['post_ID'];
    -		$nonce_name = 'update-' . /*$post->post_type*/ $posted_type . '_' . /*$post_ID*/ $posted_id;
    +		$nonce_name = 'update-post_' .  /*$post_ID*/ $posted_id;
     		if ( empty($_POST) || ! check_admin_referer($nonce_name) ){
     			return $post_ID;
     		}

    Basically, WP used to use a nonce action on updating posts named update_{$post_type}_{$post->ID}, and the plugin is looking for that. The action name is just update-post_{$post->ID}, and that makes the plugin choke.

  3. adubtech
    Member
    Posted 1 year ago #

    Thanks!

  4. Joshua Ray
    Member
    Posted 1 year ago #

    Can we get an updated version?

  5. Atlantic BT
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you for bringing this to our attention and for the work around.
    We are currently working on an updated version of this plugin and will have it out by the start of next week.

  6. Atlantic BT
    Member
    Plugin Author

    Posted 1 year ago #

    We've just released an update for this plugin. I'm now marking this issue as resolved. Please let us know if you run into any issues with the new version.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.