Ready to get started?Download WordPress


PHP short tag in templates.php (4 posts)

  1. fritteli
    Posted 8 years ago #

    there's a problem if short PHP tags are not allowed by the webserver. the file /wp-admin/templates.php contains two occurrences of short PHP tags (<? instead of <?php).
    it's trivial to fix, so i hope to see the patch incorporated soon!
    by the way: i love wordpress, and v2.0 is better than ever! keep up the excellent work!

    patch to fix the problem:

    --- wp-admin/templates.php.old 2005-12-30 00:42:26.000000000 +0000
    +++ wp-admin/templates.php 2005-12-30 00:42:26.000000000 +0000
    @@ -86,9 +86,9 @@
    <?php if (isset($_GET['a'])) : ?>
    <?php if ( 'err' == $_GET['a'] ) : ?>
    <div id="message" class="error"><p><?php _e('Could not save file.') ?></p></div>
    - <? else: ?>
    + <?php else: ?>
    <div id="message" class="updated fade"><p><?php _e('File edited successfully.') ?></p></div>
    - <?endif; ?>
    + <?php endif; ?>
    <?php endif; ?>
    <div class="wrap">

  2. ifelse
    Posted 8 years ago #

    You should submit this to the official WP bug DB at http://trac.wordpress.org/

  3. fritteli
    Posted 8 years ago #

    sorry, i couldn't find a link to your bug tracker. thanks for pointing me there.

  4. ifelse
    Posted 8 years ago #

    No problem, thanks for contributing:)

Topic Closed

This topic has been closed to new replies.

About this Topic