WordPress.org

Make WordPress Core

Ticket #29336: 29336.diff

File 29336.diff, 626 bytes (added by leogopal, 4 years ago)

Adds the viewport meta tag for mobile assistance.

  • src/wp-includes/functions.php

     
    24722472<html xmlns="http://www.w3.org/1999/xhtml" <?php if ( function_exists( 'language_attributes' ) && function_exists( 'is_rtl' ) ) language_attributes(); else echo "dir='$text_direction'"; ?>>
    24732473<head>
    24742474        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     2475        <meta name="viewport" content="width=device-width">
    24752476        <title><?php echo $title ?></title>
    24762477        <style type="text/css">
    24772478                html {