tree checksum vpatch file split hunks
all signers: billymg hanbot
antecedents: mp-wp_genesis mp-wp_update-image-references-to-svg
press order:
mp-wp_genesis | hanbot |
mp-wp_add-footnotes-and-textselectionjs | billymg hanbot |
mp-wp_update-image-references-to-svg | billymg hanbot |
mp-wp_html-comments-regrind | hanbot |
patch:
(1 . 3)(1 . 4)
5 526913 mp-wp_genesis hanbot The historical MP-WP: WordPress with better antispam, SVG-enated images, and very basic themes, with a view towards minimalizing Mullenweg & Co.'s crud.
6 558366 mp-wp_add-footnotes-and-textselectionjs billymg Add the footnotes and text selection features to mp-wp as seen on Trilema and other republican blogs
7 558370 mp-wp_update-image-references-to-svg billymg Update all internal image references to use .svg extensions
8 568792 mp-wp_html-comments-regrind hanbot Anonymous function in kses.php given variables to allow for html and other desired tags in comments compatible with PHP versions 5 and above. Also, trilema-specific database parameter for spam cleanup converted to (reground: correct) variable table name for compatibility. Spurious trilema-specific commented-out code deleted.
- E9AAF0AAF32DFFB5B8BB8379A618FAFE0F36E23A48736031530A03A8A4C0A9EE3825E8D825703F313B164453C1F145941C79E3CBB7B55729CFA827FFEE6FBE41(45 . 14)(45 . 6)- AD0707F4063782A4AD2492D7B6E85AF27FBD9AC946B7F18071F0B88A490A0A33FE2E67BCFD774D39B7A79B93B044A4D005AE063BE1558BA2F3DA3A97C96C1218
13 $comment_time = $comment_check[0];^M
14 $comment_IP = $comment_check[1];^M
15 ^M
16 // Special handle for idiots.^M
17 /*^M
18 if (($comment_author_email == "icriss78@yahoo.com")||($comment_author_url == "http://blog.matinal.org")) {^M
19 $comment_author_url = "";^M
20 $comment_content.= "\n\n<em>Eu sunt <a href=http://polimedia.us/trilema/2011/trolul-perfect/>o simpla fictiune</a>. Luati ce-am scris mai sus ca atare.</em>";^M
21 }^M
22 */^M
23 ^M
24 // GPG catchall.^M
25 ^M
26 if (strpos($comment_content,"BEGIN PGP")>0) $comment_content = "<code>".$comment_content."</code>";^M
(61 . 7)(53 . 7)
28 ^M
29 if (((time() - $comment_time) < 3)||(time() - $comment_time > 5000)||($comment_IP <> $_SERVER['REMOTE_ADDR'])) wp_die( __('Looks like you tried to comment off a stale page. Reload the article, count to three and try again.') );^M
30 ^M
31 $myrows = $wpdb->get_var('SELECT comment_ID FROM tril_comments WHERE comment_author_IP = "'.$_SERVER["REMOTE_ADDR"].'" and comment_approved = "spam";');^M
32 $myrows = $wpdb->get_var('SELECT comment_ID FROM '.$wpdb->comments.' WHERE comment_author_IP = "'.$_SERVER["REMOTE_ADDR"].'" and comment_approved = "spam";');^M
33 if ($myrows > 0) wp_die( __('Spammers need not apply.') );^M
34 ^M
35 // If the user is logged in^M
(395 . 7)(395 . 7)
40 */
41 function wp_kses_split($string, $allowed_html, $allowed_protocols) {
42 return preg_replace_callback('%((<!--.*?(-->|$))|(<[^>]*(>|$)|>))%',
43 function($match) {
44 function($match) use ($allowed_html, $allowed_protocols) {
45 return wp_kses_split2($match[1], $allowed_html, $allowed_protocols);
46 }, $string);
47 }