summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-07-17 14:30:24 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-07-17 14:30:24 +0000
commitfab68821650208e35997f48b88e247f0afb69330 (patch)
treee3f58a511d5c04c44324af2064f3905699876350
parent243d7e99872ee5967620e08760799d57c53baba1 (diff)
downloadwordpress-mu-fab68821650208e35997f48b88e247f0afb69330.tar.gz
wordpress-mu-fab68821650208e35997f48b88e247f0afb69330.tar.xz
wordpress-mu-fab68821650208e35997f48b88e247f0afb69330.zip
This "Flash uploader" message is in core now. fixes #682, thanks axelseaa
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1380 7be80a69-a1ef-0310-a953-fb0f7c49ff36
-rw-r--r--wp-includes/wpmu-functions.php41
1 files changed, 0 insertions, 41 deletions
diff --git a/wp-includes/wpmu-functions.php b/wp-includes/wpmu-functions.php
index c67001b..35fc5ab 100644
--- a/wp-includes/wpmu-functions.php
+++ b/wp-includes/wpmu-functions.php
@@ -1896,47 +1896,6 @@ if( is_object( $wp_object_cache ) ) {
$wp_object_cache->non_persistent_groups = array('comment', 'counts');
}
-// support a GET parameter for disabling the flash uploader
-function wpmu_upload_flash($flash) {
- if ( array_key_exists('flash', $_REQUEST) )
- $flash = !empty($_REQUEST['flash']);
- return $flash;
-}
-
-add_filter('flash_uploader', 'wpmu_upload_flash');
-
-function wpmu_upload_flash_bypass() {
- echo '<p class="upload-flash-bypass">';
- printf( __('You are using the Flash uploader. Problems? Try the <a href="%s">Browser uploader</a> instead.'), add_query_arg('flash', 0) );
- echo '</p>';
-}
-
-add_action('post-flash-upload-ui', 'wpmu_upload_flash_bypass');
-
-function wpmu_upload_html_bypass() {
- echo '<p class="upload-html-bypass">';
- if ( array_key_exists('flash', $_REQUEST) )
- // the user manually selected the browser uploader, so let them switch back to Flash
- printf( __('You are using the Browser uploader. Try the <a href="%s">Flash uploader</a> instead.'), add_query_arg('flash', 1) );
- else
- // the user probably doesn't have Flash
- printf( __('You are using the Browser uploader.') );
-
- echo '</p>';
-}
-
-add_action('post-flash-upload-ui', 'wpmu_upload_flash_bypass');
-add_action('post-html-upload-ui', 'wpmu_upload_html_bypass');
-
-// make sure the GET parameter sticks when we submit a form
-function wpmu_upload_bypass_url($url) {
- if ( array_key_exists('flash', $_REQUEST) )
- $url = add_query_arg('flash', intval($_REQUEST['flash']));
- return $url;
-}
-
-add_filter('media_upload_form_url', 'wpmu_upload_bypass_url');
-
function mu_locale( $locale ) {
if( defined('WP_INSTALLING') == false ) {
$mu_locale = get_option('WPLANG');