public function checkSavedPost($data, $postarr)
    {
        remove_action('wp_insert_post_data', array($this, 'checkSavedPost'), 10, 2);

        $detector = new \BrokenLinkDetector\InternalDetector($data, $postarr);
        return $data;
    }
public function checkSavedPost($data, $postarr)
    {
        remove_action('wp_insert_post_data', array($this, 'checkSavedPost'), 10, 2);

        $detector = new \BrokenLinkDetector\InternalDetector($data, $postarr);
        return $data;
    }
public function checkSavedPost ( $ data , $ postarr ) { remove_action ( 'wp_insert_post_data' , array ( $ this , 'checkSavedPost' ) , 10 , 2 ) ; $ detector = new \ BrokenLinkDetector \ InternalDetector ( $ data , $ postarr ) ; return $ data ; }
Checks if a saved posts permalink is changed and updates permalinks throughout the site
@param  array $data     Post data
@param  array $postarr  $_POST data
@return array           Post data (do not change)
Checks if a saved posts permalink is changed and updates permalinks throughout the site