wp-includes/connectors.php:483Parses a username:password credentials string.
$valuestringarray{username:function wp_connectors_parse_application_password_credentials( string $value ): array { $separator = strpos( $value, ':' ); // Trim so surrounding whitespace or a trailing newline (common when the // value comes from a file or `.env`) does not become part of the credentials. $username = false === $separator ? '' : trim( substr( $value, 0, $separator ) ); $password = false === $separator ? '' : trim( substr( $value, $separator + 1 ) ); if ( '' === $username || '' === $password ) { return array( 'username' => '', 'password' => '', ); } return array( 'username' => $username, 'password' => $password, );}Introduced in 7.1.0.
Signature, return type and hooks compared across 1 parsed release.
src/wp-includes/connectors.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.