WordPress.org

Plugin Directory

Changeset 1637275


Ignore:
Timestamp:
04/14/17 00:19:03 (5 months ago)
Author:
mbis
Message:

Dev version 1.0.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • permalink-manager/tags/1.0.4/includes/core/permalink-manager-uri-functions-post.php

    r1637264 r1637275  
    77 
    88    public function __construct() { 
    9         add_filter( 'get_sample_permalink_html', array($this, 'edit_uri_box'), 999, 4 ); 
     9        add_filter( 'get_sample_permalink_html', array($this, 'edit_uri_box'), 999, 5 ); 
    1010        add_action( 'post_submitbox_misc_actions', array($this, 'display_post_link'), 99); 
    1111 
     
    387387    * Allow to edit URIs from "Edit Post" admin pages 
    388388    */ 
    389     function edit_uri_box($html, $id, $new_title, $new_slug) { 
     389    function edit_uri_box($html, $id, $new_title, $new_slug, $post) { 
    390390        global $permalink_manager_uris, $sitepress_settings; 
    391391 
    392392        // Detect auto drafts 
    393         $autosave = (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) ? true : false; 
     393        $autosave = (!empty($new_title) && empty($new_slug)) ? true : false; 
    394394 
    395395        // Get the post object 
Note: See TracChangeset for help on using the changeset viewer.