WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/27/2008 05:46:01 PM (14 years ago)
Author:
ryan
Message:

First cut and better admin SSL support. see #7001

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/media.php

    r7988 r7998  
    754754    global $type, $tab;
    755755
    756     $flash_action_url = get_option('siteurl') . "/wp-admin/async-upload.php";
     756    $flash_action_url = admin_url('async-upload.php');
    757757
    758758    // If Mac and mod_security, no Flash. :(
     
    785785    swfu = new SWFUpload({
    786786            upload_url : "<?php echo attribute_escape( $flash_action_url ); ?>",
    787             flash_url : "<?php echo get_option('siteurl').'/wp-includes/js/swfupload/swfupload_f9.swf'; ?>",
     787            flash_url : "<?php echo includes_url('js/swfupload/swfupload_f9.swf'); ?>",
    788788            file_post_name: "async-upload",
    789789            file_types: "<?php echo apply_filters('upload_file_glob', '*.*'); ?>",
     
    845845    $post_id = intval($_REQUEST['post_id']);
    846846
    847     $form_action_url = get_option('siteurl') . "/wp-admin/media-upload.php?type=$type&tab=type&post_id=$post_id";
     847    $form_action_url = admin_url("media-upload.php?type=$type&tab=type&post_id=$post_id");
    848848    $form_action_url = apply_filters('media_upload_form_url', $form_action_url, $type);
    849849
     
    896896    $post_id = intval($_REQUEST['post_id']);
    897897
    898     $form_action_url = get_option('siteurl') . "/wp-admin/media-upload.php?type={$GLOBALS['type']}&tab=gallery&post_id=$post_id";
     898    $form_action_url = admin_url("media-upload.php?type={$GLOBALS['type']}&tab=gallery&post_id=$post_id");
    899899
    900900?>
     
    935935    $post_id = intval($_REQUEST['post_id']);
    936936
    937     $form_action_url = get_option('siteurl') . "/wp-admin/media-upload.php?type={$GLOBALS['type']}&tab=library&post_id=$post_id";
     937    $form_action_url = admin_url("media-upload.php?type={$GLOBALS['type']}&tab=library&post_id=$post_id");
    938938
    939939    $_GET['paged'] = intval($_GET['paged']);
Note: See TracChangeset for help on using the changeset viewer.