Make WordPress Core

Ticket #13383: 13383-use-lowercase.diff

File 13383-use-lowercase.diff, 1.8 KB (added by zeo, 14 years ago)

Standardize FORM id for upload to use lowercase with hyphen. See media.php: <?php echo $type; ?>-form

  • wp-admin/custom-header.php

     
    416416<div class="wrap">
    417417<h3><?php _e('Upload New Header Image'); ?></h3><p><?php _e('Here you can upload a custom header image to be shown at the top of your site instead of the default one. On the next screen you will be able to crop the image.'); ?> <?php printf(__('Images of exactly <strong>%1$d x %2$d pixels</strong> will be used as-is.'), HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT); ?></p>
    418418
    419 <form enctype="multipart/form-data" id="uploadForm" method="post" action="<?php echo esc_attr(add_query_arg('step', 2)) ?>">
     419<form enctype="multipart/form-data" id="upload-form" method="post" action="<?php echo esc_attr(add_query_arg('step', 2)) ?>">
    420420<label for="upload"><?php _e('Choose an image from your computer:'); ?></label><br /><input type="file" id="upload" name="import" />
    421421<input type="hidden" name="action" value="save" />
    422422<?php wp_nonce_field('custom-header') ?>
  • wp-admin/custom-background.php

     
    205205<?php endif; ?>
    206206<tr valign="top">
    207207<th scope="row"><?php _e('Upload Image'); ?></th>
    208 <td><form enctype="multipart/form-data" id="uploadForm" method="post" action="">
     208<td><form enctype="multipart/form-data" id="upload-form" method="post" action="">
    209209<label for="upload"><?php _e('Choose an image from your computer:'); ?></label><br /><input type="file" id="upload" name="import" />
    210210<input type="hidden" name="action" value="save" />
    211211<?php wp_nonce_field('custom-background') ?>