Make WordPress Core

Ticket #4042: no-config-php-error.diff

File no-config-php-error.diff, 739 bytes (added by technosailor, 20 years ago)

Checks to ensure $wp_locale is set before running property conditional

  • Users/aaron/Sites/trunk/wp-includes/functions.php

     
    13461346        <title><?php echo $title ?></title>
    13471347        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    13481348        <link rel="stylesheet" href="<?php echo $admin_dir; ?>install.css" type="text/css" />
    1349 <?php if ( ('rtl' == $wp_locale->text_direction) ) : ?>
     1349<?php
     1350if ( ( $wp_locale ) && ('rtl' == $wp_locale->text_direction) ) : ?>
    13501351        <link rel="stylesheet" href="<?php echo $admin_dir; ?>install-rtl.css" type="text/css" />
    13511352<?php endif; ?>
    13521353</head>