WordPress.org

Plugin Directory

Changeset 1688503


Ignore:
Timestamp:
06/30/17 19:58:42 (7 weeks ago)
Author:
dancameron
Message:

Deploy version 14.0.5

Location:
sprout-invoices
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sprout-invoices/tags/14.0.5/controllers/compat/Compatibility.php

    r1688474 r1688503  
    2222        add_filter( 'manage_edit-'.SI_Estimate::POST_TYPE.'_columns', array( __CLASS__, 'deregister_columns' ) ); 
    2323 
    24         add_action( 'post_updated', array( __CLASS__, 'set_updated_post_id' ) ); 
    25         add_action( 'wpseo_premium_post_redirect_slug_change', array( __CLASS__, 'wpseo_premium_post_redirect_slug_change' ) ); 
     24        add_action( 'post_updated', array( __CLASS__, 'set_updated_post_id' ), -100 ); 
    2625 
    2726        // Gravity Forms fix 
     
    5655 
    5756    public static function set_updated_post_id( $post_id ) { 
     57        add_filter( 'wpseo_premium_post_redirect_slug_change', array( __CLASS__, 'wpseo_premium_post_redirect_slug_change' ) ); 
    5858        self::$updated_post_id = $post_id; 
    5959    } 
    6060 
    6161    public static function wpseo_premium_post_redirect_slug_change( $slug_changed_flag ) { 
    62         $cpts = array( SI_Invoice::POST_TYPE, SI_Estimate::POST_TYPE, SI_Client::POST_TYPE, SI_Project::POST_TYPE ); 
     62        $cpts = array( SI_Invoice::POST_TYPE, SI_Estimate::POST_TYPE, SI_Client::POST_TYPE, SI_Project::POST_TYPE, SI_Record::POST_TYPE, SI_Payment::POST_TYPE ); 
    6363        if ( null !== self::$updated_post_id && in_array( get_post_type( self::$updated_post_id ), $cpts ) ) { 
    6464            return true; 
  • sprout-invoices/trunk/controllers/compat/Compatibility.php

    r1667257 r1688503  
    2222        add_filter( 'manage_edit-'.SI_Estimate::POST_TYPE.'_columns', array( __CLASS__, 'deregister_columns' ) ); 
    2323 
    24         add_action( 'post_updated', array( __CLASS__, 'set_updated_post_id' ) ); 
    25         add_action( 'wpseo_premium_post_redirect_slug_change', array( __CLASS__, 'wpseo_premium_post_redirect_slug_change' ) ); 
     24        add_action( 'post_updated', array( __CLASS__, 'set_updated_post_id' ), -100 ); 
    2625 
    2726        // Gravity Forms fix 
     
    5655 
    5756    public static function set_updated_post_id( $post_id ) { 
     57        add_filter( 'wpseo_premium_post_redirect_slug_change', array( __CLASS__, 'wpseo_premium_post_redirect_slug_change' ) ); 
    5858        self::$updated_post_id = $post_id; 
    5959    } 
    6060 
    6161    public static function wpseo_premium_post_redirect_slug_change( $slug_changed_flag ) { 
    62         $cpts = array( SI_Invoice::POST_TYPE, SI_Estimate::POST_TYPE, SI_Client::POST_TYPE, SI_Project::POST_TYPE ); 
     62        $cpts = array( SI_Invoice::POST_TYPE, SI_Estimate::POST_TYPE, SI_Client::POST_TYPE, SI_Project::POST_TYPE, SI_Record::POST_TYPE, SI_Payment::POST_TYPE ); 
    6363        if ( null !== self::$updated_post_id && in_array( get_post_type( self::$updated_post_id ), $cpts ) ) { 
    6464            return true; 
Note: See TracChangeset for help on using the changeset viewer.