Ticket #20210: 20210.diff
File 20210.diff, 5.1 KB (added by , 13 years ago) |
---|
-
wp-includes/kses.php
49 49 * @since 2.0.0 50 50 */ 51 51 $allowedposttags = array( 52 'address' => array(), 52 'address' => array( 53 'class' => true, 54 'id' => true, 55 'style' => true, 56 ), 53 57 'a' => array( 54 58 'class' => true, 55 59 'href' => true, … … 58 62 'rel' => true, 59 63 'rev' => true, 60 64 'name' => true, 65 'style' => true, 61 66 'target' => true, 62 67 ), 63 68 'abbr' => array( 64 69 'class' => true, 70 'id' => true, 65 71 'title' => true, 66 72 ), 67 73 'acronym' => array( 74 'class' => true, 75 'id' => true, 68 76 'title' => true, 69 77 ), 78 'area' => array( 79 'alt' => true, 80 'class' => true, 81 'coords' => true, 82 'href' => true, 83 'nohref' => true, 84 'shape' => true, 85 'style' => true, 86 'target' => true, 87 'title' => true, 88 ), 70 89 'article' => array( 71 90 'align' => true, 72 91 'class' => true, … … 83 102 'style' => true, 84 103 'xml:lang' => true, 85 104 ), 86 'b' => array(), 87 'big' => array(), 105 'b' => array( 106 'class' => true, 107 ), 108 'big' => array( 109 'class' => true, 110 ), 88 111 'blockquote' => array( 89 112 'id' => true, 90 113 'cite' => true, 91 114 'class' => true, 92 115 'lang' => true, 116 'style' => true, 93 117 'xml:lang' => true, 94 118 ), 95 119 'br' => array ( 96 120 'class' => true, 121 'style' => true, 97 122 ), 98 123 'button' => array( 124 'class' => true, 99 125 'disabled' => true, 100 126 'name' => true, 101 127 'type' => true, … … 112 138 'title' => true, 113 139 ), 114 140 'code' => array ( 141 'class' => true, 115 142 'style' => true, 116 143 ), 117 144 'col' => array( 118 145 'align' => true, 119 146 'char' => true, 120 147 'charoff' => true, 148 'class' => true, 121 149 'span' => true, 122 150 'dir' => true, 123 151 'style' => true, … … 125 153 'width' => true, 126 154 ), 127 155 'del' => array( 156 'class' => true, 128 157 'datetime' => true, 129 158 ), 130 'dd' => array(), 159 'dd' => array( 160 'class' => true, 161 ), 131 162 'details' => array( 132 163 'align' => true, 133 164 'class' => true, … … 145 176 'style' => true, 146 177 'xml:lang' => true, 147 178 ), 148 'dl' => array(), 149 'dt' => array(), 150 'em' => array(), 179 'dl' => array( 180 'class' => true, 181 ), 182 'dt' => array( 183 'class' => true, 184 ), 185 'em' => array( 186 'class' => true, 187 ), 151 188 'fieldset' => array(), 152 189 'figure' => array( 153 190 'align' => true, … … 166 203 'xml:lang' => true, 167 204 ), 168 205 'font' => array( 206 'class' => true, 169 207 'color' => true, 170 208 'face' => true, 171 209 'size' => true, … … 246 284 'size' => true, 247 285 'width' => true, 248 286 ), 249 'i' => array(), 287 'i' => array ( 288 'class' => true, 289 ), 250 290 'img' => array( 251 291 'alt' => true, 252 292 'align' => true, … … 258 298 'vspace' => true, 259 299 'src' => true, 260 300 'style' => true, 301 'title' => true, 302 'usemap' => true, 261 303 'width' => true, 262 304 ), 263 305 'ins' => array( 306 'class' => true, 264 307 'datetime' => true, 265 308 'cite' => true, 266 309 ), 267 'kbd' => array(), 310 'kbd' => array ( 311 'class' => true, 312 ), 268 313 'label' => array( 269 314 'for' => true, 270 315 ), … … 274 319 'li' => array ( 275 320 'align' => true, 276 321 'class' => true, 322 'id' => true, 323 'style' => true, 277 324 ), 325 'map' => array( 326 'class' => true, 327 'id' => true, 328 'name' => true, 329 'style' => true, 330 'title' => true, 331 ), 278 332 'menu' => array ( 279 333 'class' => true, 280 334 'style' => true, … … 292 346 'class' => true, 293 347 'align' => true, 294 348 'dir' => true, 349 'id' => true, 295 350 'lang' => true, 296 351 'style' => true, 297 352 'xml:lang' => true, 298 353 ), 299 354 'pre' => array( 355 'class' => true, 300 356 'style' => true, 301 357 'width' => true, 302 358 ), 303 359 'q' => array( 304 360 'cite' => true, 361 'class' => true, 305 362 ), 306 's' => array(), 363 's' => array( 364 'class' => true, 365 ), 307 366 'span' => array ( 308 367 'class' => true, 309 368 'dir' => true, 310 369 'align' => true, 370 'id' => true, 311 371 'lang' => true, 312 372 'style' => true, 313 373 'title' => true, … … 321 381 'style' => true, 322 382 'xml:lang' => true, 323 383 ), 324 'small' => array(), 325 'strike' => array(), 326 'strong' => array(), 327 'sub' => array(), 384 'small' => array ( 385 'class' => true, 386 ), 387 'strike' => array ( 388 'class' => true, 389 ), 390 'strong' => array ( 391 'class' => true, 392 ), 393 'sub' => array ( 394 'class' => true, 395 ), 328 396 'summary' => array( 329 397 'align' => true, 330 398 'class' => true, … … 333 401 'style' => true, 334 402 'xml:lang' => true, 335 403 ), 336 'sup' => array(), 404 'sup' => array ( 405 'class' => true, 406 ), 337 407 'table' => array( 338 408 'align' => true, 339 409 'bgcolor' => true, … … 352 422 'align' => true, 353 423 'char' => true, 354 424 'charoff' => true, 425 'class' => true, 355 426 'valign' => true, 356 427 ), 357 428 'td' => array( … … 421 492 'style' => true, 422 493 'valign' => true, 423 494 ), 424 'tt' => array(), 425 'u' => array(), 495 'tt' => array ( 496 'class' => true, 497 ), 498 'u' => array ( 499 'class' => true, 500 ), 426 501 'ul' => array ( 427 502 'class' => true, 503 'id' => true, 428 504 'style' => true, 429 505 'type' => true, 430 506 ), 431 507 'ol' => array ( 432 508 'class' => true, 509 'id' => true, 433 510 'start' => true, 434 511 'style' => true, 435 512 'type' => true, 436 513 ), 437 'var' => array(), 514 'var' => array( 515 'class' => true, 516 ), 438 517 ); 439 518 440 519 /**