Implementation of language_attributes function

This function is defined in wp-includes/general-template.php. Use a real IDE for development to find the source of a function faster.

If your document is not XHTML and the content is runnung from left to right you don’t need this function. A simple …

echo 'lang="' . get_bloginfo( 'language' ) . '"';

… does everything you need.

For no obvious reasons the function creates a dir="ltr" – that’s the default value, no need to write it into every page.