diff --git a/composer.patches.json b/composer.patches.json index af7715f03566f330fdf8753a6838164b3e60191a..b8f32a5e2911a0971ff2fc9af205fb295903ad54 100644 --- a/composer.patches.json +++ b/composer.patches.json @@ -6,7 +6,8 @@ "Anonymize requests to api.wordpress.org for updates": "patches/core/anonymize-update.php.patch", "Do not perform pingbacks and trackbacks when we update via cron": "patches/core/0103-Remove-pingback-trackback.patch", "Stop Wordpress from hardcoding the location of debug.log": "patches/core/0199-patch-stops-wordpress-from-hardcoding-the-location-o.patch", - "Load JS library locally instead than from Googleapis": "patches/core/0155-Removing-reference-to-googleapis-from-wp-includes-up.patch" + "Load JS library locally instead than from Googleapis": "patches/core/0155-Removing-reference-to-googleapis-from-wp-includes-up.patch", + "Remove Google Fonts API calls": "patches/core/0165-remove-google-fonts.patch" }, "wpackagist-plugin/disable-wordpress-updates": { "Run update checks during cron": "patches/plugins/disable-wordpress-updates.patch" @@ -36,78 +37,87 @@ }, "wpackagist-plugin/simply-exclude": { "Small workaround to fix simplyexclude plugin broken with wordpress 4": "patches/plugins/0117-simplyexclude.patch" - }, - "wpackagist-theme/minimalism": { - "Minimalism theme footer": "patches/themes/themes-minimalism.patch" - }, + }, "wpackagist-theme/azul": { - "Azul theme footer": "patches/themes/0056-Patch-theme-azul.patch" + "Teme footer": "patches/themes/0056-Patch-theme-azul.patch" }, "wpackagist-theme/carrington-blog": { - "carrington-blog theme footer": "patches/themes/0057-Patch-theme-carrington-blog.patch" + "Theme footer": "patches/themes/0057-Patch-theme-carrington-blog.patch" }, "wpackagist-theme/classic": { - "classic theme footer": "patches/themes/0058-Patch-theme-classic.patch" + "Theme footer": "patches/themes/0058-Patch-theme-classic.patch" }, "wpackagist-theme/default": { - "default theme footer": "patches/themes/0062-Patch-theme-default.patch" + "Theme footer": "patches/themes/0062-Patch-theme-default.patch" }, "wpackagist-theme/disconnected": { - "disconnected theme footer": "patches/themes/0063-Patch-theme-disconnected.patch" + "Theme footer": "patches/themes/0063-Patch-theme-disconnected.patch" }, "wpackagist-theme/elegant-grunge": { - "elegant-grunge theme footer": "patches/themes/0064-Patch-theme-elegant-grunge.patch" + "Theme footer": "patches/themes/0064-Patch-theme-elegant-grunge.patch" }, "wpackagist-theme/fixed-blix": { - "fixed-blix theme footer": "patches/themes/0065-Patch-theme-fixed-blix.patch" + "Theme footer": "patches/themes/0065-Patch-theme-fixed-blix.patch" }, "wpackagist-theme/fresh-editorial": { - "fresh-editorial theme footer": "patches/themes/0067-Patch-theme-fresh-editorial.patch" + "Theme footer": "patches/themes/0067-Patch-theme-fresh-editorial.patch" }, "wpackagist-theme/gone-fishing": { - "gone-fishing theme footer": "patches/themes/0069-Patch-theme-gone-fishing.patch" + "Theme footer": "patches/themes/0069-Patch-theme-gone-fishing.patch" }, "wpackagist-theme/inove": { - "inove theme footer": "patches/themes/0071-Patch-theme-inove.patch" + "Theme footer": "patches/themes/0071-Patch-theme-inove.patch" }, "wpackagist-theme/minimalism": { - "minimalism theme footer": "patches/themes/0072-Patch-theme-minimalism.patch" + "Theme footer": "patches/themes/0072-Patch-theme-minimalism.patch", + "Theme footer": "patches/themes/themes-minimalism.patch" }, "wpackagist-theme/mnml": { - "mnml theme footer": "patches/themes/0073-Patch-theme-mnml.patch" + "Theme footer": "patches/themes/0073-Patch-theme-mnml.patch" }, "wpackagist-theme/ocular-professor": { - "ocular-professor theme footer": "patches/themes/0073-Patch-theme-ocular-professor.patch" + "Theme footer": "patches/themes/0077-Patch-theme-ocular-professor.patch" }, "wpackagist-theme/plaintxtblog": { - "plaintxtblog theme footer": "patches/themes/0078-Patch-theme-plaintxtblog.patch" + "Theme footer": "patches/themes/0078-Patch-theme-plaintxtblog.patch" }, "wpackagist-theme/primepress": { - "primepress theme footer": "patches/themes/0079-Patch-theme-primepress.patch" + "Theme footer": "patches/themes/0079-Patch-theme-primepress.patch" }, "wpackagist-theme/rusty-grunge": { - "rusty-grunge theme footer": "patches/themes/0080-Patch-theme-rusty-grunge.patch" + "Theme footer": "patches/themes/0080-Patch-theme-rusty-grunge.patch" }, "wpackagist-theme/sandbox": { - "sandbox theme footer": "patches/themes/0081-Patch-theme-sandbox.patch" + "Theme footer": "patches/themes/0081-Patch-theme-sandbox.patch" }, "wpackagist-theme/simplex": { - "simplex theme footer": "patches/themes/0083-Patch-theme-simplex.patch" + "Theme footer": "patches/themes/0083-Patch-theme-simplex.patch" }, "wpackagist-theme/tanzaku": { - "tanzaku theme footer": "patches/themes/0084-Patch-theme-tanzaku.patch" + "Theme footer": "patches/themes/0084-Patch-theme-tanzaku.patch" }, "wpackagist-theme/the-scenery": { - "the-scenery theme footer": "patches/themes/0085-Patch-theme-the-scenery.patch" + "Theme footer": "patches/themes/0085-Patch-theme-the-scenery.patch" }, "wpackagist-theme/threattocreativity": { - "threattocreativity theme footer": "patches/themes/0086-Patch-theme-threattocreativity.patch" + "Theme footer": "patches/themes/0086-Patch-theme-threattocreativity.patch" }, "wpackagist-theme/veryplaintxt": { - "veryplaintxt theme footer": "patches/themes/0089-Patch-theme-veryplaintxt.patch" + "Theme footer": "patches/themes/0089-Patch-theme-veryplaintxt.patch" }, "wpackagist-theme/wp-andreas01": { - "wp-andreas01 theme footer": "patches/themes/0090-Patch-theme-wp-andreas01.patch" + "Theme footer": "patches/themes/0090-Patch-theme-wp-andreas01.patch" + }, + "wpackagist-theme/twentyeleven": { + "Rheme footer": "patches/themes/0165-twentyeleven-footer.patch" + }, + "wpackagist-theme/twentythirteen": { + "Theme footer": "patches/themes/0165-twentythirteen-footer.patch", + "Remove Google Fonts API": "patches/themes/twentythirteen-google-fonts.patch" + }, + "wpackagist-theme/twentytwelve": { + "Theme footer": "patches/themes/0165-twentytwelve-footer.patch", + "Remove Google Fonts API": "patches/themes/twentytwelve-google-fonts.patch" } } } diff --git a/patches/core/0165-remove-google-fonts.patch b/patches/core/0165-remove-google-fonts.patch new file mode 100644 index 0000000000000000000000000000000000000000..94175e3d5daa8d51bdc424e8c8f464ff294b295a --- /dev/null +++ b/patches/core/0165-remove-google-fonts.patch @@ -0,0 +1,33 @@ +From 264c582530c6036b9ed4425572d95af4f2263927 Mon Sep 17 00:00:00 2001 +From: lucha <lucha@paranoici.org> +Date: Sun, 6 Jan 2013 20:39:55 +0100 +Subject: [PATCH 165/229] Remove Google API, google fonts, flash plugin + +diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php +index 99ef20f3..dd8cabf8 100644 +--- a/wp-includes/script-loader.php ++++ b/wp-includes/script-loader.php +@@ -1660,8 +1661,9 @@ function wp_default_styles( $styles ) { + $subsets .= ',vietnamese'; + } + ++ // A/I removed google font + // Hotlink Open Sans, for now. +- $open_sans_font_url = "https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,300,400,600&subset=$subsets&display=fallback"; ++ $open_sans_font_url = ""; + } + + // Register a stylesheet for the selected admin color scheme. +@@ -1738,7 +1740,8 @@ function wp_default_styles( $styles ) { + */ + $font_family = _x( 'Noto Serif:400,400i,700,700i', 'Google Font Name and Variants' ); + if ( 'off' !== $font_family ) { +- $fonts_url = 'https://fonts.googleapis.com/css?family=' . urlencode( $font_family ); ++ // A/I removed google font ++ $fonts_url = '' . urlencode( $font_family ); + } + $styles->add( 'wp-editor-font', $fonts_url ); + +-- +2.17.1 + diff --git a/patches/themes/0057-Patch-theme-carrington-blog.patch b/patches/themes/0057-Patch-theme-carrington-blog.patch index 21e1d88a7b862e72de6a1767ab70896798c5fa6c..2969b76b7f78c7e2ecafe33b16647172adfe2590 100644 --- a/patches/themes/0057-Patch-theme-carrington-blog.patch +++ b/patches/themes/0057-Patch-theme-carrington-blog.patch @@ -1,17 +1,8 @@ -From b8fe3871493f57cb66f5bde3e9836b3b4bf77216 Mon Sep 17 00:00:00 2001 -From: root <root@rivolta.investici.org> -Date: Tue, 7 Dec 2010 11:49:20 +0000 -Subject: [PATCH 057/229] Patch theme carrington-blog - ---- - wp-content/themes/carrington-blog/footer/footer-default.php | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - diff --git a/wp-content/themes/carrington-blog/footer/footer-default.php b/wp-content/themes/carrington-blog/footer/footer-default.php -index 6e968624..15a89b62 100644 +index 6e9686242..15a89b622 100644 --- a/wp-content/themes/carrington-blog/footer/footer-default.php +++ b/wp-content/themes/carrington-blog/footer/footer-default.php -@@ -25,12 +25,11 @@ if (CFCT_DEBUG) { cfct_banner(__FILE__); } +@@ -25,11 +25,11 @@ if (CFCT_DEBUG) { cfct_banner(__FILE__); } <hr class="lofi" /> <div id="footer" class="section"> <div class="wrapper"> @@ -25,6 +16,3 @@ index 6e968624..15a89b62 100644 <?php } ?> --- -2.17.1 - diff --git a/patches/themes/0058-Patch-theme-classic.patch b/patches/themes/0058-Patch-theme-classic.patch index df7689013303187b0dd05af122676f784e0bf064..a99189a9d0222e8a2d4cd0aec0418211827c3df7 100644 --- a/patches/themes/0058-Patch-theme-classic.patch +++ b/patches/themes/0058-Patch-theme-classic.patch @@ -1,17 +1,8 @@ -From 32c97b2a88a42801c7739d721e098543a76fae10 Mon Sep 17 00:00:00 2001 -From: root <root@rivolta.investici.org> -Date: Tue, 7 Dec 2010 12:00:24 +0000 -Subject: [PATCH 058/229] Patch theme classic - ---- - wp-content/themes/classic/footer.php | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - diff --git a/wp-content/themes/classic/footer.php b/wp-content/themes/classic/footer.php -index 819ed428..4f7c4370 100644 +index 819ed428a..4f7c43704 100644 --- a/wp-content/themes/classic/footer.php +++ b/wp-content/themes/classic/footer.php -@@ -9,10 +9,9 @@ +@@ -9,7 +9,7 @@ <?php get_sidebar(); ?> @@ -20,8 +11,3 @@ index 819ed428..4f7c4370 100644 </div> - <?php wp_footer(); ?> - </body> --- -2.17.1 - diff --git a/patches/themes/0064-Patch-theme-elegant-grunge.patch b/patches/themes/0064-Patch-theme-elegant-grunge.patch index 55089e4f7b1f37f3b00ba30d81ec8560a5c17e63..cc23d3b39de986c616735f5343ccc4381acaf653 100644 --- a/patches/themes/0064-Patch-theme-elegant-grunge.patch +++ b/patches/themes/0064-Patch-theme-elegant-grunge.patch @@ -1,30 +1,11 @@ -From d6bb86b03d8632fb8d630690370c6c9fcfa758ba Mon Sep 17 00:00:00 2001 -From: root <root@rivolta.investici.org> -Date: Tue, 7 Dec 2010 12:54:16 +0000 -Subject: [PATCH 064/229] Patch theme elegant-grunge - ---- - wp-content/themes/elegant-grunge/footer.php | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - -diff --git a/wp-content/themes/elegant-grunge/footer.php b/wp-content/themes/elegant-grunge/footer.php -index 31ab7a04..f44ae399 100644 --- a/wp-content/themes/elegant-grunge/footer.php +++ b/wp-content/themes/elegant-grunge/footer.php -@@ -13,12 +13,11 @@ - <?php get_sidebar('footer'); ?> - - <div class="clear"></div> -- <div class="legal"><?php echo get_option("copyright"); ?></div> -- <div class="credit"><?php printf(__('%1$s Theme by %2$s.', 'elegant-grunge'), '<a href="http://wordpress.org" target="_blank">WordPress</a>', '<a href="http://michael.tyson.id.au/wordpress" target="_blank">Michael Tyson</a>') ?></div> -+<!-- <div class="legal"><?php echo get_option("copyright"); ?></div> --> -+ <div class="credit">'Proudly powered by <a href="http://autistici.org" target="_blank">R*</a>'</div> - <?php wp_footer(); ?> - </div> - </div> - </div> - - </body> --- -2.17.1 - +@@ -14,7 +14,7 @@ + <?php dynamic_sidebar( 'footer-1' ); ?> + <div class="clear"></div> + <div class="credit"> +- <a href="http://wordpress.org/" rel="generator">Proudly powered by WordPress</a> ++ Proudly powered by <a href="http://wordpress.org/" rel="generator">WordPress</a> and <a href="http://autistici.org" target="_blank">R*</a> + <?php printf( __( 'Theme: %1$s by %2$s.', 'theme-name' ), 'Elegant Grunge', '<a href="http://atastypixel.com/blog/wordpress/themes/elegant-grunge/?fromcreditlink" rel="designer">Michael Tyson</a>' ); ?> + </div> + </div> diff --git a/patches/themes/0067-Patch-theme-fresh-editorial.patch b/patches/themes/0067-Patch-theme-fresh-editorial.patch index 551537c1b9d646180a4613e37fbf27149509556d..d5adfe6bbbc34b5adcc3837f782d5763e06af6ce 100644 --- a/patches/themes/0067-Patch-theme-fresh-editorial.patch +++ b/patches/themes/0067-Patch-theme-fresh-editorial.patch @@ -1,14 +1,5 @@ -From 075a312cda476b23e8b24c96dc142a75521a4d70 Mon Sep 17 00:00:00 2001 -From: root <root@rivolta.investici.org> -Date: Tue, 7 Dec 2010 13:01:29 +0000 -Subject: [PATCH 067/229] Patch theme fresh-editorial - ---- - wp-content/themes/fresh-editorial/footer.php | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - diff --git a/wp-content/themes/fresh-editorial/footer.php b/wp-content/themes/fresh-editorial/footer.php -index bcf806fa..358a8cd3 100644 +index bcf806fa0..358a8cd3d 100644 --- a/wp-content/themes/fresh-editorial/footer.php +++ b/wp-content/themes/fresh-editorial/footer.php @@ -74,7 +74,7 @@ @@ -20,10 +11,3 @@ index bcf806fa..358a8cd3 100644 <br /> <a title="web designer" href="http://www.brightcherry.co.uk">Web design</a> by Bright<b class="pink">Cherry</b>. </p> -@@ -86,4 +86,3 @@ - - - </body> --- -2.17.1 - diff --git a/patches/themes/0069-Patch-theme-gone-fishing.patch b/patches/themes/0069-Patch-theme-gone-fishing.patch index dbae7ffd5afdf9997e3deaa783f4ffc7a7791c5f..53cff583ced2446dd4f74efab0d8b635a215c0d9 100644 --- a/patches/themes/0069-Patch-theme-gone-fishing.patch +++ b/patches/themes/0069-Patch-theme-gone-fishing.patch @@ -1,23 +1,11 @@ -From ec184696ff80cef00cde97fd3e4457530a84a7da Mon Sep 17 00:00:00 2001 -From: root <root@rivolta.investici.org> -Date: Tue, 7 Dec 2010 13:02:45 +0000 -Subject: [PATCH 069/229] Patch theme gone-fishing - ---- - wp-content/themes/gone-fishing/footer.php | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - diff --git a/wp-content/themes/gone-fishing/footer.php b/wp-content/themes/gone-fishing/footer.php -index 900e3504..db0d3830 100644 +index 900e3504e..db0d38308 100644 --- a/wp-content/themes/gone-fishing/footer.php +++ b/wp-content/themes/gone-fishing/footer.php -@@ -1,6 +1,5 @@ +@@ -1,5 +1,5 @@ <div id="footer"> - Powered by <a href="http://www.wordpress.org">Wordpress</a> - Design by <a href="http://www.designer-daily.com">Designer-daily</a> + Powered by <a href="http://www.autistici.org">R*</a> - Design by <a href="http://www.designer-daily.com">Designer-daily</a> </div> </div> </body> --- -2.17.1 - diff --git a/patches/themes/0073-Patch-theme-mnml.patch b/patches/themes/0073-Patch-theme-mnml.patch index 74b92c4ee4b56be59c7fd870c16ca87e5c31108f..9d6e73116b715b22f860f8775970e84a90eafa86 100644 --- a/patches/themes/0073-Patch-theme-mnml.patch +++ b/patches/themes/0073-Patch-theme-mnml.patch @@ -1,17 +1,8 @@ -From 5e1e9d890a8270142d6755c44a84ed1c36e1cea7 Mon Sep 17 00:00:00 2001 -From: root <root@rivolta.investici.org> -Date: Tue, 7 Dec 2010 14:49:37 +0000 -Subject: [PATCH 073/229] Patch theme mnml - ---- - wp-content/themes/mnml/footer.php | 5 ++--- - 1 file changed, 2 insertions(+), 3 deletions(-) - diff --git a/wp-content/themes/mnml/footer.php b/wp-content/themes/mnml/footer.php -index 439bd17c..91831d99 100755 +index 439bd17cc..91831d99e 100755 --- a/wp-content/themes/mnml/footer.php +++ b/wp-content/themes/mnml/footer.php -@@ -2,9 +2,7 @@ +@@ -2,8 +2,7 @@ </div><!-- #content-wrap --> <div id="footer"> @@ -21,6 +12,3 @@ index 439bd17c..91831d99 100755 </div><!-- #footer --> </div><!-- #wrapper .hfeed --> --- -2.17.1 - diff --git a/patches/themes/0077-Patch-theme-ocular-professor.patch b/patches/themes/0077-Patch-theme-ocular-professor.patch index ca1029de4da9dafcbf01c7696f6bc693133d4128..bc475a3edd38cc2b311d312fcaf25190bf1afc14 100644 --- a/patches/themes/0077-Patch-theme-ocular-professor.patch +++ b/patches/themes/0077-Patch-theme-ocular-professor.patch @@ -1,17 +1,8 @@ -From 2b62b54ec9bd9fb2dae61961eded6ecfb334f04e Mon Sep 17 00:00:00 2001 -From: root <root@rivolta.investici.org> -Date: Tue, 7 Dec 2010 14:51:42 +0000 -Subject: [PATCH 077/229] Patch theme ocular-professor - ---- - wp-content/themes/ocular-professor/footer.php | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - diff --git a/wp-content/themes/ocular-professor/footer.php b/wp-content/themes/ocular-professor/footer.php -index 3641676f..0917680f 100755 +index 3641676fa..0917680f0 100755 --- a/wp-content/themes/ocular-professor/footer.php +++ b/wp-content/themes/ocular-professor/footer.php -@@ -48,7 +48,6 @@ +@@ -48,7 +48,7 @@ <div id="footer"> <div class="copyright"> <p><a href="http://http://andreamignolo.com/ocular-professor/">Ocular Professor</a> by <a href="http://andreamignolo.com">Mignolo</a> § Powered by @@ -19,6 +10,4 @@ index 3641676f..0917680f 100755 + <a href="http://autistici.org">R*</a> </p> </div> --- -2.17.1 - + diff --git a/patches/themes/0078-Patch-theme-plaintxtblog.patch b/patches/themes/0078-Patch-theme-plaintxtblog.patch index 652945a94a0aff5422e4c43c54965315582a4783..72c8db43861a453da62b0fcc7140903b3c896f68 100644 --- a/patches/themes/0078-Patch-theme-plaintxtblog.patch +++ b/patches/themes/0078-Patch-theme-plaintxtblog.patch @@ -1,17 +1,8 @@ -From c65ee6bfcb151664ab5fd80ef657aa83bf4878cf Mon Sep 17 00:00:00 2001 -From: root <root@rivolta.investici.org> -Date: Tue, 7 Dec 2010 14:53:21 +0000 -Subject: [PATCH 078/229] Patch theme plaintxtblog - ---- - wp-content/themes/plaintxtblog/footer.php | 7 +++---- - 1 file changed, 3 insertions(+), 4 deletions(-) - diff --git a/wp-content/themes/plaintxtblog/footer.php b/wp-content/themes/plaintxtblog/footer.php -index 50ad3441..9abc8b8a 100644 +index 50ad34413..9abc8b8af 100644 --- a/wp-content/themes/plaintxtblog/footer.php +++ b/wp-content/themes/plaintxtblog/footer.php -@@ -1,8 +1,6 @@ +@@ -1,7 +1,6 @@ <div id="footer"> - <span id="copyright">© <?php echo( date('Y') ); ?> <?php plaintxtblog_admin_hCard(); ?></span> - <span class="meta-sep">|</span> @@ -21,6 +12,3 @@ index 50ad3441..9abc8b8a 100644 <span class="meta-sep">|</span> <span id="theme-link"><a href="http://www.plaintxt.org/themes/plaintxtblog/" title="plaintxtblog theme for WordPress" rel="follow designer">plaintxtblog</a> theme by <span class="vcard"><a class="url fn n" href="http://scottwallick.com/" title="scottwallick.com" rel="follow designer"><span class="given-name">Scott</span><span class="additional-name"> Allan</span><span class="family-name"> Wallick</span></a></span></span><!-- Theme design credit, that's all --> <span class="meta-sep">|</span> --- -2.17.1 - diff --git a/patches/themes/0079-Patch-theme-primepress.patch b/patches/themes/0079-Patch-theme-primepress.patch index d6bd88e0f72f29aa78a1b54d305c96f148185779..4eb3138ba3ea6ba8955d1de7828c8c3621792681 100644 --- a/patches/themes/0079-Patch-theme-primepress.patch +++ b/patches/themes/0079-Patch-theme-primepress.patch @@ -1,17 +1,8 @@ -From 6890e9269d71f0bbcb4b0b7f823a2582c25c328d Mon Sep 17 00:00:00 2001 -From: root <root@rivolta.investici.org> -Date: Tue, 7 Dec 2010 14:57:59 +0000 -Subject: [PATCH 079/229] Patch theme primepress - ---- - wp-content/themes/primepress/footer.php | 7 ++++--- - 1 file changed, 4 insertions(+), 3 deletions(-) - diff --git a/wp-content/themes/primepress/footer.php b/wp-content/themes/primepress/footer.php -index 3e2353a2..21360043 100644 +index 3e2353a23..213600431 100644 --- a/wp-content/themes/primepress/footer.php +++ b/wp-content/themes/primepress/footer.php -@@ -1,11 +1,11 @@ +@@ -1,10 +1,11 @@ <div id="footer"> - <p class="left">© <?php echo date('Y');?> <strong><?php bloginfo('name'); ?></strong> | Powered by <strong><a href="http://wordpress.org/">WordPress</a></strong></p> - <p class="right">A <strong><a href="http://www.techtrot.com/primepress/" title="PrimePress theme homepage">WordPress theme</a></strong> by <strong>Ravi Varma</strong></p> @@ -25,6 +16,3 @@ index 3e2353a2..21360043 100644 </div><!--#page--> <?php wp_footer(); ?> </body> --- -2.17.1 - diff --git a/patches/themes/0080-Patch-theme-rusty-grunge.patch b/patches/themes/0080-Patch-theme-rusty-grunge.patch index 18a299fa47a8a4149379fe0dcaa3e13fe0ad6697..63a61c8f24ca434b87864caaee86825d58a41e03 100644 --- a/patches/themes/0080-Patch-theme-rusty-grunge.patch +++ b/patches/themes/0080-Patch-theme-rusty-grunge.patch @@ -1,23 +1,11 @@ -From da1bc66167c08bf5c3c93fa43f8f82835f32b324 Mon Sep 17 00:00:00 2001 -From: root <root@rivolta.investici.org> -Date: Tue, 7 Dec 2010 15:34:07 +0000 -Subject: [PATCH 080/229] Patch theme rusty-grunge - ---- - wp-content/themes/rusty-grunge/footer.php | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/wp-content/themes/rusty-grunge/footer.php b/wp-content/themes/rusty-grunge/footer.php -index 75c05093..47bc0815 100644 ---- a/wp-content/themes/rusty-grunge/footer.php -+++ b/wp-content/themes/rusty-grunge/footer.php -@@ -1,6 +1,5 @@ - <ul id="footer"> -- <li class="left">© <a href="<?php bloginfo('url') ?>" title="Home"><?php bloginfo('name') ?></a>. All Rights Reserved.</li> -+ <li class="left">Proudly powered by <a href="http://www.autistici.org">R*</a></li> - <li class="right">WordPress Theme designed by <a href="http://www.chris-wallace.com" title="Chris Wallace">Chris Wallace</a></li> - <!-- I would appreciate if you would leave the link back to my site but is certainly not required. --> - </ul> --- -2.17.1 - +--- footer.php 2011-07-12 13:17:12.000000000 -0700 ++++ footer.php.patched 2021-02-21 22:33:39.985975185 -0800 +@@ -9,7 +9,7 @@ + + <footer id="colophon" role="contentinfo"> + <div id="site-generator"> +- <a href="http://wordpress.org/" rel="generator">Proudly powered by WordPress</a><span class="sep"> | </span><?php printf( __( 'Theme: %1$s by %2$s.', 'rusty-grunge' ), 'Rusty Grunge', '<a href="http://www.chris-wallace.com" title="Chris Wallace">Chris Wallace</a>' ); ?> ++ <a href="http://wordpress.org/" rel="generator">Proudly powered by WordPress</a><span class="sep"> and <a href="http://www.autistici.org">R*</a> | </span><?php printf( __( 'Theme: %1$s by %2$s.', 'rusty-grunge' ), 'Rusty Grunge', '<a href="http://www.chris-wallace.com" title="Chris Wallace">Chris Wallace</a>' ); ?> + </div> + </footer><!-- #colophon --> + </div><!-- #page --> diff --git a/patches/themes/0081-Patch-theme-sandbox.patch b/patches/themes/0081-Patch-theme-sandbox.patch index 0707d5689cf040301ff4ec8eda7f17fa8757d558..f95b60bbf48995c03cd7ff48770589ceea2b38d6 100644 --- a/patches/themes/0081-Patch-theme-sandbox.patch +++ b/patches/themes/0081-Patch-theme-sandbox.patch @@ -1,17 +1,8 @@ -From 055a703a2d2828dbf54be401165ca51f59b6be67 Mon Sep 17 00:00:00 2001 -From: root <root@rivolta.investici.org> -Date: Tue, 7 Dec 2010 15:37:13 +0000 -Subject: [PATCH 081/229] Patch theme sandbox - ---- - wp-content/themes/sandbox/footer.php | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - diff --git a/wp-content/themes/sandbox/footer.php b/wp-content/themes/sandbox/footer.php -index cd88245a..672a22a4 100644 +index cd88245ac..672a22a4a 100644 --- a/wp-content/themes/sandbox/footer.php +++ b/wp-content/themes/sandbox/footer.php -@@ -1,7 +1,6 @@ +@@ -1,6 +1,6 @@ <div id="footer"> - <span id="generator-link"><a href="http://wordpress.org/" title="<?php _e( 'WordPress', 'sandbox' ) ?>" rel="generator"><?php _e( 'WordPress', 'sandbox' ) ?></a></span> @@ -19,6 +10,3 @@ index cd88245a..672a22a4 100644 <span class="meta-sep">|</span> <span id="theme-link"><a href="http://www.plaintxt.org/themes/sandbox/" title="<?php _e( 'Sandbox theme for WordPress', 'sandbox' ) ?>" rel="designer"><?php _e( 'Sandbox', 'sandbox' ) ?></a></span> </div><!-- #footer --> --- -2.17.1 - diff --git a/patches/themes/0084-Patch-theme-tanzaku.patch b/patches/themes/0084-Patch-theme-tanzaku.patch index b3edde04250d71af939cafeee284e766f3ca401f..0548146143650962df13d38f9857f5bb732b2230 100644 --- a/patches/themes/0084-Patch-theme-tanzaku.patch +++ b/patches/themes/0084-Patch-theme-tanzaku.patch @@ -1,17 +1,8 @@ -From 927430e7f8c1d4550995fb766898c2e7362c4d15 Mon Sep 17 00:00:00 2001 -From: root <root@rivolta.investici.org> -Date: Tue, 7 Dec 2010 15:45:18 +0000 -Subject: [PATCH 084/229] Patch theme tanzaku - ---- - wp-content/themes/tanzaku/footer.php | 6 ++---- - 1 file changed, 2 insertions(+), 4 deletions(-) - diff --git a/wp-content/themes/tanzaku/footer.php b/wp-content/themes/tanzaku/footer.php -index dd2743c0..326d6ea1 100644 +index dd2743c0a..326d6ea1c 100644 --- a/wp-content/themes/tanzaku/footer.php +++ b/wp-content/themes/tanzaku/footer.php -@@ -2,10 +2,7 @@ +@@ -2,9 +2,7 @@ <div id="footer-wrapper"> <div id="footer"> <p> @@ -22,6 +13,3 @@ index dd2743c0..326d6ea1 100644 with "tanzaku" WordPress theme by <a href="http://www.tripleships.com/">TRIPLESHIPS.Inc</a> </p> </div> --- -2.17.1 - diff --git a/patches/themes/0085-Patch-theme-the-scenery.patch b/patches/themes/0085-Patch-theme-the-scenery.patch index 11774f55213c8d15e1e00f484d7aa9b3c4c6200d..6857204add2ed7685dd325a406a439042ba702cd 100644 --- a/patches/themes/0085-Patch-theme-the-scenery.patch +++ b/patches/themes/0085-Patch-theme-the-scenery.patch @@ -1,17 +1,8 @@ -From ae6820e86b6dc49717697e7b754e43d26527a553 Mon Sep 17 00:00:00 2001 -From: root <root@rivolta.investici.org> -Date: Tue, 7 Dec 2010 15:54:22 +0000 -Subject: [PATCH 085/229] Patch theme the-scenery - ---- - wp-content/themes/the-scenery/footer.php | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - diff --git a/wp-content/themes/the-scenery/footer.php b/wp-content/themes/the-scenery/footer.php -index 74923fc2..1fe1dd47 100644 +index 74923fc22..1fe1dd47d 100644 --- a/wp-content/themes/the-scenery/footer.php +++ b/wp-content/themes/the-scenery/footer.php -@@ -29,8 +29,7 @@ +@@ -29,7 +29,7 @@ <div id="footer"> <div id="footer-shadow"></div> <div id="footer-body"> @@ -20,6 +11,3 @@ index 74923fc2..1fe1dd47 100644 <?php wp_footer(); ?> </div> </div> --- -2.17.1 - diff --git a/patches/themes/0086-Patch-theme-threattocreativity.patch b/patches/themes/0086-Patch-theme-threattocreativity.patch index 77bf835f06e02f0415ebf14a4503bc0df3d1318e..c08a7ab88307ed9cd379119d26532f7db9d0af94 100644 --- a/patches/themes/0086-Patch-theme-threattocreativity.patch +++ b/patches/themes/0086-Patch-theme-threattocreativity.patch @@ -1,30 +1,14 @@ -From fc498bf53cce10d981c95cc635b9a1ca839d6f9e Mon Sep 17 00:00:00 2001 -From: root <root@rivolta.investici.org> -Date: Tue, 7 Dec 2010 15:55:55 +0000 -Subject: [PATCH 086/229] Patch theme threattocreativity - ---- - wp-content/themes/threattocreativity/footer.php | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) - -diff --git a/wp-content/themes/threattocreativity/footer.php b/wp-content/themes/threattocreativity/footer.php -index 4ae6a58e..81ebdbc9 100644 ---- a/wp-content/themes/threattocreativity/footer.php -+++ b/wp-content/themes/threattocreativity/footer.php -@@ -6,12 +6,11 @@ - <?php bloginfo('description'); ?> - - -- <br /><br />Theme by <strong><a href="http://www.maxisnow.com" target="_maxisnow">Max is NOW!</a></strong><br />Powered by <a href="http://www.wordpress.org" target="_blank"> -+ <br /><br />Theme by <strong><a href="http://www.maxisnow.com" target="_maxisnow">Max is NOW!</a></strong><br />Powered by <a href="http://www.autistici.org"> - <strong> -- WordPress -+ R* - </strong> - </a> - </div> - </div> - </body> --- -2.17.1 - +--- footer.php 2011-05-15 19:24:28.000000000 -0700 ++++ footer.php.patched 2021-02-21 22:39:08.389121139 -0800 +@@ -6,9 +6,9 @@ + <?php bloginfo('description'); ?> + + +- <br /><br />ThreatToCreativity v3 by <strong><a href="http://www.robopony.com" target="robopony">Max is NOW!</a></strong><br />Powered by <a href="http://www.wordpress.org" target="_blank"> ++ <br /><br />ThreatToCreativity v3 by <strong><a href="http://www.robopony.com" target="robopony">Max is NOW!</a></strong><br />Powered by <a href="http://www.autistici.org"> + <strong> +- WordPress ++ R* + </strong> + </a> + </div> diff --git a/patches/themes/0165-remove-google-fonts.patch b/patches/themes/0165-remove-google-fonts.patch index 27fe68f44f6f9a486babc86fe70cba4dd4d1935f..94175e3d5daa8d51bdc424e8c8f464ff294b295a 100644 --- a/patches/themes/0165-remove-google-fonts.patch +++ b/patches/themes/0165-remove-google-fonts.patch @@ -1,17 +1,7 @@ From 264c582530c6036b9ed4425572d95af4f2263927 Mon Sep 17 00:00:00 2001 From: lucha <lucha@paranoici.org> Date: Sun, 6 Jan 2013 20:39:55 +0100 -Subject: [PATCH 165/229] Remove Google API, google fonts, flash plugin and - fixed Std WP themes footers - ---- - wp-content/themes/twentyeleven/footer.php | 5 ++-- - wp-content/themes/twentythirteen/footer.php | 6 ++-- - .../themes/twentythirteen/functions.php | 30 ------------------- - wp-content/themes/twentytwelve/footer.php | 4 +-- - wp-content/themes/twentytwelve/functions.php | 26 +--------------- - wp-includes/script-loader.php | 9 ++++-- - 8 files changed, 24 insertions(+), 85 deletions(-) +Subject: [PATCH 165/229] Remove Google API, google fonts, flash plugin diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index 99ef20f3..dd8cabf8 100644 diff --git a/patches/themes/0165-twentyeleven-footer.patch b/patches/themes/0165-twentyeleven-footer.patch index 18bcace3ba13603fc71aad1f461113037677cdb0..938175d855f0e826951a9855888449daf2021168 100644 --- a/patches/themes/0165-twentyeleven-footer.patch +++ b/patches/themes/0165-twentyeleven-footer.patch @@ -1,22 +1,16 @@ -diff --git a/wp-content/themes/twentyeleven/footer.php b/wp-content/themes/twentyeleven/footer.php -index 53fa696e..ad8a99d7 100644 ---- a/wp-content/themes/twentyeleven/footer.php -+++ b/wp-content/themes/twentyeleven/footer.php -@@ -26,14 +26,13 @@ - - <div id="site-generator"> - <?php do_action( 'twentyeleven_credits' ); ?> -+ - <?php - if ( function_exists( 'the_privacy_policy_link' ) ) { - the_privacy_policy_link( '', '<span role="separator" aria-hidden="true"></span>' ); - } - ?> -- <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentyeleven' ) ); ?>" class="imprint" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyeleven' ); ?>"> -- <?php printf( __( 'Proudly powered by %s', 'twentyeleven' ), 'WordPress' ); ?> -- </a> -+ <strong>Proudly powered by <a href="http://www.autistici.org">R*</a></strong> - </div> - </footer><!-- #colophon --> - </div><!-- #page --> - +--- footer.php 2020-12-09 00:14:38.000000000 -0800 ++++ footer.php.patched 2021-02-21 22:43:25.579771689 -0800 +@@ -31,12 +31,7 @@ + the_privacy_policy_link( '', '<span role="separator" aria-hidden="true"></span>' ); + } + ?> +- <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentyeleven' ) ); ?>" class="imprint" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyeleven' ); ?>"> +- <?php +- /* translators: %s: WordPress */ +- printf( __( 'Proudly powered by %s', 'twentyeleven' ), 'WordPress' ); +- ?> +- </a> ++ <strong>Proudly powered by <a href="http://www.autistici.org">R*</a></strong> + </div> + </footer><!-- #colophon --> + </div><!-- #page --> diff --git a/patches/themes/0165-twentythirteen-footer-and-google-fonts.patch b/patches/themes/0165-twentythirteen-footer-and-google-fonts.patch index 6b3a99baf3a1441857e61efa018d31c699380141..724e8376fb385587aeae3d635a00292d263dfd5a 100644 --- a/patches/themes/0165-twentythirteen-footer-and-google-fonts.patch +++ b/patches/themes/0165-twentythirteen-footer-and-google-fonts.patch @@ -21,43 +21,66 @@ index 858f110b..5bf69ea3 100644 </footer><!-- #colophon --> </div><!-- #page --> diff --git a/wp-content/themes/twentythirteen/functions.php b/wp-content/themes/twentythirteen/functions.php -index 5c021fbe..2b2eb72f 100644 +index 596b5dc02..60c93029d 100644 --- a/wp-content/themes/twentythirteen/functions.php +++ b/wp-content/themes/twentythirteen/functions.php -@@ -219,36 +219,6 @@ add_action( 'after_setup_theme', 'twentythirteen_setup' ); +@@ -221,15 +221,15 @@ add_action( 'after_setup_theme', 'twentythirteen_setup' ); function twentythirteen_fonts_url() { - $fonts_url = ''; - -- /* Translators: If there are characters in your language that are not -- * supported by Source Sans Pro, translate this to 'off'. Do not translate -- * into your own language. -- */ -- $source_sans_pro = _x( 'on', 'Source Sans Pro font: on or off', 'twentythirteen' ); -- -- /* Translators: If there are characters in your language that are not -- * supported by Bitter, translate this to 'off'. Do not translate into your -- * own language. -- */ -- $bitter = _x( 'on', 'Bitter font: on or off', 'twentythirteen' ); -- -- if ( 'off' !== $source_sans_pro || 'off' !== $bitter ) { -- $font_families = array(); -- -- if ( 'off' !== $source_sans_pro ) { -- $font_families[] = 'Source Sans Pro:300,400,700,300italic,400italic,700italic'; -- } -- -- if ( 'off' !== $bitter ) { -- $font_families[] = 'Bitter:400,700'; -- } -- -- $query_args = array( -- 'family' => urlencode( implode( '|', $font_families ) ), -- 'subset' => urlencode( 'latin,latin-ext' ), -- ); -- $fonts_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' ); -- } -- - return $fonts_url; + $fonts_url = ''; + +- /* +- * translators: If there are characters in your language that are not supported +- * by Source Sans Pro, translate this to 'off'. Do not translate into your own language. ++ /* Translators: If there are characters in your language that are not ++ * supported by Source Sans Pro, translate this to 'off'. Do not translate ++ * into your own language. + */ + $source_sans_pro = _x( 'on', 'Source Sans Pro font: on or off', 'twentythirteen' ); + +- /* +- * translators: If there are characters in your language that are not supported +- * by Bitter, translate this to 'off'. Do not translate into your own language. ++ /* Translators: If there are characters in your language that are not ++ * supported by Bitter, translate this to 'off'. Do not translate into your ++ * own language. + */ + $bitter = _x( 'on', 'Bitter font: on or off', 'twentythirteen' ); + +@@ -247,11 +247,12 @@ function twentythirteen_fonts_url() { + $query_args = array( + 'family' => urlencode( implode( '|', $font_families ) ), + 'subset' => urlencode( 'latin,latin-ext' ), +- 'display' => urlencode( 'fallback' ), + ); +- $fonts_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' ); ++ $fonts_url = add_query_arg( $query_args, '' ); + } + ++/*AI fix - tolto google font */ ++ + return $fonts_url; } - + +@@ -304,21 +305,8 @@ add_action( 'wp_enqueue_scripts', 'twentythirteen_scripts_styles' ); + * @param string $relation_type The relation type the URLs are printed. + * @return array URLs to print for resource hints. + */ +-function twentythirteen_resource_hints( $urls, $relation_type ) { +- if ( wp_style_is( 'twentythirteen-fonts', 'queue' ) && 'preconnect' === $relation_type ) { +- if ( version_compare( $GLOBALS['wp_version'], '4.7-alpha', '>=' ) ) { +- $urls[] = array( +- 'href' => 'https://fonts.gstatic.com', +- 'crossorigin', +- ); +- } else { +- $urls[] = 'https://fonts.gstatic.com'; +- } +- } + +- return $urls; +-} +-add_filter( 'wp_resource_hints', 'twentythirteen_resource_hints', 10, 2 ); ++ /* AI fix google fonts */ + + /** + * Enqueue styles for the block-based editor. diff --git a/patches/themes/0165-twentythirteen-footer.patch b/patches/themes/0165-twentythirteen-footer.patch new file mode 100644 index 0000000000000000000000000000000000000000..fa52605a95d6d70293efa6db292db12986383075 --- /dev/null +++ b/patches/themes/0165-twentythirteen-footer.patch @@ -0,0 +1,16 @@ +--- footer.php 2020-12-09 00:15:28.000000000 -0800 ++++ footer.php.patched 2021-02-21 22:50:12.980335684 -0800 +@@ -21,12 +21,7 @@ + the_privacy_policy_link( '', '<span role="separator" aria-hidden="true"></span>' ); + } + ?> +- <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentythirteen' ) ); ?>" class="imprint"> +- <?php +- /* translators: %s: WordPress */ +- printf( __( 'Proudly powered by %s', 'twentythirteen' ), 'WordPress' ); +- ?> +- </a> ++ <strong>Proudly powered by <a href="http://www.autistici.org">R*</a></strong> + </div><!-- .site-info --> + </footer><!-- #colophon --> + </div><!-- #page --> diff --git a/patches/themes/0165-twentytwelve-footer.patch b/patches/themes/0165-twentytwelve-footer.patch new file mode 100644 index 0000000000000000000000000000000000000000..33823c282e9b7eef4058868bc01ddf8bfc894bab --- /dev/null +++ b/patches/themes/0165-twentytwelve-footer.patch @@ -0,0 +1,16 @@ +--- footer.php 2020-12-09 00:15:06.000000000 -0800 ++++ /home/lucha/Code/noblogs-wp/wp-content/themes/twentytwelve/footer.php 2021-02-21 19:32:36.466851086 -0800 +@@ -18,12 +18,7 @@ + the_privacy_policy_link( '', '<span role="separator" aria-hidden="true"></span>' ); + } + ?> +- <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'twentytwelve' ) ); ?>" class="imprint" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentytwelve' ); ?>"> +- <?php +- /* translators: %s: WordPress */ +- printf( __( 'Proudly powered by %s', 'twentytwelve' ), 'WordPress' ); +- ?> +- </a> ++ <strong>Proudly powered by <a href="http://www.autistici.org">R*</a></strong> + </div><!-- .site-info --> + </footer><!-- #colophon --> + </div><!-- #page --> diff --git a/patches/themes/0187-Patch-themes-twenty.patch b/patches/themes/0187-Patch-themes-twenty.patch index 1cc570e55a725f5ee85780c01355e2e1f0b2978f..560f0076ba9643c582e76384d128155f304779b7 100644 --- a/patches/themes/0187-Patch-themes-twenty.patch +++ b/patches/themes/0187-Patch-themes-twenty.patch @@ -247,26 +247,6 @@ index 4763e99a..3752b700 100644 </div><!-- #site-generator --> </div><!-- #colophon --> -diff --git a/wp-content/themes/twentythirteen/functions.php b/wp-content/themes/twentythirteen/functions.php -index 2b2eb72f..9e2175cd 100644 ---- a/wp-content/themes/twentythirteen/functions.php -+++ b/wp-content/themes/twentythirteen/functions.php -@@ -271,6 +271,7 @@ add_action( 'wp_enqueue_scripts', 'twentythirteen_scripts_styles' ); - * @param string $relation_type The relation type the URLs are printed. - * @return array URLs to print for resource hints. - */ -+/* - function twentythirteen_resource_hints( $urls, $relation_type ) { - if ( wp_style_is( 'twentythirteen-fonts', 'queue' ) && 'preconnect' === $relation_type ) { - if ( version_compare( $GLOBALS['wp_version'], '4.7-alpha', '>=' ) ) { -@@ -286,6 +287,7 @@ function twentythirteen_resource_hints( $urls, $relation_type ) { - return $urls; - } - add_filter( 'wp_resource_hints', 'twentythirteen_resource_hints', 10, 2 ); -+*/ - - /** - * Enqueue styles for the block-based editor. diff --git a/wp-content/themes/twentytwelve/functions.php b/wp-content/themes/twentytwelve/functions.php index bdda0c64..fb584016 100644 --- a/wp-content/themes/twentytwelve/functions.php diff --git a/patches/themes/twentythirteen-google-fonts.patch b/patches/themes/twentythirteen-google-fonts.patch new file mode 100644 index 0000000000000000000000000000000000000000..f62945bf124350af3cc58ed5f6568ee61be44faa --- /dev/null +++ b/patches/themes/twentythirteen-google-fonts.patch @@ -0,0 +1,64 @@ +diff --git a/wp-content/themes/twentythirteen/functions.php b/wp-content/themes/twentythirteen/functions.php +index 596b5dc02..60c93029d 100644 +--- a/wp-content/themes/twentythirteen/functions.php ++++ b/wp-content/themes/twentythirteen/functions.php +@@ -221,15 +221,15 @@ add_action( 'after_setup_theme', 'twentythirteen_setup' ); + function twentythirteen_fonts_url() { + $fonts_url = ''; + +- /* +- * translators: If there are characters in your language that are not supported +- * by Source Sans Pro, translate this to 'off'. Do not translate into your own language. ++ /* Translators: If there are characters in your language that are not ++ * supported by Source Sans Pro, translate this to 'off'. Do not translate ++ * into your own language. + */ + $source_sans_pro = _x( 'on', 'Source Sans Pro font: on or off', 'twentythirteen' ); + +- /* +- * translators: If there are characters in your language that are not supported +- * by Bitter, translate this to 'off'. Do not translate into your own language. ++ /* Translators: If there are characters in your language that are not ++ * supported by Bitter, translate this to 'off'. Do not translate into your ++ * own language. + */ + $bitter = _x( 'on', 'Bitter font: on or off', 'twentythirteen' ); + +@@ -247,11 +247,12 @@ function twentythirteen_fonts_url() { + $query_args = array( + 'family' => urlencode( implode( '|', $font_families ) ), + 'subset' => urlencode( 'latin,latin-ext' ), +- 'display' => urlencode( 'fallback' ), + ); +- $fonts_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' ); ++ $fonts_url = add_query_arg( $query_args, '' ); + } + ++/*AI fix - tolto google font */ ++ + return $fonts_url; + } + +@@ -304,21 +305,8 @@ add_action( 'wp_enqueue_scripts', 'twentythirteen_scripts_styles' ); + * @param string $relation_type The relation type the URLs are printed. + * @return array URLs to print for resource hints. + */ +-function twentythirteen_resource_hints( $urls, $relation_type ) { +- if ( wp_style_is( 'twentythirteen-fonts', 'queue' ) && 'preconnect' === $relation_type ) { +- if ( version_compare( $GLOBALS['wp_version'], '4.7-alpha', '>=' ) ) { +- $urls[] = array( +- 'href' => 'https://fonts.gstatic.com', +- 'crossorigin', +- ); +- } else { +- $urls[] = 'https://fonts.gstatic.com'; +- } +- } + +- return $urls; +-} +-add_filter( 'wp_resource_hints', 'twentythirteen_resource_hints', 10, 2 ); ++ /* AI fix google fonts */ + + /** + * Enqueue styles for the block-based editor. diff --git a/patches/themes/twentytwelve-google-fonts.patch b/patches/themes/twentytwelve-google-fonts.patch new file mode 100644 index 0000000000000000000000000000000000000000..4bc6ce71f2e57ccd196b67b703ea83ec2294089b --- /dev/null +++ b/patches/themes/twentytwelve-google-fonts.patch @@ -0,0 +1,742 @@ +--- functions.php 2020-12-09 00:15:06.000000000 -0800 ++++ /home/lucha/Code/noblogs-wp/wp-content/themes/twentytwelve/footer.php 2021-02-21 19:32:36.466851086 -0800 +@@ -1,723 +1,28 @@ + <?php + /** +- * Twenty Twelve functions and definitions ++ * The template for displaying the footer + * +- * Sets up the theme and provides some helper functions, which are used +- * in the theme as custom template tags. Others are attached to action and +- * filter hooks in WordPress to change core functionality. +- * +- * When using a child theme you can override certain functions (those wrapped +- * in a function_exists() call) by defining them first in your child theme's +- * functions.php file. The child theme's functions.php file is included before +- * the parent theme's file, so the child theme functions would be used. +- * +- * @link https://developer.wordpress.org/themes/basics/theme-functions/ +- * @link https://developer.wordpress.org/themes/advanced-topics/child-themes/ +- * +- * Functions that are not pluggable (not wrapped in function_exists()) are instead attached +- * to a filter or action hook. +- * +- * For more information on hooks, actions, and filters, @link https://developer.wordpress.org/plugins/ ++ * Contains footer content and the closing of the #main and #page div elements. + * + * @package WordPress + * @subpackage Twenty_Twelve + * @since Twenty Twelve 1.0 + */ +- +-// Set up the content width value based on the theme's design and stylesheet. +-if ( ! isset( $content_width ) ) { +- $content_width = 625; +-} +- +-/** +- * Twenty Twelve setup. +- * +- * Sets up theme defaults and registers the various WordPress features that +- * Twenty Twelve supports. +- * +- * @uses load_theme_textdomain() For translation/localization support. +- * @uses add_editor_style() To add a Visual Editor stylesheet. +- * @uses add_theme_support() To add support for post thumbnails, automatic feed links, +- * custom background, and post formats. +- * @uses register_nav_menu() To add support for navigation menus. +- * @uses set_post_thumbnail_size() To set a custom post thumbnail size. +- * +- * @since Twenty Twelve 1.0 +- */ +-function twentytwelve_setup() { +- /* +- * Makes Twenty Twelve available for translation. +- * +- * Translations can be filed at WordPress.org. See: https://translate.wordpress.org/projects/wp-themes/twentytwelve +- * If you're building a theme based on Twenty Twelve, use a find and replace +- * to change 'twentytwelve' to the name of your theme in all the template files. +- */ +- load_theme_textdomain( 'twentytwelve' ); +- +- // This theme styles the visual editor with editor-style.css to match the theme style. +- add_editor_style(); +- +- // Load regular editor styles into the new block-based editor. +- add_theme_support( 'editor-styles' ); +- +- // Load default block styles. +- add_theme_support( 'wp-block-styles' ); +- +- // Add support for responsive embeds. +- add_theme_support( 'responsive-embeds' ); +- +- // Add support for custom color scheme. +- add_theme_support( +- 'editor-color-palette', +- array( +- array( +- 'name' => __( 'Blue', 'twentytwelve' ), +- 'slug' => 'blue', +- 'color' => '#21759b', +- ), +- array( +- 'name' => __( 'Dark Gray', 'twentytwelve' ), +- 'slug' => 'dark-gray', +- 'color' => '#444', +- ), +- array( +- 'name' => __( 'Medium Gray', 'twentytwelve' ), +- 'slug' => 'medium-gray', +- 'color' => '#9f9f9f', +- ), +- array( +- 'name' => __( 'Light Gray', 'twentytwelve' ), +- 'slug' => 'light-gray', +- 'color' => '#e6e6e6', +- ), +- array( +- 'name' => __( 'White', 'twentytwelve' ), +- 'slug' => 'white', +- 'color' => '#fff', +- ), +- ) +- ); +- +- // Adds RSS feed links to <head> for posts and comments. +- add_theme_support( 'automatic-feed-links' ); +- +- // This theme supports a variety of post formats. +- add_theme_support( 'post-formats', array( 'aside', 'image', 'link', 'quote', 'status' ) ); +- +- // This theme uses wp_nav_menu() in one location. +- register_nav_menu( 'primary', __( 'Primary Menu', 'twentytwelve' ) ); +- +- /* +- * This theme supports custom background color and image, +- * and here we also set up the default background color. +- */ +- add_theme_support( +- 'custom-background', +- array( +- 'default-color' => 'e6e6e6', +- ) +- ); +- +- // This theme uses a custom image size for featured images, displayed on "standard" posts. +- add_theme_support( 'post-thumbnails' ); +- set_post_thumbnail_size( 624, 9999 ); // Unlimited height, soft crop. +- +- // Indicate widget sidebars can use selective refresh in the Customizer. +- add_theme_support( 'customize-selective-refresh-widgets' ); +-} +-add_action( 'after_setup_theme', 'twentytwelve_setup' ); +- +-/** +- * Add support for a custom header image. +- */ +-require get_template_directory() . '/inc/custom-header.php'; +- +-/** +- * Return the Google font stylesheet URL if available. +- * +- * The use of Open Sans by default is localized. For languages that use +- * characters not supported by the font, the font can be disabled. +- * +- * @since Twenty Twelve 1.2 +- * +- * @return string Font stylesheet or empty string if disabled. +- */ +-function twentytwelve_get_font_url() { +- $font_url = ''; +- +- /* +- * translators: If there are characters in your language that are not supported +- * by Open Sans, translate this to 'off'. Do not translate into your own language. +- */ +- if ( 'off' !== _x( 'on', 'Open Sans font: on or off', 'twentytwelve' ) ) { +- $subsets = 'latin,latin-ext'; +- +- /* +- * translators: To add an additional Open Sans character subset specific to your language, +- * translate this to 'greek', 'cyrillic' or 'vietnamese'. Do not translate into your own language. +- */ +- $subset = _x( 'no-subset', 'Open Sans font: add new subset (greek, cyrillic, vietnamese)', 'twentytwelve' ); +- +- if ( 'cyrillic' === $subset ) { +- $subsets .= ',cyrillic,cyrillic-ext'; +- } elseif ( 'greek' === $subset ) { +- $subsets .= ',greek,greek-ext'; +- } elseif ( 'vietnamese' === $subset ) { +- $subsets .= ',vietnamese'; +- } +- +- $query_args = array( +- 'family' => urlencode( 'Open Sans:400italic,700italic,400,700' ), +- 'subset' => urlencode( $subsets ), +- 'display' => urlencode( 'fallback' ), +- ); +- $font_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' ); +- } +- +- return $font_url; +-} +- +-/** +- * Enqueue scripts and styles for front end. +- * +- * @since Twenty Twelve 1.0 +- */ +-function twentytwelve_scripts_styles() { +- global $wp_styles; +- +- /* +- * Adds JavaScript to pages with the comment form to support +- * sites with threaded comments (when in use). +- */ +- if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { +- wp_enqueue_script( 'comment-reply' ); +- } +- +- // Adds JavaScript for handling the navigation menu hide-and-show behavior. +- wp_enqueue_script( 'twentytwelve-navigation', get_template_directory_uri() . '/js/navigation.js', array( 'jquery' ), '20141205', true ); +- +- $font_url = twentytwelve_get_font_url(); +- if ( ! empty( $font_url ) ) { +- wp_enqueue_style( 'twentytwelve-fonts', esc_url_raw( $font_url ), array(), null ); +- } +- +- // Loads our main stylesheet. +- wp_enqueue_style( 'twentytwelve-style', get_stylesheet_uri(), array(), '20190507' ); +- +- // Theme block stylesheet. +- wp_enqueue_style( 'twentytwelve-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentytwelve-style' ), '20190406' ); +- +- // Loads the Internet Explorer specific stylesheet. +- wp_enqueue_style( 'twentytwelve-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentytwelve-style' ), '20150214' ); +- $wp_styles->add_data( 'twentytwelve-ie', 'conditional', 'lt IE 9' ); +-} +-add_action( 'wp_enqueue_scripts', 'twentytwelve_scripts_styles' ); +- +-/** +- * Enqueue styles for the block-based editor. +- * +- * @since Twenty Twelve 2.6 +- */ +-function twentytwelve_block_editor_styles() { +- // Block styles. +- wp_enqueue_style( 'twentytwelve-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css', array(), '20190406' ); +- // Add custom fonts. +- wp_enqueue_style( 'twentytwelve-fonts', twentytwelve_get_font_url(), array(), null ); +-} +-add_action( 'enqueue_block_editor_assets', 'twentytwelve_block_editor_styles' ); +- +-/** +- * Add preconnect for Google Fonts. +- * +- * @since Twenty Twelve 2.2 +- * +- * @param array $urls URLs to print for resource hints. +- * @param string $relation_type The relation type the URLs are printed. +- * @return array URLs to print for resource hints. +- */ +-function twentytwelve_resource_hints( $urls, $relation_type ) { +- if ( wp_style_is( 'twentytwelve-fonts', 'queue' ) && 'preconnect' === $relation_type ) { +- if ( version_compare( $GLOBALS['wp_version'], '4.7-alpha', '>=' ) ) { +- $urls[] = array( +- 'href' => 'https://fonts.gstatic.com', +- 'crossorigin', +- ); +- } else { +- $urls[] = 'https://fonts.gstatic.com'; +- } +- } +- +- return $urls; +-} +-add_filter( 'wp_resource_hints', 'twentytwelve_resource_hints', 10, 2 ); +- +-/** +- * Filter TinyMCE CSS path to include Google Fonts. +- * +- * Adds additional stylesheets to the TinyMCE editor if needed. +- * +- * @uses twentytwelve_get_font_url() To get the Google Font stylesheet URL. +- * +- * @since Twenty Twelve 1.2 +- * +- * @param string $mce_css CSS path to load in TinyMCE. +- * @return string Filtered CSS path. +- */ +-function twentytwelve_mce_css( $mce_css ) { +- $font_url = twentytwelve_get_font_url(); +- +- if ( empty( $font_url ) ) { +- return $mce_css; +- } +- +- if ( ! empty( $mce_css ) ) { +- $mce_css .= ','; +- } +- +- $mce_css .= esc_url_raw( str_replace( ',', '%2C', $font_url ) ); +- +- return $mce_css; +-} +-add_filter( 'mce_css', 'twentytwelve_mce_css' ); +- +-/** +- * Filter the page title. +- * +- * Creates a nicely formatted and more specific title element text +- * for output in head of document, based on current view. +- * +- * @since Twenty Twelve 1.0 +- * +- * @param string $title Default title text for current view. +- * @param string $sep Optional separator. +- * @return string Filtered title. +- */ +-function twentytwelve_wp_title( $title, $sep ) { +- global $paged, $page; +- +- if ( is_feed() ) { +- return $title; +- } +- +- // Add the site name. +- $title .= get_bloginfo( 'name', 'display' ); +- +- // Add the site description for the home/front page. +- $site_description = get_bloginfo( 'description', 'display' ); +- if ( $site_description && ( is_home() || is_front_page() ) ) { +- $title = "$title $sep $site_description"; +- } +- +- // Add a page number if necessary. +- if ( ( $paged >= 2 || $page >= 2 ) && ! is_404() ) { +- /* translators: %s: Page number. */ +- $title = "$title $sep " . sprintf( __( 'Page %s', 'twentytwelve' ), max( $paged, $page ) ); +- } +- +- return $title; +-} +-add_filter( 'wp_title', 'twentytwelve_wp_title', 10, 2 ); +- +-/** +- * Filter the page menu arguments. +- * +- * Makes our wp_nav_menu() fallback -- wp_page_menu() -- show a home link. +- * +- * @since Twenty Twelve 1.0 +- */ +-function twentytwelve_page_menu_args( $args ) { +- if ( ! isset( $args['show_home'] ) ) { +- $args['show_home'] = true; +- } +- return $args; +-} +-add_filter( 'wp_page_menu_args', 'twentytwelve_page_menu_args' ); +- +-/** +- * Register sidebars. +- * +- * Registers our main widget area and the front page widget areas. +- * +- * @since Twenty Twelve 1.0 +- */ +-function twentytwelve_widgets_init() { +- register_sidebar( +- array( +- 'name' => __( 'Main Sidebar', 'twentytwelve' ), +- 'id' => 'sidebar-1', +- 'description' => __( 'Appears on posts and pages except the optional Front Page template, which has its own widgets', 'twentytwelve' ), +- 'before_widget' => '<aside id="%1$s" class="widget %2$s">', +- 'after_widget' => '</aside>', +- 'before_title' => '<h3 class="widget-title">', +- 'after_title' => '</h3>', +- ) +- ); +- +- register_sidebar( +- array( +- 'name' => __( 'First Front Page Widget Area', 'twentytwelve' ), +- 'id' => 'sidebar-2', +- 'description' => __( 'Appears when using the optional Front Page template with a page set as Static Front Page', 'twentytwelve' ), +- 'before_widget' => '<aside id="%1$s" class="widget %2$s">', +- 'after_widget' => '</aside>', +- 'before_title' => '<h3 class="widget-title">', +- 'after_title' => '</h3>', +- ) +- ); +- +- register_sidebar( +- array( +- 'name' => __( 'Second Front Page Widget Area', 'twentytwelve' ), +- 'id' => 'sidebar-3', +- 'description' => __( 'Appears when using the optional Front Page template with a page set as Static Front Page', 'twentytwelve' ), +- 'before_widget' => '<aside id="%1$s" class="widget %2$s">', +- 'after_widget' => '</aside>', +- 'before_title' => '<h3 class="widget-title">', +- 'after_title' => '</h3>', +- ) +- ); +-} +-add_action( 'widgets_init', 'twentytwelve_widgets_init' ); +- +-if ( ! function_exists( 'twentytwelve_content_nav' ) ) : +- /** +- * Displays navigation to next/previous pages when applicable. +- * +- * @since Twenty Twelve 1.0 +- */ +- function twentytwelve_content_nav( $html_id ) { +- global $wp_query; +- +- if ( $wp_query->max_num_pages > 1 ) : ?> +- <nav id="<?php echo esc_attr( $html_id ); ?>" class="navigation" role="navigation"> +- <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentytwelve' ); ?></h3> +- <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentytwelve' ) ); ?></div> +- <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?></div> +- </nav><!-- .navigation --> +- <?php +- endif; +- } +-endif; +- +-if ( ! function_exists( 'twentytwelve_comment' ) ) : +- /** +- * Template for comments and pingbacks. +- * +- * To override this walker in a child theme without modifying the comments template +- * simply create your own twentytwelve_comment(), and that function will be used instead. +- * +- * Used as a callback by wp_list_comments() for displaying the comments. +- * +- * @since Twenty Twelve 1.0 +- */ +- function twentytwelve_comment( $comment, $args, $depth ) { +- $GLOBALS['comment'] = $comment; +- switch ( $comment->comment_type ) : +- case 'pingback': +- case 'trackback': +- // Display trackbacks differently than normal comments. +- ?> +- <li <?php comment_class(); ?> id="comment-<?php comment_ID(); ?>"> +- <p><?php _e( 'Pingback:', 'twentytwelve' ); ?> <?php comment_author_link(); ?> <?php edit_comment_link( __( '(Edit)', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?></p> +- <?php +- break; +- default: +- // Proceed with normal comments. +- global $post; + ?> +- <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>"> +- <article id="comment-<?php comment_ID(); ?>" class="comment"> +- <header class="comment-meta comment-author vcard"> ++ </div><!-- #main .wrapper --> ++ <footer id="colophon" role="contentinfo"> ++ <div class="site-info"> ++ <?php do_action( 'twentytwelve_credits' ); ?> + <?php +- echo get_avatar( $comment, 44 ); +- printf( +- '<cite><b class="fn">%1$s</b> %2$s</cite>', +- get_comment_author_link(), +- // If current post author is also comment author, make it known visually. +- ( $comment->user_id === $post->post_author ) ? '<span>' . __( 'Post author', 'twentytwelve' ) . '</span>' : '' +- ); +- printf( +- '<a href="%1$s"><time datetime="%2$s">%3$s</time></a>', +- esc_url( get_comment_link( $comment->comment_ID ) ), +- get_comment_time( 'c' ), +- /* translators: 1: Date, 2: Time. */ +- sprintf( __( '%1$s at %2$s', 'twentytwelve' ), get_comment_date(), get_comment_time() ) +- ); +- ?> +- </header><!-- .comment-meta --> +- +- <?php +- $commenter = wp_get_current_commenter(); +- if ( $commenter['comment_author_email'] ) { +- $moderation_note = __( 'Your comment is awaiting moderation.', 'twentytwelve' ); +- } else { +- $moderation_note = __( 'Your comment is awaiting moderation. This is a preview; your comment will be visible after it has been approved.', 'twentytwelve' ); ++ if ( function_exists( 'the_privacy_policy_link' ) ) { ++ the_privacy_policy_link( '', '<span role="separator" aria-hidden="true"></span>' ); + } + ?> +- +- <?php if ( '0' == $comment->comment_approved ) : ?> +- <p class="comment-awaiting-moderation"><?php echo $moderation_note; ?></p> +- <?php endif; ?> +- +- <section class="comment-content comment"> +- <?php comment_text(); ?> +- <?php edit_comment_link( __( 'Edit', 'twentytwelve' ), '<p class="edit-link">', '</p>' ); ?> +- </section><!-- .comment-content --> +- +- <div class="reply"> +- <?php +- comment_reply_link( +- array_merge( +- $args, +- array( +- 'reply_text' => __( 'Reply', 'twentytwelve' ), +- 'after' => ' <span>↓</span>', +- 'depth' => $depth, +- 'max_depth' => $args['max_depth'], +- ) +- ) +- ); +- ?> +- </div><!-- .reply --> +- </article><!-- #comment-## --> +- <?php +- break; +- endswitch; // End comment_type check. +- } +-endif; +- +-if ( ! function_exists( 'twentytwelve_entry_meta' ) ) : +- /** +- * Set up post entry meta. +- * +- * Prints HTML with meta information for current post: categories, tags, permalink, author, and date. +- * +- * Create your own twentytwelve_entry_meta() to override in a child theme. +- * +- * @since Twenty Twelve 1.0 +- */ +- function twentytwelve_entry_meta() { +- /* translators: Used between list items, there is a space after the comma. */ +- $categories_list = get_the_category_list( __( ', ', 'twentytwelve' ) ); +- +- /* translators: Used between list items, there is a space after the comma. */ +- $tags_list = get_the_tag_list( '', __( ', ', 'twentytwelve' ) ); +- +- $date = sprintf( +- '<a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a>', +- esc_url( get_permalink() ), +- esc_attr( get_the_time() ), +- esc_attr( get_the_date( 'c' ) ), +- esc_html( get_the_date() ) +- ); +- +- $author = sprintf( +- '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>', +- esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), +- /* translators: %s: Author display name. */ +- esc_attr( sprintf( __( 'View all posts by %s', 'twentytwelve' ), get_the_author() ) ), +- get_the_author() +- ); +- +- if ( $tags_list && ! is_wp_error( $tags_list ) ) { +- /* translators: 1: Category name, 2: Tag name, 3: Date, 4: Author display name. */ +- $utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' ); +- } elseif ( $categories_list ) { +- /* translators: 1: Category name, 3: Date, 4: Author display name. */ +- $utility_text = __( 'This entry was posted in %1$s on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' ); +- } else { +- /* translators: 3: Date, 4: Author display name. */ +- $utility_text = __( 'This entry was posted on %3$s<span class="by-author"> by %4$s</span>.', 'twentytwelve' ); +- } +- +- printf( +- $utility_text, +- $categories_list, +- $tags_list, +- $date, +- $author +- ); +- } +-endif; +- +-/** +- * Extend the default WordPress body classes. +- * +- * Extends the default WordPress body class to denote: +- * 1. Using a full-width layout, when no active widgets in the sidebar +- * or full-width template. +- * 2. Front Page template: thumbnail in use and number of sidebars for +- * widget areas. +- * 3. White or empty background color to change the layout and spacing. +- * 4. Custom fonts enabled. +- * 5. Single or multiple authors. +- * +- * @since Twenty Twelve 1.0 +- * +- * @param array $classes Existing class values. +- * @return array Filtered class values. +- */ +-function twentytwelve_body_class( $classes ) { +- $background_color = get_background_color(); +- $background_image = get_background_image(); +- +- if ( ! is_active_sidebar( 'sidebar-1' ) || is_page_template( 'page-templates/full-width.php' ) ) { +- $classes[] = 'full-width'; +- } +- +- if ( is_page_template( 'page-templates/front-page.php' ) ) { +- $classes[] = 'template-front-page'; +- if ( has_post_thumbnail() ) { +- $classes[] = 'has-post-thumbnail'; +- } +- if ( is_active_sidebar( 'sidebar-2' ) && is_active_sidebar( 'sidebar-3' ) ) { +- $classes[] = 'two-sidebars'; +- } +- } +- +- if ( empty( $background_image ) ) { +- if ( empty( $background_color ) ) { +- $classes[] = 'custom-background-empty'; +- } elseif ( in_array( $background_color, array( 'fff', 'ffffff' ), true ) ) { +- $classes[] = 'custom-background-white'; +- } +- } +- +- // Enable custom font class only if the font CSS is queued to load. +- if ( wp_style_is( 'twentytwelve-fonts', 'queue' ) ) { +- $classes[] = 'custom-font-enabled'; +- } +- +- if ( ! is_multi_author() ) { +- $classes[] = 'single-author'; +- } +- +- return $classes; +-} +-add_filter( 'body_class', 'twentytwelve_body_class' ); +- +-/** +- * Adjust content width in certain contexts. +- * +- * Adjusts content_width value for full-width and single image attachment +- * templates, and when there are no active widgets in the sidebar. +- * +- * @since Twenty Twelve 1.0 +- */ +-function twentytwelve_content_width() { +- if ( is_page_template( 'page-templates/full-width.php' ) || is_attachment() || ! is_active_sidebar( 'sidebar-1' ) ) { +- global $content_width; +- $content_width = 960; +- } +-} +-add_action( 'template_redirect', 'twentytwelve_content_width' ); +- +-/** +- * Register postMessage support. +- * +- * Add postMessage support for site title and description for the Customizer. +- * +- * @since Twenty Twelve 1.0 +- * +- * @param WP_Customize_Manager $wp_customize Customizer object. +- */ +-function twentytwelve_customize_register( $wp_customize ) { +- $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; +- $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; +- $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; +- +- if ( isset( $wp_customize->selective_refresh ) ) { +- $wp_customize->selective_refresh->add_partial( +- 'blogname', +- array( +- 'selector' => '.site-title > a', +- 'container_inclusive' => false, +- 'render_callback' => 'twentytwelve_customize_partial_blogname', +- ) +- ); +- $wp_customize->selective_refresh->add_partial( +- 'blogdescription', +- array( +- 'selector' => '.site-description', +- 'container_inclusive' => false, +- 'render_callback' => 'twentytwelve_customize_partial_blogdescription', +- ) +- ); +- } +-} +-add_action( 'customize_register', 'twentytwelve_customize_register' ); +- +-/** +- * Render the site title for the selective refresh partial. +- * +- * @since Twenty Twelve 2.0 +- * +- * @see twentytwelve_customize_register() +- * +- * @return void +- */ +-function twentytwelve_customize_partial_blogname() { +- bloginfo( 'name' ); +-} +- +-/** +- * Render the site tagline for the selective refresh partial. +- * +- * @since Twenty Twelve 2.0 +- * +- * @see twentytwelve_customize_register() +- * +- * @return void +- */ +-function twentytwelve_customize_partial_blogdescription() { +- bloginfo( 'description' ); +-} +- +-/** +- * Enqueue JavaScript postMessage handlers for the Customizer. +- * +- * Binds JS handlers to make the Customizer preview reload changes asynchronously. +- * +- * @since Twenty Twelve 1.0 +- */ +-function twentytwelve_customize_preview_js() { +- wp_enqueue_script( 'twentytwelve-customizer', get_template_directory_uri() . '/js/theme-customizer.js', array( 'customize-preview' ), '20141120', true ); +-} +-add_action( 'customize_preview_init', 'twentytwelve_customize_preview_js' ); +- +-/** +- * Modifies tag cloud widget arguments to display all tags in the same font size +- * and use list format for better accessibility. +- * +- * @since Twenty Twelve 2.4 +- * +- * @param array $args Arguments for tag cloud widget. +- * @return array The filtered arguments for tag cloud widget. +- */ +-function twentytwelve_widget_tag_cloud_args( $args ) { +- $args['largest'] = 22; +- $args['smallest'] = 8; +- $args['unit'] = 'pt'; +- $args['format'] = 'list'; +- +- return $args; +-} +-add_filter( 'widget_tag_cloud_args', 'twentytwelve_widget_tag_cloud_args' ); +- +-if ( ! function_exists( 'wp_body_open' ) ) : +- /** +- * Fire the wp_body_open action. +- * +- * Added for backward compatibility to support pre-5.2.0 WordPress versions. +- * +- * @since Twenty Twelve 3.0 +- */ +- function wp_body_open() { +- /** +- * Triggered after the opening <body> tag. +- * +- * @since Twenty Twelve 3.0 +- */ +- do_action( 'wp_body_open' ); +- } +-endif; ++ <strong>Proudly powered by <a href="http://www.autistici.org">R*</a></strong> ++ </div><!-- .site-info --> ++ </footer><!-- #colophon --> ++</div><!-- #page --> ++ ++<?php wp_footer(); ?> ++</body> ++</html>