Plugin Directory

Changeset 875748


Ignore:
Timestamp:
03/15/2014 02:40:14 AM (12 years ago)
Author:
somatic
Message:

super-duper notifications when using save and go back button!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • somatic-framework/trunk/inc/somaMetaboxes.php

    r875742 r875748  
    1818    function redirect_post_location($location, $pid) {
    1919        if (soma_fetch_index($_POST, 'save_and_go_back')) {
     20            // wp_die(var_dump($_POST));
    2021            $location = soma_fetch_index($_POST, 'referredby');
     22            $title = get_the_title($pid);
     23            $link = get_edit_post_link( $pid );
     24            somaFunctions::queue_notice( "updated", "Changes Saved to <a href='$link'>$title</a>" );
    2125        }
    2226        return $location;
Note: See TracChangeset for help on using the changeset viewer.