Resources

My Agape try

Your Agape try


Support Forum

You must be logged in to post Login Register

Search 
Search Forums:


 




Trash Revision

UserPost

2:01 am
March 25, 2010


hiphip

Member

posts 2

1

In the list of Posts, for revisions, the Trash button links to the Revision Edition!?

I come up with a workaround, not perfect, but is working:

At "revisionary/admin/admin_rvy.php", inside class RevisionaryAdmin:

    function deleteLinkCorrect($link) {
        $linkv= parse_url(str_replace('&', '&', $link));
        parse_str($linkv['query'], $linkArr);

        if(!isset($linkArr['revision'])) return $link;

        $link= "admin.php?page=rvy-revisions&action=delete&revision=". $linkArr['revision'];

        return 'javascript:if(confirm("'. __('Delete'). '?")) window.location="'. wp_nonce_url( $link, 'delete-revision_' . $linkArr['revision']). '"';
    }

And then, in the RevisionaryAdmin function of the same class:

add_filter('get_delete_post_link', array(&$this, 'deleteLinkCorrect'));

7:37 am
June 29, 2011


Kevin

Admin

posts 2402

2

This was fixed in Revisionary 1.0.3


About the Agapetry forum

Currently Online:

15 Guests

Maximum Online: 150

Forums:

Groups: 2

Forums: 7

Topics: 1186

Posts: 5409

Members:

There are 1176 members

There are 1 guests


Kevin has made 2402 posts

Top Posters:

metal450 - 159

Ragnar - 105

YikYak - 70

whiteorb - 44

Daisy - 35

Administrator: Kevin | Moderators: Kevin