WordPress.org

Plugin Directory

Changeset 608540


Ignore:
Timestamp:
10/05/12 14:28:58 (19 months ago)
Author:
sc0ttkclark
Message:

Quick fixes to filter

Location:
pods
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pods/tags/2.0.3.1/classes/PodsAPI.php

    r608539 r608540  
    16951695        } 
    16961696 
    1697         add_filter( 'wp_unique_post_slug', array( $this, '' ), 100, 6 ); 
     1697        if ( !has_filter( 'wp_unique_post_slug', array( $this, 'save_field_slug_fix' ) ) ) 
     1698            add_filter( 'wp_unique_post_slug', array( $this, 'save_field_slug_fix' ), 100, 6 ); 
    16981699 
    16991700        $params->id = $this->save_wp_object( 'post', $post_data, $field[ 'options' ], true, true ); 
  • pods/trunk/classes/PodsAPI.php

    r608536 r608540  
    16951695        } 
    16961696 
    1697         add_filter( 'wp_unique_post_slug', array( $this, '' ), 100, 6 ); 
     1697        if ( !has_filter( 'wp_unique_post_slug', array( $this, 'save_field_slug_fix' ) ) ) 
     1698            add_filter( 'wp_unique_post_slug', array( $this, 'save_field_slug_fix' ), 100, 6 ); 
    16981699 
    16991700        $params->id = $this->save_wp_object( 'post', $post_data, $field[ 'options' ], true, true ); 
Note: See TracChangeset for help on using the changeset viewer.