Make WordPress Core

Changeset 2448


Ignore:
Timestamp:
03/15/2005 10:25:40 PM (19 years ago)
Author:
ryan
Message:

Don't try to read a zero length file. http://mosquito.wordpress.org/view.php?id=1116 Props: MC_incubus

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/theme-editor.php

    r2385 r2448  
    7373        $error = 1;
    7474   
    75     if (!$error) {
     75    if (!$error && filesize($real_file) > 0) {
    7676        $f = fopen($real_file, 'r');
    7777        $content = fread($f, filesize($real_file));
Note: See TracChangeset for help on using the changeset viewer.