Make WordPress Core


Ignore:
Timestamp:
02/29/2008 09:51:36 AM (19 years ago)
Author:
ryan
Message:

Post Edit Collision Detection from mdawaffe. fixes #6043

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/script-loader.php

    r7100 r7103  
    4242                $this->add( 'prototype', '/wp-includes/js/prototype.js', false, '1.6');
    4343
    44                 $this->add( 'autosave', '/wp-includes/js/autosave.js', array('jquery', 'schedule'), '20080221');
     44                $this->add( 'wp-ajax-response', '/wp-includes/js/wp-ajax-response.js', array('jquery'), '20080229' . mt_rand() );
     45                $this->localize( 'wp-ajax-response', 'wpAjax', array(
     46                        'noPerm' => 'You do not have permission to do that.',
     47                        'broken' => 'AJAX is teh b0rked.'
     48                ) );
     49
     50                $this->add( 'autosave', '/wp-includes/js/autosave.js', array('schedule', 'wp-ajax-response'), '20080221' . mt_rand());
    4551                $this->localize( 'autosave', 'autosaveL10n', array(
    46                         'autosaveInterval' => apply_filters('autosave_interval', '60'),
    47                         'errorText' => __('Error: %response%'),
    48                         'failText' => __('Error: Autosave Failed.'),
    49                         'previewPageText' => __('Preview this Page'),
    50                         'previewPostText' => __('Preview this Post'),
    51                         'saveText' => __('Saved at %time%.'),
     52                        'autosaveInterval' => get_option( 'autosave_interval' ),
     53                        'previewPageText' => __('View this Page'),
     54                        'previewPostText' => __('View this Post'),
    5255                        'requestFile' => get_option( 'siteurl' ) . '/wp-admin/admin-ajax.php',
    53                         'savingText' => __('Saving Draft...')
     56                        'savingText' => __('Saving…')
    5457                ) );
    5558
     
    6265                ) );
    6366
    64                 $this->add( 'wp-lists', '/wp-includes/js/wp-lists.js', array('jquery'), '20080228' );
     67                $this->add( 'wp-lists', '/wp-includes/js/wp-lists.js', array('wp-ajax-response'), '20080228' . mt_rand());
    6568                $this->localize( 'wp-lists', 'wpListL10n', array(
    6669                        'url' => get_option( 'siteurl' ) . '/wp-admin/admin-ajax.php'
Note: See TracChangeset for help on using the changeset viewer.