Plugin Updates
This commit is contained in:
@@ -29,13 +29,13 @@ class Asset_Helper {
|
||||
*
|
||||
* @param string $handle The handle.
|
||||
*
|
||||
* @return string[]|bool All dependencies of the given handle.
|
||||
* @return string[] All dependencies of the given handle.
|
||||
*/
|
||||
public function get_dependency_handles( $handle ) {
|
||||
$scripts = \wp_scripts();
|
||||
|
||||
if ( ! isset( $scripts->registered[ $handle ] ) ) {
|
||||
return false;
|
||||
return [];
|
||||
}
|
||||
|
||||
$obj = $scripts->registered[ $handle ];
|
||||
|
||||
@@ -240,7 +240,7 @@ class Social_Profiles_Helper {
|
||||
*/
|
||||
if ( $field_name === 'twitter_site' ) {
|
||||
$current_option = $this->options_helper->get( $field_name );
|
||||
if ( ! \strpos( $social_profiles[ $field_name ], 'twitter.com/' . $current_option ) ) {
|
||||
if ( ! \strpos( $social_profiles[ $field_name ], 'twitter.com/' . $current_option ) && ! \strpos( $social_profiles[ $field_name ], 'x.com/' . $current_option ) ) {
|
||||
$failures[] = $field_name;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user