Skip to content
Snippets Groups Projects
Commit 526de9bd authored by ale's avatar ale
Browse files

Split the 0165 patch for every separate theme

parent 38376c3f
Branches
No related tags found
No related merge requests found
......@@ -13,142 +13,6 @@ Subject: [PATCH 165/229] Remove Google API, google fonts, flash plugin and
wp-includes/script-loader.php | 9 ++++--
8 files changed, 24 insertions(+), 85 deletions(-)
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 -->
diff --git a/wp-content/themes/twentythirteen/footer.php b/wp-content/themes/twentythirteen/footer.php
index 858f110b..5bf69ea3 100644
--- a/wp-content/themes/twentythirteen/footer.php
+++ b/wp-content/themes/twentythirteen/footer.php
@@ -16,14 +16,14 @@
<div class="site-info">
<?php do_action( 'twentythirteen_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/', 'twentythirteen' ) ); ?>" class="imprint">
- <?php 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/wp-content/themes/twentythirteen/functions.php b/wp-content/themes/twentythirteen/functions.php
index 5c021fbe..2b2eb72f 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' );
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;
}
diff --git a/wp-content/themes/twentytwelve/footer.php b/wp-content/themes/twentytwelve/footer.php
index 05e52e2b..2ca9b6c0 100644
--- a/wp-content/themes/twentytwelve/footer.php
+++ b/wp-content/themes/twentytwelve/footer.php
@@ -18,9 +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 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/wp-content/themes/twentytwelve/functions.php b/wp-content/themes/twentytwelve/functions.php
index ad89b2ac..bdda0c64 100644
--- a/wp-content/themes/twentytwelve/functions.php
+++ b/wp-content/themes/twentytwelve/functions.php
@@ -145,31 +145,7 @@ require( get_template_directory() . '/inc/custom-header.php' );
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' => 'Open+Sans:400italic,700italic,400,700',
- 'subset' => $subsets,
- );
- $font_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' );
- }
+ /* REMOVED GoogleApis*/
return $font_url;
}
diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php
index 99ef20f3..dd8cabf8 100644
--- a/wp-includes/script-loader.php
......
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 -->
diff --git a/wp-content/themes/twentythirteen/footer.php b/wp-content/themes/twentythirteen/footer.php
index 858f110b..5bf69ea3 100644
--- a/wp-content/themes/twentythirteen/footer.php
+++ b/wp-content/themes/twentythirteen/footer.php
@@ -16,14 +16,14 @@
<div class="site-info">
<?php do_action( 'twentythirteen_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/', 'twentythirteen' ) ); ?>" class="imprint">
- <?php 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/wp-content/themes/twentythirteen/functions.php b/wp-content/themes/twentythirteen/functions.php
index 5c021fbe..2b2eb72f 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' );
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;
}
diff --git a/wp-content/themes/twentytwelve/footer.php b/wp-content/themes/twentytwelve/footer.php
index 05e52e2b..2ca9b6c0 100644
--- a/wp-content/themes/twentytwelve/footer.php
+++ b/wp-content/themes/twentytwelve/footer.php
@@ -18,9 +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 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/wp-content/themes/twentytwelve/functions.php b/wp-content/themes/twentytwelve/functions.php
index ad89b2ac..bdda0c64 100644
--- a/wp-content/themes/twentytwelve/functions.php
+++ b/wp-content/themes/twentytwelve/functions.php
@@ -145,31 +145,7 @@ require( get_template_directory() . '/inc/custom-header.php' );
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' => 'Open+Sans:400italic,700italic,400,700',
- 'subset' => $subsets,
- );
- $font_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' );
- }
+ /* REMOVED GoogleApis*/
return $font_url;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment