mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
- fix 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