WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/28/2010 09:56:43 PM (9 years ago)
Author:
markjaquith
Message:

Expand submit_button() capabilities. Replace all (or almost all) manual HTML instances in WP. props sbressler. see #15064

File:
1 edited

Legend:

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

    r16015 r16061  
    186186?>
    187187        </select>
    188         <input type="submit" name="Submit" value="<?php esc_attr_e('Select') ?>" class="button" />
     188        <?php submit_button( __( 'Select' ), 'button', 'Submit', false ); ?>
    189189    </form>
    190190</div>
     
    230230    <p class="submit">
    231231    <?php
    232         if ( isset($_GET['phperror']) )
    233             echo "<input type='hidden' name='phperror' value='1' /><input type='submit' name='submit' class='button-primary' value='" . esc_attr__('Update File and Attempt to Reactivate') . "' tabindex='2' />";
    234         else
    235             echo "<input type='submit' name='submit' class='button-primary' value='" . esc_attr__('Update File') . "' tabindex='2' />";
     232        if ( isset($_GET['phperror']) ) {
     233            echo "<input type='hidden' name='phperror' value='1' />";
     234            submit_button( __( 'Update File and Attempt to Reactivate' ), 'primary', 'submit', false, array( 'tabindex' => '2' ) );
     235        } else {
     236            submit_button( __( 'Update File' ), 'primary', 'submit', false, array( 'tabindex' => '2' ) );
     237        }
    236238    ?>
    237239    </p>
Note: See TracChangeset for help on using the changeset viewer.