Ticket #19843: 19843.diff

File 19843.diff, 12.7 KB (added by sushkov, 15 months ago)

Titles should not be cached anymore.

  • wp-admin/css/wp-admin-rtl.dev.css

    diff --git wp-admin/css/wp-admin-rtl.dev.css wp-admin/css/wp-admin-rtl.dev.css
    index 172b22e..48f9478 100644
    form.upgrade .hint { 
    203203        margin: 1px 1px 1px 2px; 
    204204} 
    205205 
    206 /* Distraction Free Writing mode 
    207  * =Overlay Styles 
    208 -------------------------------------------------------------- */ 
    209  
    210 /* No RTL for now, this space intentionally left blank */ 
    211  
    212 /* =Overlay Body 
    213 -------------------------------------------------------------- */ 
    214 #wp-fullscreen-body { 
    215         right: 0; 
    216         left:auto; 
    217 } 
    218  
    219 #wp-fullscreen-tagline { 
    220         float: left; 
    221 } 
    222  
    223 /* =Top bar 
    224 -------------------------------------------------------------- */ 
    225 #fullscreen-topbar { 
    226         left:auto; 
    227         right: 0; 
    228 } 
    229  
    230 #wp-fullscreen-mode-bar, 
    231 #wp-fullscreen-button-bar, 
    232 #wp-fullscreen-close, 
    233 #wp-fullscreen-count { 
    234         float: right; 
    235 } 
    236  
    237 #wp-fullscreen-save { 
    238         float: left; 
    239 } 
    240  
    241 #wp-fullscreen-save { 
    242         padding: 2px 5px 0 2px; 
    243 } 
    244  
    245 #wp-fullscreen-buttons > div { 
    246         float: right; 
    247 } 
    248  
    249 #wp-fullscreen-mode-bar { 
    250         padding: 1px 0 0 14px; 
    251 } 
    252  
    253 #wp-fullscreen-modes a { 
    254         float: right; 
    255         border-width: 1px 0 1px 1px; 
    256 } 
    257  
    258 #wp-fullscreen-modes a:first-child { 
    259         -webkit-border-top-left-radius: 0; 
    260         -webkit-border-top-right-radius: 3px; 
    261         -webkit-border-bottom-left-radius: 0; 
    262         -webkit-border-bottom-right-radius: 3px; 
    263         border-width: 1px; 
    264         border-top-left-radius: 0; 
    265         border-top-right-radius: 3px; 
    266         border-bottom-right-left: 0; 
    267         border-bottom-right-radius: 3px; 
    268 } 
    269  
    270 #wp-fullscreen-modes a:last-child { 
    271         -webkit-border-top-right-radius: 0; 
    272         -webkit-border-top-left-radius: 3px; 
    273         -webkit-border-bottom-right-radius: 0; 
    274         -webkit-border-bottom-left-radius: 3px; 
    275         border-top-right-radius: 0; 
    276         border-top-left-radius: 3px; 
    277         border-bottom-right-radius: 0; 
    278         border-bottom-left-radius: 3px; 
    279 } 
    280  
    281 #wp-fullscreen-save img, 
    282 #wp-fullscreen-save span { 
    283         padding-right: 0; 
    284         padding-left: 4px; 
    285 } 
    286  
    287 /* =Thickbox Adjustments 
    288 -------------------------------------------------------------- */ 
    289 /* No RTL for now, this space intentionally left blank */ 
    290  
    291  
    292 /* =TinyMCE Adjustments 
    293 -------------------------------------------------------------- */ 
    294 /* No RTL for now, this space intentionally left blank */ 
    295  
    296  
    297  
    298206/*------------------------------------------------------------------------------ 
    299207  6.0 - Admin Header 
    300208------------------------------------------------------------------------------*/ 
    body.login.locale-he-il, 
    24902398.locale-he-il em { 
    24912399        font-style: normal; 
    24922400        font-weight: bold; 
    2493 } 
    2494  No newline at end of file 
     2401}  
  • wp-admin/css/wp-admin.dev.css

    diff --git wp-admin/css/wp-admin.dev.css wp-admin/css/wp-admin.dev.css
    index f2d055d..98a1c79 100644
    div.error p { 
    630630} 
    631631 
    632632 
    633 /* =CSS 3 transitions 
    634 -------------------------------------------------------------- */ 
    635  
    636 .fade-1000, 
    637 .fade-600, 
    638 .fade-400, 
    639 .fade-300 { 
    640         opacity: 0; 
    641         -moz-transition-property: opacity; 
    642         -webkit-transition-property: opacity; 
    643         -o-transition-property: opacity; 
    644         transition-property: opacity; 
    645 } 
    646  
    647 .fade-1000 { 
    648         -moz-transition-duration: 1s; 
    649         -webkit-transition-duration: 1s; 
    650         -o-transition-duration: 1s; 
    651         transition-duration: 1s; 
    652 } 
    653  
    654 .fade-600 { 
    655         -moz-transition-duration: 0.6s; 
    656         -webkit-transition-duration: 0.6s; 
    657         -o-transition-duration: 0.6s; 
    658         transition-duration: 0.6s; 
    659 } 
    660  
    661 .fade-400 { 
    662         -moz-transition-duration: 0.4s; 
    663         -webkit-transition-duration: 0.4s; 
    664         -o-transition-duration: 0.4s; 
    665         transition-duration: 0.4s; 
    666 } 
    667  
    668 .fade-300 { 
    669         -moz-transition-duration: 0.3s; 
    670         -webkit-transition-duration: 0.3s; 
    671         -o-transition-duration: 0.3s; 
    672         transition-duration: 0.3s; 
    673 } 
    674  
    675 .fade-trigger { 
    676         opacity: 1; 
    677 } 
    678  
    679  
    680633/*------------------------------------------------------------------------------ 
    681634  1.0 - Text Styles 
    682635------------------------------------------------------------------------------*/ 
    form.upgrade .hint { 
    11261079} 
    11271080 
    11281081 
    1129 /* Distraction Free Writing mode 
    1130  * =Overlay Styles 
    1131 -------------------------------------------------------------- */ 
    1132 .fullscreen-overlay { 
    1133         z-index: 149999; 
    1134         display: none; 
    1135         position: fixed; 
    1136         top: 0; 
    1137         bottom: 0; 
    1138         left: 0; 
    1139         right: 0; 
    1140         filter: inherit; 
    1141 } 
    1142  
    1143 .fullscreen-active .fullscreen-overlay, 
    1144 .fullscreen-active #wp-fullscreen-body { 
    1145         display: block; 
    1146 } 
    1147  
    1148 .fullscreen-fader { 
    1149         z-index: 200000; 
    1150 } 
    1151  
    1152 .fullscreen-active .fullscreen-fader { 
    1153         display: none; 
    1154 } 
    1155  
    1156 /* =Overlay Body 
    1157 -------------------------------------------------------------- */ 
    1158 #wp-fullscreen-body { 
    1159         width: 100%; 
    1160         z-index: 150005; 
    1161         display: none; 
    1162         position: absolute; 
    1163         top: 0; 
    1164         left: 0; 
    1165 } 
    1166  
    1167 #wp-fullscreen-wrap { 
    1168         margin: 0 auto 50px; 
    1169         position: relative; 
    1170         padding-top: 60px; 
    1171 } 
    1172  
    1173 #wp-fullscreen-title { 
    1174     font-size: 1.7em; 
    1175     line-height: 100%; 
    1176     outline: medium none; 
    1177     padding: 6px 7px; 
    1178     width: 100%; 
    1179     margin-bottom: 30px; 
    1180 } 
    1181  
    1182 #wp-fullscreen-container { 
    1183         padding: 4px 10px 50px; 
    1184 } 
    1185  
    1186 #wp-fullscreen-title, 
    1187 #wp-fullscreen-container { 
    1188         -webkit-border-radius: 0; 
    1189         border-radius: 0; 
    1190         border: 1px dashed transparent; 
    1191         background: transparent; 
    1192         -moz-transition-property: border-color; 
    1193         -moz-transition-duration: 0.6s; 
    1194         -webkit-transition-property: border-color; 
    1195         -webkit-transition-duration: 0.6s; 
    1196         -o-transition-property: border-color; 
    1197         -o-transition-duration: 0.6s; 
    1198         transition-property: border-color; 
    1199         transition-duration: 0.6s; 
    1200 } 
    1201  
    1202 #wp_mce_fullscreen { 
    1203         width: 100%; 
    1204         min-height: 300px; 
    1205         border: 0; 
    1206         background: transparent; 
    1207         font-family: Consolas, Monaco, monospace; 
    1208         line-height: 1.6em; 
    1209         padding: 0; 
    1210         overflow-y: hidden; 
    1211         outline: none; 
    1212         resize: none; 
    1213 } 
    1214  
    1215 #wp-fullscreen-tagline { 
    1216         color: #BBBBBB; 
    1217         font-size: 18px; 
    1218         float: right; 
    1219         padding-top: 5px; 
    1220 } 
    1221  
    1222 /* =Top bar 
    1223 -------------------------------------------------------------- */ 
    1224 #fullscreen-topbar { 
    1225         position: fixed; 
    1226         top: 0; 
    1227         left: 0; 
    1228         z-index: 150050; 
    1229         border-bottom-style: solid; 
    1230         border-bottom-width: 1px; 
    1231         min-width: 800px; 
    1232         width: 100%; 
    1233         height: 40px; 
    1234 } 
    1235  
    1236 #wp-fullscreen-toolbar { 
    1237         padding: 6px 10px 0; 
    1238         clear: both; 
    1239         max-width: 1100px; 
    1240         min-width: 820px; 
    1241         margin: 0 auto; 
    1242 } 
    1243  
    1244 #wp-fullscreen-mode-bar, 
    1245 #wp-fullscreen-button-bar, 
    1246 #wp-fullscreen-close, 
    1247 #wp-fullscreen-count { 
    1248         float: left; 
    1249 } 
    1250  
    1251 #wp-fullscreen-save { 
    1252         float: right; 
    1253         padding: 2px 2px 0 5px; 
    1254 } 
    1255  
    1256 #wp-fullscreen-count, 
    1257 #wp-fullscreen-close { 
    1258         padding-top: 5px; 
    1259 } 
    1260  
    1261 #wp-fullscreen-central-toolbar { 
    1262         margin: auto; 
    1263         padding: 0; 
    1264 } 
    1265  
    1266 #wp-fullscreen-buttons > div { 
    1267         float: left; 
    1268 } 
    1269  
    1270 #wp-fullscreen-mode-bar { 
    1271         padding: 1px 14px 0 0; 
    1272 } 
    1273  
    1274 #wp-fullscreen-modes a { 
    1275         display: block; 
    1276         font-size: 11px; 
    1277         text-decoration: none; 
    1278         float: left; 
    1279         margin: 1px 0 0 0; 
    1280         padding: 2px 6px 2px; 
    1281         border-width: 1px 1px 1px 0; 
    1282         border-style: solid; 
    1283         border-color: #bbb; 
    1284         color: #777; 
    1285         text-shadow: 0 1px 0 #fff; 
    1286         background-color: #f4f4f4; 
    1287         background-image: -moz-linear-gradient(bottom,  #e4e4e4,  #f9f9f9); 
    1288         background-image: -webkit-gradient(linear, left bottom, left top, from(#e4e4e4), to(#f9f9f9)); 
    1289 } 
    1290  
    1291 #wp-fullscreen-modes a:hover, 
    1292 .wp-html-mode #wp-fullscreen-modes a:last-child, 
    1293 .wp-tmce-mode #wp-fullscreen-modes a:first-child { 
    1294         color: #333; 
    1295         border-color: #999; 
    1296         background-color: #eee; 
    1297         background-image: -moz-linear-gradient(bottom,  #f9f9f9,  #e0e0e0); 
    1298         background-image: -webkit-gradient(linear, left bottom, left top, from(#f9f9f9), to(#e0e0e0)); 
    1299 } 
    1300  
    1301 #wp-fullscreen-modes a:first-child { 
    1302         border-width: 1px; 
    1303         -webkit-border-top-left-radius: 3px; 
    1304         -webkit-border-bottom-left-radius: 3px; 
    1305         border-top-left-radius: 3px; 
    1306         border-bottom-left-radius: 3px; 
    1307 } 
    1308  
    1309 #wp-fullscreen-modes a:last-child { 
    1310         -webkit-border-top-right-radius: 3px; 
    1311         -webkit-border-bottom-right-radius: 3px; 
    1312         border-top-right-radius: 3px; 
    1313         border-bottom-right-radius: 3px; 
    1314 } 
    1315  
    1316 #wp-fullscreen-buttons .active a { 
    1317         background: inherit; 
    1318 } 
    1319  
    1320 #wp-fullscreen-buttons .hidden { 
    1321         display: none; 
    1322 } 
    1323  
    1324 #wp-fullscreen-buttons .disabled { 
    1325         opacity: 0.5; 
    1326 } 
    1327  
    1328 .wp-html-mode #wp-fullscreen-buttons div { 
    1329         display: none; 
    1330 } 
    1331  
    1332 .wp-html-mode #wp-fullscreen-buttons div.wp-fullscreen-both { 
    1333         display: block; 
    1334 } 
    1335  
    1336 #fullscreen-topbar.fullscreen-make-sticky { 
    1337         display: block !important; 
    1338 } 
    1339  
    1340 #wp-fullscreen-save img { 
    1341         vertical-align: middle; 
    1342 } 
    1343  
    1344 #wp-fullscreen-save img, 
    1345 #wp-fullscreen-save span { 
    1346         padding-right: 4px; 
    1347         display: none; 
    1348 } 
    1349  
    1350 #wp-fullscreen-buttons .mce_image .mce_image { 
    1351         background-image: url('../images/menu.png?ver=20120201'); 
    1352         background-position: -124px -38px; 
    1353 } 
    1354  
    1355 #wp-fullscreen-buttons .mce_image .mce_image:hover { 
    1356         background-position: -124px -6px; 
    1357 } 
    1358  
    1359 /* =Thickbox Adjustments 
    1360 -------------------------------------------------------------- */ 
    1361 .fullscreen-active #TB_overlay { 
    1362         z-index: 150100; 
    1363 } 
    1364  
    1365 .fullscreen-active #TB_window { 
    1366         z-index: 150102; 
    1367 } 
    1368  
    1369 /* =TinyMCE Adjustments 
    1370 -------------------------------------------------------------- */ 
    1371 #wp_mce_fullscreen_ifr { 
    1372         background: transparent; 
    1373 } 
    1374  
    1375 #wp_mce_fullscreen_parent #wp_mce_fullscreen_tbl tr.mceFirst { 
    1376         display : none; 
    1377 } 
    1378  
    1379 #wp-fullscreen-container .wp_themeSkin table td { 
    1380         vertical-align: top; 
    1381 } 
    1382  
    1383  
    13841082/*------------------------------------------------------------------------------ 
    13851083  6.0 - Admin Header 
    13861084------------------------------------------------------------------------------*/ 
    a.widget-control-edit { 
    79407638} 
    79417639.locale-ru-ru .pressthis a { 
    79427640        width: 143px; /* default 113px + 30px */ 
    7943 } 
    7944  No newline at end of file 
     7641} 
  • wp-admin/js/wp-fullscreen.dev.js

    diff --git wp-admin/js/wp-fullscreen.dev.js wp-admin/js/wp-fullscreen.dev.js
    index eaf0efc..f2cf8aa 100644
    PubSub.prototype.publish = function( topic, args ) { 
    145145 
    146146                s.editor_id = wpActiveEditor || 'content'; 
    147147 
    148                 if ( !s.title_id ) { 
    149                         if ( $('input#title').length && s.editor_id == 'content' ) 
    150                                 s.title_id = 'title'; 
    151                         else if ( $('input#' + s.editor_id + '-title').length ) // the title input field should have [editor_id]-title HTML ID to be auto detected 
    152                                 s.title_id = s.editor_id + '-title'; 
    153                         else 
    154                                 $('#wp-fullscreen-title, #wp-fullscreen-title-prompt-text').hide(); 
    155                 } 
     148                if ( $('input#title').length && s.editor_id == 'content' ) 
     149                        s.title_id = 'title'; 
     150                else if ( $('input#' + s.editor_id + '-title').length ) // the title input field should have [editor_id]-title HTML ID to be auto detected 
     151                        s.title_id = s.editor_id + '-title'; 
     152                else 
     153                        $('#wp-fullscreen-title, #wp-fullscreen-title-prompt-text').hide(); 
    156154 
    157155                s.mode = $('#' + s.editor_id).is(':hidden') ? 'tinymce' : 'html'; 
    158156                s.qt_canvas = $('#' + s.editor_id).get(0); 
  • wp-includes/class-wp-editor.php

    diff --git wp-includes/class-wp-editor.php wp-includes/class-wp-editor.php
    index af69b08..f8438b1 100644
    final class _WP_Editors { 
    459459                        wp_enqueue_style('wp-jquery-ui-dialog'); 
    460460                } 
    461461 
    462                 if ( in_array('wpfullscreen', self::$plugins, true) || in_array('fullscreen', self::$qt_buttons, true) ) 
     462                if ( in_array('wpfullscreen', self::$plugins, true) || in_array('fullscreen', self::$qt_buttons, true) ) { 
    463463                        wp_enqueue_script('wp-fullscreen'); 
     464                        wp_enqueue_style('dfw'); 
     465                } 
    464466 
    465467                if ( self::$has_medialib ) { 
    466468                        add_thickbox(); 
  • wp-includes/js/quicktags.dev.js

    diff --git wp-includes/js/quicktags.dev.js wp-includes/js/quicktags.dev.js
    index 903f320..16300b0 100644
    function edButton(id, display, tagStart, tagEnd, access, open) { 
    599599        }; 
    600600        qt.FullscreenButton.prototype = new qt.Button(); 
    601601        qt.FullscreenButton.prototype.callback = function(e, c) { 
    602                 if ( c.id != 'content' || typeof(fullscreen) == 'undefined' ) 
     602                if ( c.id == undefined || typeof(fullscreen) == 'undefined' ) 
    603603                        return; 
    604604 
    605605                fullscreen.on(); 
  • wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin_src.js

    diff --git wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin_src.js wp-includes/js/tinymce/plugins/wpfullscreen/editor_plugin_src.js
    index 6290c11..3f43229 100644
     
    3434                        ed.addCommand('wpFullScreenInit', function() { 
    3535                                var d, b, fsed; 
    3636 
    37                                 ed = tinymce.get('content'); 
     37                                ed = tinyMCE.activeEditor; 
    3838                                d = ed.getDoc(); 
    3939                                b = d.body; 
    4040 
  • wp-includes/script-loader.php

    diff --git wp-includes/script-loader.php wp-includes/script-loader.php
    index 1365cb7..713af8c 100644
    function wp_default_styles( &$styles ) { 
    463463        $styles->add( 'wp-jquery-ui-dialog', "/wp-includes/css/jquery-ui-dialog$suffix.css" ); 
    464464        $styles->add( 'editor-buttons', "/wp-includes/css/editor-buttons$suffix.css" ); 
    465465        $styles->add( 'wp-pointer', "/wp-includes/css/wp-pointer$suffix.css" ); 
     466        $styles->add( 'dfw', "/wp-includes/css/dfw$suffix.css" ); 
    466467 
    467468        foreach ( $rtl_styles as $rtl_style ) { 
    468469                $styles->add_data( $rtl_style, 'rtl', true );