WordPress.org

Make WordPress Core

Changeset 6579


Ignore:
Timestamp:
01/09/2008 08:14:29 AM (10 years ago)
Author:
ryan
Message:

New image uploader from tellyworth. see #5609

Location:
trunk
Files:
13 added
5 edited

Legend:

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

    r6556 r6579  
    55require_once(ABSPATH . 'wp-admin/includes/file.php');
    66require_once(ABSPATH . 'wp-admin/includes/image.php');
     7require_once(ABSPATH . 'wp-admin/includes/media.php');
    78require_once(ABSPATH . 'wp-admin/includes/import.php');
    89require_once(ABSPATH . 'wp-admin/includes/misc.php');
  • trunk/wp-admin/includes/image.php

    r6544 r6579  
    318318}
    319319
    320 function media_buttons() { // just a placeholder for now
     320
    321321?>
    322 <img src="./images/media-buttons.gif" alt="" />
    323 <?php
    324 }
    325 add_action( 'media_buttons', 'media_buttons' );
    326 
    327 ?>
  • trunk/wp-admin/post-new.php

    r6546 r6579  
    66wp_enqueue_script('autosave');
    77wp_enqueue_script('post');
     8wp_enqueue_script('thickbox');
     9wp_enqueue_script('media-upload');
    810
    911require_once ('./admin-header.php');
  • trunk/wp-admin/post.php

    r6546 r6579  
    6060
    6161    wp_enqueue_script('post');
     62    wp_enqueue_script('thickbox');
     63    wp_enqueue_script('media-upload');
    6264
    6365    if ( 'draft' == $post->post_status )
  • trunk/wp-includes/script-loader.php

    r6574 r6579  
    8585        $this->add( 'suggest', '/wp-includes/js/jquery/suggest.js', array('dimensions'), '1.1');
    8686        $this->add( 'schedule', '/wp-includes/js/jquery/jquery.schedule.js', array('jquery'), '20');
     87        $this->add( 'thickbox', '/wp-includes/js/thickbox/thickbox.js', array('jquery'), '3.1');
    8788
    8889        if ( is_admin() ) {
     
    108109            $this->add( 'upload', '/wp-admin/js/upload.js', array('jquery'), '20070518' );
    109110            $this->add( 'post', '/wp-admin/js/post.js', array('suggest'), '20080102' );
     111            $this->add( 'media-upload', '/wp-admin/js/media-upload.js', false, '20080109' );
    110112            $this->localize( 'upload', 'uploadL10n', array(
    111113                'browseTitle' => attribute_escape(__('Browse your files')),
Note: See TracChangeset for help on using the changeset viewer.