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

git-svn-id: https://develop.svn.wordpress.org/trunk@16061 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith
2010-10-28 21:56:43 +00:00
parent bd29ca8eeb
commit d65cdf4ba8
56 changed files with 197 additions and 164 deletions
+4 -7
View File
@@ -149,7 +149,7 @@ $desc_header = ( $description != $file_show ) ? "<strong>$description</strong> (
}
?>
</select>
<input type="submit" name="Submit" value="<?php esc_attr_e('Select') ?>" class="button" />
<?php submit_button( __( 'Select' ), 'button', 'Submit', false ); ?>
</form>
</div>
<br class="clear" />
@@ -224,13 +224,10 @@ if ($allowed_files) :
<?php } ?>
<div>
<?php if ( is_writeable($file) ) : ?>
<p class="submit">
<?php
echo "<input type='submit' name='submit' class='button-primary' value='" . esc_attr__('Update File') . "' tabindex='2' />";
?>
</p>
<?php else : ?>
if ( is_writeable($file) ) :
submit_button( __( 'Update File' ), 'primary', 'submit', true, array( 'tabindex' => '2' ) );
else : ?>
<p><em><?php _e('You need to make this file writable before you can save your changes. See <a href="http://codex.wordpress.org/Changing_File_Permissions">the Codex</a> for more information.'); ?></em></p>
<?php endif; ?>
</div>