sanitize_url( $details['action_data'] ); } function get_target( $url, $matched_url, $regex ) { $target = $this->url; if ( $regex ) { $target = preg_replace( '@'.str_replace( '@', '\\@', $matched_url ).'@', $this->url, $url ); } if ( $target === '' ) { return $matched_url; } return $target; } }