mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -185,7 +185,7 @@ default:
|
||||
}
|
||||
?>
|
||||
</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" />
|
||||
@@ -229,10 +229,12 @@ foreach ( $plugin_files as $plugin_file ) :
|
||||
<?php } ?>
|
||||
<p class="submit">
|
||||
<?php
|
||||
if ( isset($_GET['phperror']) )
|
||||
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' />";
|
||||
else
|
||||
echo "<input type='submit' name='submit' class='button-primary' value='" . esc_attr__('Update File') . "' tabindex='2' />";
|
||||
if ( isset($_GET['phperror']) ) {
|
||||
echo "<input type='hidden' name='phperror' value='1' />";
|
||||
submit_button( __( 'Update File and Attempt to Reactivate' ), 'primary', 'submit', false, array( 'tabindex' => '2' ) );
|
||||
} else {
|
||||
submit_button( __( 'Update File' ), 'primary', 'submit', false, array( 'tabindex' => '2' ) );
|
||||
}
|
||||
?>
|
||||
</p>
|
||||
<?php else : ?>
|
||||
|
||||
Reference in New Issue
Block a user