mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Merge pull request #1503 from ultimatemember/fix/youtube_validation
Youtube validation
This commit is contained in:
@@ -1912,6 +1912,9 @@ function um_profile( $key ) {
|
||||
* @return bool|string
|
||||
*/
|
||||
function um_youtube_id_from_url( $url ) {
|
||||
if ( ! $url ) {
|
||||
return true;
|
||||
}
|
||||
$url = preg_replace( '/&ab_channel=.*/', '', $url ); // ADBlock argument.
|
||||
$url = preg_replace( '/\?si=.*/', '', $url ); // referral attribute.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user