src/class-wp-register.php
protected static function validate( $type, $data, $admin ) {

		$place = ( isset( $data['place'] ) ) ? $data['place'] : 'front';

		$place = $admin && 'admin' == $place || ! $admin && 'front' == $place;

		if ( ! $place || self::set_params( $type, $data ) === false ) {
			return false;
		}

		return true;
	}
protected static function validate( $type, $data, $admin ) {

		$place = ( isset( $data['place'] ) ) ? $data['place'] : 'front';

		$place = $admin && 'admin' == $place || ! $admin && 'front' == $place;

		if ( ! $place || self::set_params( $type, $data ) === false ) {
			return false;
		}

		return true;
	}
protected static function validate ( $ type , $ data , $ admin ) { $ place = ( isset ( $ data [ 'place' ] ) ) ? $ data [ 'place' ] : 'front' ; $ place = $ admin && 'admin' == $ place || ! $ admin && 'front' == $ place ; if ( ! $ place || self :: set_params ( $ type , $ data ) === false ) { return false ; } return true ; }
Validate file register.

@since 1.0.4

@param string $type  → script|style.
@param array  $data  → settings.
@param bool   $admin → if is admin.

@return boolean
Validate file register .