使WordPress成为核心

变更集20164


忽略:
时间戳:
2012年9月3日上午01:30:11(12年(之前)
作者:
阿佐兹
消息:

从后期编辑屏幕添加新评论,部分道具:garyc40,请参阅#15527

位置:
大旅行箱
文件夹:
8已编辑

图例:

未修改
补充
远离的
  • trunk/wp-admin/css/colors-classic.dev.css

    20149年 2016年4月  
    288288}
    289289
    290 .提交{
    291 border-color:#DFDFDF;
     290.提交,
     291#commentsdiv#add-new-comments评论{
     292边框颜色:#dfdfdf;
    292293}
    293294
  • 主干/wp-admin/css/colors-fresh.dev.css

    20149年 2016年4月  
    296296}
    297297
    298 .提交{
    299 border-color:#DFDFDF;
     298.提交,
     299#commentsdiv#add-new-comments评论{
     300border-color:#dfdfdf;
    300301}
    301302
     
    15341535
    15351536div.widgets-sortables、,
    1536 #小部件-left.inactive{
    1537 背景色:#fcfcfc;
    1538 border-color:#dfdfdf;
    1539 }
    1540 
     1537#小部件-左。非活动,
    15411538#可用的widgets.widget-holder{
    15421539背景色:#fcfcfc;
     
    16651662}
    16661663
    1667 .list-container{
    1668 border-color:#DFDFDF;
    1669 }
    1670 
     1664.list-container,
    16711665.menu-item-handle菜单{
    16721666border-color:#dfdfdf;
  • trunk/wp-admin/css/wp-admin.dev.css

    2014年20月 2016年4月  
    24012401}
    24022402
    2403 #commentsdiv.fixed.专栏作者,
    24042403#评论-form.fixed.colum-author{
    24052404宽度:20%;
     
    24112410}
    24122411
    2413 #注释div.邮箱.inside.行操作{
     2412#注释div.inside.行操作{
    24142413线高:18px;
    24152414}
    24162415
    2417 #commentsdiv.postbox td内部{
    2418 填充:1em 10px;
    2419 }
    2420 
    2421 #commentsdiv.postbox.inside.polumn作者{
    2422 宽度:33%;
    2423 }
    2424 
    2425 #commentsdiv.postbox。内部p{
    2426 边距:6px 10px 8px;
    2427 }
    2428 
    2429 #commentsdiv.postbox.column-commentp评论{
    2430 边距:0.6em 0;
    2431 }
    2432 
    2433 #commentsdiv.postbox#回复td{
    2434 填充:0;
     2416#评论iv.内部.专栏作者{
     2417宽度:25%;
     2418}
     2419
     2420#评论iv.专栏评论p{
     2421边距:0.6em 0;
     2422填充:0;
     2423}
     2424
     2425#commentsdiv#replyrow td评论{
     2426填充:0;
     2427}
     2428
     2429#评论div p{
     2430填充:8像素10像素;
     2431边距:0;
     2432}
     2433
     2434#commentsdiv#add-new-comments评论{
     2435边框宽度:0 0 1px;
     2436边界样式:无无实体;
     2437}
     2438
     2439#commentsdiv.评论框{
     2440边框:0无;
     2441}
     2442
     2443#commentsdi.comments-box head th评论{
     2444背景:透明;
     2445填充:0 7px 4px;
     2446字体样式:斜体;
     2447}
     2448
     2449#commentsdiv.comments-box tr:last-child td评论框{
     2450边框底部:0无;
     2451}
     2452
     2453#评论iv img.waiting{
     2454左侧填充:5px;
    24352455}
    24362456
     
    31133133float:无;
    31143134边距:0;
    3115 填充:3像素7二甲苯;
     3135填充:0 7像素5二甲苯;
    31163136}
    31173137
     
    31273147}
    31283148
    3129 #side-sortables.comments-box,
    3130 #普通可携带物品。注释框{
    3131 边框:0无;
    3132 }
    3133 
    31343149ul.类别-选项卡,
    31353150ul.add-menu-item-tabs,
    31363151ul.wp-tab-bar公司{
    31373152边距顶部:12px;
    3138 }
    3139 
    3140 #可分页。注释-框头th,
    3141 #正常的可携带物品。注释-框头和th{
    3142 背景:透明;
    3143 填充:0 7px 4px;
    3144 字体样式:斜体;
    31453153}
    31463154
     
    31503158边界样式:实心-实心-无;
    31513159边框宽度:1px 1px 0;
    3152 }
    3153 
    3154 #评论iv img.waiting{
    3155 padding-left:5px;
    31563160}
    31573161
  • trunk/wp-admin/includes/meta-boxes.php

    20077年 2016年2月  
    472472全局$wpdb,$post_ID;
    473473
     474wp_nonce_field('get-comments','add_comment_nonce',false);
     475    ?>
     476<p class=“hide-if-no-js”id=“add-new-comment”><a href=“#commentstatusdiv”onclick=“commentReply.addcomment(<?php-echo$post_id;?>);return false;“><?php_e(“添加注释”);?></a></p>
     477    <?php(电话)
     478
    474479$total=$wpdb->get_var($wpdb->prepare(“SELECT count(1)FROM$wpdb->comments WHERE comment_post_ID='%d'AND(comment_approved='0'OR comment_aapproved='1')”,$post_ID));
    475 
    476 如果(1>$总计){
    477 echo“<p>”__(“还没有评论。”)</p> ';
    478 回报;
    479     }
    480 
    481 wp_nonce_field('get-comments','add_comment_nonce',false);
    482 
    483480$wp_list_table=获取列表表('wp_Post_Comments_list_table');
    484481$wp_list_table->显示(true);
    485 ?>
    486 <p class=“hide-if-no-js”><a href=“#commentstatusdiv”id=“show-comments”onclick=“commentsBox.get(<?php-echo$total;?>);return false;“><?php_e(“显示评论”);?></a> <img class=“waiting”style=“display:none;”src=“<?php echo esc_url(admin_url,'images/wpspin_light.gif');?>”alt=“”/></p>
    487 <?php(电话)
    488 $hidden=get_hidden_meta_box('post');
    489 if(!in_array('commentsdiv',$hidden)){?>
    490 jQuery(document).ready(function(){commentsBox.get(<?php-echo$total;?>,10);})</脚本>
    491 <?php(电话)
     482
     483如果(1>$总计){
     484echo'<p id=“no-comments”>'__(“还没有评论。”)</p> ';
     485}其他{
     486$hidden=get_hidden_meta_box('post');
     487if(!in_array('commentsdiv',$hidden)){
     488            ?>
     489jQuery(document).ready(function(){commentsBox.get(<?php-echo$total;?>,10);})</脚本>
     490            <?php(电话)
     491        }
    492492    }
     493
     494    ?>
     495<p class=“hide-if-no-js hidden”id=“show-comments”><a href=“#commentstatusdiv”onclick=“commentsBox.get(<?php-echo$total;?>);return false;“><?php_e(“显示评论”);?></a> <img class=“waiting”style=“display:none;”src=“<?php echo esc_url(admin_url('images/wpspin_light.gif'));?>”alt=“”/></p>
     496    <?php(电话)
     497
    493498wp_comment_trashnotice();
    494499}
  • trunk/wp-admin/includes/template.php

    1992兰特 2016年4月  
    315315<?php-endif;?>
    316316<div id=“replyhead”style=“display:none;”><h5><?php_e('回复评论');?></h5></div>
    317 
     317<div id=“addhead”style=“display:none;”><h5><?php_e(“添加新评论”);?></h5></div>
    318318<div id=“edithead”style=“display:none;”>
    319319<div class=“内部”>
     
    344344<a href=“#comments-form”class=“cancel button-secondary alignleft”tabindex=“106”><?php_e(“取消”);?></a>
    345345<a href=“#comments-form”class=“save button-primary alignright”tabindex=“104”>
     346<span id=“addbtn”style=“display:none;”><?php_e(“添加注释”);?></span>
    346347<span id=“savebtn”style=“display:none;”><?php_e(“更新注释”);?></span>
    347348<span id=“replybtn”style=“display:none;”><?php_e(“提交回复”);?></span></a>
  • trunk/wp-admin/js/edit-comments.dev.js

    19895兰特 2016年4月  
    346346
    347347关闭:函数(){
    348 变异系数c;
    349 
    350 if(this.cid){
     348var c,replyrow=$('#replyrow');
     349
     350//回复没有显示?
     351if(replyrow.parent().is('#com-reply'))
     352回报;
     353
     354if(this.cid&&this.act==“编辑注释”){
    351355c=$('#comment-'+this.cid);
    352 
    353        if(QTags类型!=“未定义”)
    354 QTags.closeAllTags(“回复内容”);
    355 
    356        if(this.act=='编辑注释' )
    357            c.fadeIn(300,函数(){c.show()}).css('backgroundColor','');
    358 
    359        $(“#replyrow”).hide();
    360 $(“#com-reply”).append($(“#回复”));
    361        $(“#replycontent”).val(“”);
    362        $('input','#edithead').val('');
    363        $('.error','#replysubmit').html('').hide();
    364        $('.waiting','#replysubmit').hide();
    365        $(“#replycontent”).css(“高度”,“”);
    366 
    367 this.cid=“”;
    368        }
    369     },
    370 
    371 打开:功能(id、p、a) {
    372 var t=this,editRow,rowData,act,c=$('#comment-'+id),h=c.高度(),回复按钮;
     356c.fadeIn(300,function(){c.show()}).css('backgroundColor','');
     357       }
     358
     359//重置Quicktags按钮
     360       if(QTags类型!='未定义' )
     361           QTags.关闭所有标签('回复内容');
     362
     363       $('#add-new-comment').css('显示','');
     364
     365       重装皮();
     366       $(“#com-reply”).append(回复);
     367       $('#replycontent').css('height','').val('');
     368       $(“#edithead输入”).val(“”);
     369       $('.error',replyrow).html('').hide();
     370$('.waiting',replyrow).hide();
     371
     372       this.cid=“”;
     373    },
     374
     375打开:功能(评论id、帖子id、操作) {
     376var t=this,editRow,rowData,act,c=$('#comment-'+评论_id),h=c.高度(),回复按钮;
    373377
    374378t.关闭();
    375 t.cid公司=身份证件;
     379t.cid公司=评论_身份证件;
    376380
    377381editRow=$('#replyrow');
    378 rowData=$('#inline-'+id);
    379 act=t.act=(a==“编辑”)?'编辑注释':'回复注释';
     382rowData=$('#inline-'+comment_id);
     383action=action||“回复”;
     384act='编辑'==动作?'编辑':'回复';
     385act=t.act=act+'-comment';
    380386
    381387$('#action',editRow).val(act);
    382 $('#comment_post_ID',editRow).val(p);
    383 $('#comment_ID',editRow).val(id);
     388$('#comment_post_ID',editRow).val(p主机id);
     389$('#comment_ID',editRow).val(评论_id);
    384390
    385391如果(h>120)
    386392$(“#replycontent”,editRow).css(“高度”,(35+h)+“像素”);
    387393
    388 如果(a)==“编辑”){
     394如果(a)动作==“编辑”){
    389395$('#author',editRow).val($('div.author',rowData).text());
    390396$('#author-email',editRow).val($('div.author-email',rowData).text());
     
    393399$('#replycontent',editRow).val($('textarea.comment',rowData).val.());
    394400$('#edithead,#savebtn',editRow).show();
    395 $('#replyhead,#replybtn',editRow).hide();
     401$('#replyhead,#replybtn,#addhead,#addbtn',editRow).hide();
    396402
    397403c.after(editRow).fadeOut('fast',function(){
    398404$('#replyrow').fadeIn(300,function(){$(this).show()});
    399405            });
    400 }其他{
    401 replyButton=$('#replybtn',editRow);
    402 $('#edithead,#savebtn',editRow).hide();
     406}else if(操作==“添加”){
     407$('#addhead,#addbtn',editRow).show();
     408$('#replyhead,#replybtn,#edithead,#editbtn',editRow).hide();
     409$(“#the-comment-list”).prepend(editRow);
     410$('#replyrow').fadeIn(300);
     411}其他{
     412replyButton=$('#replybtn',editRow);
     413$('#edithead,#savebtn,#addhead,#addbtn',editRow).hide();
    403414$(“#replyhead,#replybtn”,editRow).show();
    404415c.after(编辑行);
     
    443454
    444455$(“#replyrow input”).not(“:button”).each(function(){
    445 post[$(this).attr('name')]=$(this.val();
     456var t=$(本);
     457post[t.attr('name')]=t.val();
    446458        });
    447459
     
    484496c=r.data;
    485497id=“#comment-”+r.id;
     498
    486499if('edit-comment'==t.act)
    487500$(id).remove();
     
    528541$('#replysubmit.error').html(er).show();
    529542
     543    },
     544
     545addcomment:函数(post_id){
     546var t=这个;
     547
     548$('#add-new-comment').fadeOut(200,function(){
     549t.open(0,post_id,'添加');
     550$('table.comments-box').css('display','');
     551$('#no-comments').remove();
     552        });
    530553    }
    531554};
  • trunk/wp-admin/js/post.dev.js

    19853兰特 2016年2月  
    212212$(“#show-comments”).hide();
    213213其他
    214 $(“#show-comments”).html(postL10n.showcomm);
     214$('#show-comments').show().children('a').html(postL10n.showcomm);
     215
    215216回报;
    216217}else如果(1==r){
    217 $(“#show-comments”)。parent()。html(postL10n.endcomm);
     218$(“#show-comments”)。html(postL10n.endcomm);
    218219回报;
    219220                }
  • trunk/wp-includes/css/editor按钮.dev.css

    19712兰特 2016年4月  
    10831083border-top-left-radius:3px;
    10841084填充:2px 8px 0;
    1085 最小高度:30二甲苯;
     1085最小高度:29二甲苯;
    10861086}
    10871087
注:请参见Trac变更集获取有关使用变更集查看器的帮助。