Hide Flash uploader and theme/plugin editor documentation feature, if no JS. Also some validation fixes in the theme editor. props ocean90. see #13383.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14930 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6c8ec25985
commit
8845d1f61f
|
@ -1489,7 +1489,7 @@ SWFUpload.onload = function() {
|
|||
//]]>
|
||||
</script>
|
||||
|
||||
<div id="flash-upload-ui">
|
||||
<div id="flash-upload-ui" class="hide-if-no-js">
|
||||
<?php do_action('pre-flash-upload-ui'); ?>
|
||||
|
||||
<div>
|
||||
|
@ -2231,7 +2231,7 @@ function media_upload_flash_bypass() {
|
|||
* @since unknown
|
||||
*/
|
||||
function media_upload_html_bypass($flash = true) {
|
||||
echo '<p class="upload-html-bypass">';
|
||||
echo '<p class="upload-html-bypass hide-if-no-js">';
|
||||
_e('You are using the Browser uploader.');
|
||||
if ( $flash ) {
|
||||
// the user manually selected the browser uploader, so let them switch back to Flash
|
||||
|
|
|
@ -88,9 +88,9 @@ if ( isset($_GET['inline']) ) {
|
|||
</script>
|
||||
<input type="hidden" name="post_id" id="post_id" value="0" />
|
||||
<?php wp_nonce_field('media-form'); ?>
|
||||
<div id="media-items"> </div>
|
||||
<div id="media-items" class="hide-if-no-js"> </div>
|
||||
<p>
|
||||
<input type="submit" class="button savebutton" name="save" value="<?php esc_attr_e( 'Save all changes' ); ?>" />
|
||||
<input type="submit" class="button savebutton hide-if-no-js" name="save" value="<?php esc_attr_e( 'Save all changes' ); ?>" />
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
@ -211,7 +211,7 @@ foreach ( $plugin_files as $plugin_file ) :
|
|||
<input type="hidden" name="scrollto" id="scrollto" value="<?php echo $scrollto; ?>" />
|
||||
</div>
|
||||
<?php if ( !empty( $docs_select ) ) : ?>
|
||||
<div id="documentation"><label for="docs-list"><?php _e('Documentation:') ?></label> <?php echo $docs_select ?> <input type="button" class="button" value="<?php esc_attr_e( 'Lookup' ) ?> " onclick="if ( '' != jQuery('#docs-list').val() ) { window.open( 'http://api.wordpress.org/core/handbook/1.0/?function=' + escape( jQuery( '#docs-list' ).val() ) + '&locale=<?php echo urlencode( get_locale() ) ?>&version=<?php echo urlencode( $wp_version ) ?>&redirect=true'); }" /></div>
|
||||
<div id="documentation" class="hide-if-no-js"><label for="docs-list"><?php _e('Documentation:') ?></label> <?php echo $docs_select ?> <input type="button" class="button" value="<?php esc_attr_e( 'Lookup' ) ?> " onclick="if ( '' != jQuery('#docs-list').val() ) { window.open( 'http://api.wordpress.org/core/handbook/1.0/?function=' + escape( jQuery( '#docs-list' ).val() ) + '&locale=<?php echo urlencode( get_locale() ) ?>&version=<?php echo urlencode( $wp_version ) ?>&redirect=true'); }" /></div>
|
||||
<?php endif; ?>
|
||||
<?php if ( is_writeable($real_file) ) : ?>
|
||||
<?php if ( in_array( $file, (array) get_option( 'active_plugins', array() ) ) ) { ?>
|
||||
|
|
|
@ -201,10 +201,10 @@ if ($allowed_files) :
|
|||
<input type="hidden" name="scrollto" id="scrollto" value="<?php echo $scrollto; ?>" />
|
||||
</div>
|
||||
<?php if ( isset($functions ) && count($functions) ) { ?>
|
||||
<div id="documentation">
|
||||
<div id="documentation" class="hide-if-no-js">
|
||||
<label for="docs-list"><?php _e('Documentation:') ?></label>
|
||||
<?php echo $docs_select; ?>
|
||||
<input type="button" class="button" value=" <?php esc_attr_e( 'Lookup' ); ?> " onclick="if ( '' != jQuery('#docs-list').val() ) { window.open( 'http://api.wordpress.org/core/handbook/1.0/?function=' + escape( jQuery( '#docs-list' ).val() ) + '&locale=<?php echo urlencode( get_locale() ) ?>&version=<?php echo urlencode( $wp_version ) ?>&redirect=true'); }" />
|
||||
<input type="button" class="button" value=" <?php esc_attr_e( 'Lookup' ); ?> " onclick="if ( '' != jQuery('#docs-list').val() ) { window.open( 'http://api.wordpress.org/core/handbook/1.0/?function=' + escape( jQuery( '#docs-list' ).val() ) + '&locale=<?php echo urlencode( get_locale() ) ?>&version=<?php echo urlencode( $wp_version ) ?>&redirect=true'); }" />
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
|
|
Loading…
Reference in New Issue