Fix Press This tags input, fixes #8743
git-svn-id: http://svn.automattic.com/wordpress/trunk@10374 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
92222d13d1
commit
d9917e53e8
|
@ -212,6 +212,10 @@ var commentsBox, tagCloud;
|
|||
jQuery(document).ready( function($) {
|
||||
var categoryTabs, newCat, newCatParent = false, newCatParentOption = false, noSyncChecks = false, syncChecks, catAddAfter, dotabkey = true, stamp = $('#timestamp').html(), visibility = $('#post-visibility-display').html(), sticky = '';
|
||||
|
||||
// for Press This
|
||||
if ( typeof autosave != 'function' )
|
||||
autosave = function(){};
|
||||
|
||||
// postboxes
|
||||
postboxes.add_postbox_toggles('post');
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -55,7 +55,7 @@ function press_it() {
|
|||
// define some basic variables
|
||||
$quick['post_status'] = 'draft'; // set as draft first
|
||||
$quick['post_category'] = $_REQUEST['post_category'];
|
||||
$quick['tags_input'] = $_REQUEST['tags_input'];
|
||||
$quick['tax_input'] = $_REQUEST['tax_input'];
|
||||
$quick['post_title'] = $_REQUEST['title'];
|
||||
$quick['post_content'] = '';
|
||||
|
||||
|
@ -338,7 +338,16 @@ die;
|
|||
wp_enqueue_style( 'colors' );
|
||||
wp_enqueue_script( 'post' );
|
||||
wp_enqueue_script('editor');
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
|
||||
var userSettings = {'url':'<?php echo SITECOOKIEPATH; ?>','uid':'<?php if ( ! isset($current_user) ) $current_user = wp_get_current_user(); echo $current_user->ID; ?>','time':'<?php echo time() ?>'};
|
||||
var ajaxurl = '<?php echo admin_url('admin-ajax.php'); ?>';
|
||||
//]]>
|
||||
</script>
|
||||
|
||||
<?php
|
||||
do_action('admin_print_styles');
|
||||
do_action('admin_print_scripts');
|
||||
do_action('admin_head');
|
||||
|
@ -549,5 +558,6 @@ die;
|
|||
</div>
|
||||
</form>
|
||||
<?php do_action('admin_print_footer_scripts'); ?>
|
||||
<script type="text/javascript">if(typeof wpOnload=='function')wpOnload();</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -249,7 +249,7 @@ function wp_default_scripts( &$scripts ) {
|
|||
'l10n_print_after' => 'try{convertEntities(slugL10n);}catch(e){};'
|
||||
) );
|
||||
|
||||
$scripts->add( 'post', "/wp-admin/js/post$suffix.js", array('suggest', 'jquery-ui-tabs', 'wp-lists', 'postbox', 'slug'), '20090102' );
|
||||
$scripts->add( 'post', "/wp-admin/js/post$suffix.js", array('suggest', 'jquery-ui-tabs', 'wp-lists', 'postbox', 'slug'), '20090117' );
|
||||
$scripts->add_data( 'post', 'group', 1 );
|
||||
$scripts->localize( 'post', 'postL10n', array(
|
||||
'tagsUsed' => __('Tags used on this post:'),
|
||||
|
|
Loading…
Reference in New Issue