WPtouch - Version 4.3.19

Version Description

Download this release

Release Info

Developer wptouch
Plugin Icon 128x128 WPtouch
Version 4.3.19
Comparing to
See all releases

Code changes from version 4.3.18 to 4.3.19

admin/js/wptouch-admin-4.js CHANGED
@@ -868,7 +868,6 @@ function wptouchTriggerSave( callback ) {
868
  success: function() {
869
  // Done saving, allow reload
870
  saving = false;
871
- // console.log( 'saved' )
872
  // Animate the admin spinner out
873
  jQuery( '#admin-spinner' ).animate({
874
  opacity: 0
868
  success: function() {
869
  // Done saving, allow reload
870
  saving = false;
 
871
  // Animate the admin spinner out
872
  jQuery( '#admin-spinner' ).animate({
873
  opacity: 0
admin/settings/html/text.php CHANGED
@@ -9,7 +9,7 @@
9
  <?php } ?>
10
 
11
  <?php if ( wptouch_admin_is_setting_pro() && defined( 'WPTOUCH_IS_FREE' ) ) { ?>
12
- <span class="pro"><a href="<?php echo admin_url( 'admin.php?page=wptouch-admin-go-pro' ); ?>"><?php _e( 'Pro', 'wptouch-pro' ); ?></a></span>
13
  <?php } ?>
14
 
15
- <input type="text" autocomplete="off" class="text" id="<?php wptouch_admin_the_setting_name(); ?>" name="<?php wptouch_admin_the_encoded_setting_name(); ?>" value="<?php wptouch_admin_the_setting_value(); ?>" placeholder="" <?php if ( wptouch_admin_is_setting_pro() && defined( 'WPTOUCH_IS_FREE' ) ) echo ' disabled '; ?> />
9
  <?php } ?>
10
 
11
  <?php if ( wptouch_admin_is_setting_pro() && defined( 'WPTOUCH_IS_FREE' ) ) { ?>
12
+ <span class="pro"><a href="<?php echo esc_url( admin_url( 'admin.php?page=wptouch-admin-go-pro' ) ); ?>"><?php _e( 'Pro', 'wptouch-pro' ); ?></a></span>
13
  <?php } ?>
14
 
15
+ <input type="text" autocomplete="off" class="text" id="<?php wptouch_admin_the_setting_name(); ?>" name="<?php wptouch_admin_the_encoded_setting_name(); ?>" value="<?php wptouch_admin_the_setting_value(); ?>" placeholder="" <?php if ( wptouch_admin_is_setting_pro() && defined( 'WPTOUCH_IS_FREE' ) ) echo ' disabled '; ?> />
admin/settings/html/theme-browser-item.php CHANGED
@@ -3,7 +3,7 @@
3
  <div class="item-information">
4
  <?php if ( wptouch_get_theme_icon() ) { ?>
5
  <div class="image-wrapper">
6
- <img src="<?php wptouch_the_theme_icon(); ?>" alt="<?php wptouch_the_theme_title(); ?>" id="<?php echo wptouch_convert_to_class_name( wptouch_get_theme_title() ); ?>" />
7
  </div><!-- image-wrapper -->
8
  <?php } ?>
9
  <h2>
@@ -17,4 +17,4 @@
17
  <?php wptouch_the_theme_description(); ?>
18
  </p>
19
  </div>
20
- </li>
3
  <div class="item-information">
4
  <?php if ( wptouch_get_theme_icon() ) { ?>
5
  <div class="image-wrapper">
6
+ <img src="<?php wptouch_the_theme_icon(); ?>" alt="<?php wptouch_the_theme_title(); ?>" id="<?php echo esc_attr( wptouch_convert_to_class_name( wptouch_get_theme_title() ) ); ?>" />
7
  </div><!-- image-wrapper -->
8
  <?php } ?>
9
  <h2>
17
  <?php wptouch_the_theme_description(); ?>
18
  </p>
19
  </div>
20
+ </li>
lang/wptouch.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the WPtouch Mobile Plugin package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WPtouch Mobile Plugin 4.3.18\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/wptouch\n"
7
- "POT-Creation-Date: 2017-05-31 18:57:10+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -2427,7 +2427,7 @@ msgid "Blog"
2427
  msgstr ""
2428
 
2429
  #: themes/foundation/root-functions.php:449
2430
- #: themes/foundation/root-functions.php:1221
2431
  msgid "Pages"
2432
  msgstr ""
2433
 
@@ -2477,39 +2477,39 @@ msgstr ""
2477
  msgid "Archives &rsaquo; %s"
2478
  msgstr ""
2479
 
2480
- #: themes/foundation/root-functions.php:911
2481
  msgid "Load more from this category"
2482
  msgstr ""
2483
 
2484
- #: themes/foundation/root-functions.php:913
2485
  msgid "Load more tagged like this"
2486
  msgstr ""
2487
 
2488
- #: themes/foundation/root-functions.php:915
2489
  msgid "Load more from this day"
2490
  msgstr ""
2491
 
2492
- #: themes/foundation/root-functions.php:917
2493
  msgid "Load more from this month"
2494
  msgstr ""
2495
 
2496
- #: themes/foundation/root-functions.php:919
2497
  msgid "Load more from this year"
2498
  msgstr ""
2499
 
2500
- #: themes/foundation/root-functions.php:921
2501
  msgid "Load more in this section"
2502
  msgstr ""
2503
 
2504
- #: themes/foundation/root-functions.php:923
2505
  msgid "Load more entries"
2506
  msgstr ""
2507
 
2508
- #: themes/foundation/root-functions.php:1170
2509
  msgid "Post"
2510
  msgstr ""
2511
 
2512
- #: themes/foundation/root-functions.php:1172
2513
  msgid "Page"
2514
  msgstr ""
2515
 
@@ -2527,9 +2527,9 @@ msgstr ""
2527
  msgid "WPtouch Mobile Plugin"
2528
  msgstr ""
2529
 
2530
- #. #-#-#-#-# wptouch.pot (WPtouch Mobile Plugin 4.3.18) #-#-#-#-#
2531
  #. Plugin URI of the plugin/theme
2532
- #. #-#-#-#-# wptouch.pot (WPtouch Mobile Plugin 4.3.18) #-#-#-#-#
2533
  #. Author URI of the plugin/theme
2534
  msgid "http://www.wptouch.com/"
2535
  msgstr ""
2
  # This file is distributed under the same license as the WPtouch Mobile Plugin package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WPtouch Mobile Plugin 4.3.19\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/wptouch\n"
7
+ "POT-Creation-Date: 2017-08-21 22:00:30+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
2427
  msgstr ""
2428
 
2429
  #: themes/foundation/root-functions.php:449
2430
+ #: themes/foundation/root-functions.php:1220
2431
  msgid "Pages"
2432
  msgstr ""
2433
 
2477
  msgid "Archives &rsaquo; %s"
2478
  msgstr ""
2479
 
2480
+ #: themes/foundation/root-functions.php:910
2481
  msgid "Load more from this category"
2482
  msgstr ""
2483
 
2484
+ #: themes/foundation/root-functions.php:912
2485
  msgid "Load more tagged like this"
2486
  msgstr ""
2487
 
2488
+ #: themes/foundation/root-functions.php:914
2489
  msgid "Load more from this day"
2490
  msgstr ""
2491
 
2492
+ #: themes/foundation/root-functions.php:916
2493
  msgid "Load more from this month"
2494
  msgstr ""
2495
 
2496
+ #: themes/foundation/root-functions.php:918
2497
  msgid "Load more from this year"
2498
  msgstr ""
2499
 
2500
+ #: themes/foundation/root-functions.php:920
2501
  msgid "Load more in this section"
2502
  msgstr ""
2503
 
2504
+ #: themes/foundation/root-functions.php:922
2505
  msgid "Load more entries"
2506
  msgstr ""
2507
 
2508
+ #: themes/foundation/root-functions.php:1169
2509
  msgid "Post"
2510
  msgstr ""
2511
 
2512
+ #: themes/foundation/root-functions.php:1171
2513
  msgid "Page"
2514
  msgstr ""
2515
 
2527
  msgid "WPtouch Mobile Plugin"
2528
  msgstr ""
2529
 
2530
+ #. #-#-#-#-# wptouch.pot (WPtouch Mobile Plugin 4.3.19) #-#-#-#-#
2531
  #. Plugin URI of the plugin/theme
2532
+ #. #-#-#-#-# wptouch.pot (WPtouch Mobile Plugin 4.3.19) #-#-#-#-#
2533
  #. Author URI of the plugin/theme
2534
  msgid "http://www.wptouch.com/"
2535
  msgstr ""
readme.txt CHANGED
@@ -1,8 +1,8 @@
1
- === Plugin Name ===
2
- Contributors: wptouch, duanestorey, dalemugford, adamdipardo, oxymoron
3
  Tags: wptouch, iphone, ipod, bravenewcode, mobile, mobile-friendly, android, blackberry, smartphone, responsive, design, mobile plugin, ios, mobile theme
4
  Requires at least: 4.2
5
- Stable tag: 4.3.18
6
  Tested up to: 4.7
7
  License: GPLv2
8
 
@@ -33,6 +33,10 @@ For more information visit [WPtouch.com](http://www.wptouch.com/?utm_campaign=wp
33
 
34
  == Changelog ==
35
 
 
 
 
 
36
  = Version 4.3.18 (May 29, 2017) =
37
 
38
  * WPML Compatibility: Allows posts to display for chosen language in mobile blog index.
1
+ === WPtouch ===
2
+ Contributors: wptouch, sureswiftcapital, duanestorey, dalemugford, adamdipardo, oxymoron
3
  Tags: wptouch, iphone, ipod, bravenewcode, mobile, mobile-friendly, android, blackberry, smartphone, responsive, design, mobile plugin, ios, mobile theme
4
  Requires at least: 4.2
5
+ Stable tag: 4.3.19
6
  Tested up to: 4.7
7
  License: GPLv2
8
 
33
 
34
  == Changelog ==
35
 
36
+ = Version 4.3.19 (August 21, 2017) =
37
+
38
+ * Security: Added escaping to untrusted output.
39
+
40
  = Version 4.3.18 (May 29, 2017) =
41
 
42
  * WPML Compatibility: Allows posts to display for chosen language in mobile blog index.
themes/foundation/default/attachment.php CHANGED
@@ -7,7 +7,7 @@
7
  <?php wptouch_the_post(); ?>
8
 
9
  <?php if ( $post->post_parent > 0 ) {
10
- echo '<a id="gallery_back_to_post" href="' . get_permalink( $post->post_parent ) . '">' . sprintf( __( 'Back to %s', 'wptouch-pro' ), get_the_title( $post->post_parent ) ) . '</a>';
11
  } ?>
12
 
13
  <?php
@@ -53,4 +53,4 @@
53
 
54
  </div><!-- #content -->
55
 
56
- <?php get_footer(); ?>
7
  <?php wptouch_the_post(); ?>
8
 
9
  <?php if ( $post->post_parent > 0 ) {
10
+ echo '<a id="gallery_back_to_post" href="' . esc_url( get_permalink( $post->post_parent ) ) . '">' . sprintf( __( 'Back to %s', 'wptouch-pro' ), get_the_title( $post->post_parent ) ) . '</a>';
11
  } ?>
12
 
13
  <?php
53
 
54
  </div><!-- #content -->
55
 
56
+ <?php get_footer(); ?>
themes/foundation/default/comments.php CHANGED
@@ -51,14 +51,14 @@
51
  <h3><?php comment_form_title( __( 'Leave a Reply', 'wptouch-pro' ), __( 'Leave a Reply to %s', 'wptouch-pro' ) ); ?></h3>
52
 
53
  <?php if ( get_option( 'comment_registration' ) && !is_user_logged_in() ) { ?>
54
- <p><?php echo sprintf( __( 'You must be %slogged in%s to post a comment.', 'wptouch-pro' ), '<a class="login-req" href="' . wp_login_url( get_permalink() ) . '">', '</a>' ); ?></p>
55
  <?php } else { ?>
56
  <form action="<?php wptouch_bloginfo( 'wpurl' ); ?>/wp-comments-post.php" method="post" id="commentform">
57
 
58
  <?php comment_id_fields(); ?>
59
 
60
  <?php if ( is_user_logged_in() ) { ?>
61
- <p><?php _e( 'Logged in as', 'wptouch-pro' ); ?> <?php echo $user_identity; ?>. <a href="<?php echo wp_logout_url( esc_url_raw( $_SERVER['REQUEST_URI'], array( 'http', 'https' ) ) ); ?>" title="Log out"><?php _e( 'Log out', 'wptouch-pro' ); ?> &raquo;</a></p>
62
 
63
  <?php } else { ?>
64
 
@@ -82,4 +82,4 @@
82
 
83
  </div><!-- #respond // end dealing with the comment form -->
84
 
85
- <?php }
51
  <h3><?php comment_form_title( __( 'Leave a Reply', 'wptouch-pro' ), __( 'Leave a Reply to %s', 'wptouch-pro' ) ); ?></h3>
52
 
53
  <?php if ( get_option( 'comment_registration' ) && !is_user_logged_in() ) { ?>
54
+ <p><?php echo sprintf( __( 'You must be %slogged in%s to post a comment.', 'wptouch-pro' ), '<a class="login-req" href="' . esc_url( wp_login_url( get_permalink() ) ) . '">', '</a>' ); ?></p>
55
  <?php } else { ?>
56
  <form action="<?php wptouch_bloginfo( 'wpurl' ); ?>/wp-comments-post.php" method="post" id="commentform">
57
 
58
  <?php comment_id_fields(); ?>
59
 
60
  <?php if ( is_user_logged_in() ) { ?>
61
+ <p><?php _e( 'Logged in as', 'wptouch-pro' ); ?> <?php echo $user_identity; ?>. <a href="<?php echo esc_url( wp_logout_url( esc_url_raw( $_SERVER['REQUEST_URI'], array( 'http', 'https' ) ) ) ); ?>" title="Log out"><?php _e( 'Log out', 'wptouch-pro' ); ?> &raquo;</a></p>
62
 
63
  <?php } else { ?>
64
 
82
 
83
  </div><!-- #respond // end dealing with the comment form -->
84
 
85
+ <?php }
themes/foundation/modules/sharing/sharing.php CHANGED
@@ -47,7 +47,7 @@ function foundation_sharing_classes() {
47
 
48
  $share_classes[] = 'style-' . $settings->share_colour_scheme;
49
 
50
- echo implode( ' ', apply_filters( 'foundation_share_classes', $share_classes ) );
51
  }
52
 
53
  function foundation_sharing_content() {
47
 
48
  $share_classes[] = 'style-' . $settings->share_colour_scheme;
49
 
50
+ echo esc_html( implode( ' ', apply_filters( 'foundation_share_classes', $share_classes ) ) );
51
  }
52
 
53
  function foundation_sharing_content() {
themes/foundation/root-functions.php CHANGED
@@ -240,7 +240,7 @@ function foundation_has_logo_image() {
240
  function foundation_the_logo_image() {
241
  $settings = foundation_get_settings();
242
 
243
- echo foundation_prepare_uploaded_file_url( $settings->logo_image );
244
  }
245
 
246
  function foundation_enqueue_color_data() {
@@ -282,7 +282,7 @@ function foundation_handle_footer() {
282
  $output_message = $message;
283
  }
284
 
285
- echo apply_filters( 'foundation_footer_message_output', $output_message );
286
  }
287
  }
288
 
@@ -570,7 +570,7 @@ function foundation_maybe_output_homescreen_icon( $image, $width, $height, $pixe
570
  $size_string = '';
571
  }
572
 
573
- echo '<link rel="apple-touch-icon-precomposed" ' . $size_string . ' href="' . foundation_prepare_uploaded_file_url( $image ) . '" />' . "\n";
574
  }
575
  }
576
 
@@ -830,25 +830,25 @@ function wptouch_fdn_comments_pagination() {
830
  function wptouch_fdn_get_previous_post_link() {
831
  $excluded = wptouch_fdn_convert_catname_to_id();
832
  $prev_post = get_adjacent_post( false, $excluded, true );
833
- echo get_permalink( $prev_post->ID );
834
  }
835
 
836
  function wptouch_fdn_get_next_post_link() {
837
  $excluded = wptouch_fdn_convert_catname_to_id();
838
  $next_post = get_adjacent_post( false, $excluded, false );
839
- echo get_permalink( $next_post->ID );
840
  }
841
 
842
  function wptouch_fdn_get_previous_post_link_w_title() {
843
  $excluded = wptouch_fdn_convert_catname_to_id();
844
  $prev_post = get_adjacent_post( false, $excluded, true );
845
- echo '<a class="prev-post" href="' . get_permalink( $prev_post->ID ) . '">' . $prev_post->post_title . '</a>';
846
  }
847
 
848
  function wptouch_fdn_get_next_post_link_w_title() {
849
  $excluded = wptouch_fdn_convert_catname_to_id();
850
  $next_post = get_adjacent_post( false, $excluded, false );
851
- echo '<a class="next-post" href="' . get_permalink( $next_post->ID ) . '">' . $next_post->post_title . '</a>';
852
  }
853
 
854
  function wptouch_fdn_if_next_post_link(){
@@ -895,7 +895,6 @@ function wptouch_fdn_archive_title_text() {
895
  } elseif ( is_year() ) {
896
  echo sprintf( __( "Archives &rsaquo; %s", "wptouch-pro" ), get_the_time( 'Y' ) );
897
  } elseif ( get_post_type() ) {
898
- // echo get_post_type( $post->ID );
899
  }
900
  if ( !( is_home() || is_single() ) ) {
901
  echo '</div>';
@@ -1261,7 +1260,7 @@ function foundation_add_meta_theme_color() {
1261
  $header_color = apply_filters( 'wptouch_theme_color', '' );
1262
 
1263
  if ( strlen( $header_color ) ) {
1264
- echo '<meta name="theme-color" content="' . $header_color . '">';
1265
  }
1266
 
1267
  }
240
  function foundation_the_logo_image() {
241
  $settings = foundation_get_settings();
242
 
243
+ echo esc_url( foundation_prepare_uploaded_file_url( $settings->logo_image ) );
244
  }
245
 
246
  function foundation_enqueue_color_data() {
282
  $output_message = $message;
283
  }
284
 
285
+ echo wp_kses_post( apply_filters( 'foundation_footer_message_output', $output_message ) );
286
  }
287
  }
288
 
570
  $size_string = '';
571
  }
572
 
573
+ echo '<link rel="apple-touch-icon-precomposed" ' . $size_string . ' href="' . esc_url( foundation_prepare_uploaded_file_url( $image ) ) . '" />' . "\n";
574
  }
575
  }
576
 
830
  function wptouch_fdn_get_previous_post_link() {
831
  $excluded = wptouch_fdn_convert_catname_to_id();
832
  $prev_post = get_adjacent_post( false, $excluded, true );
833
+ echo esc_url( get_permalink( $prev_post->ID ) );
834
  }
835
 
836
  function wptouch_fdn_get_next_post_link() {
837
  $excluded = wptouch_fdn_convert_catname_to_id();
838
  $next_post = get_adjacent_post( false, $excluded, false );
839
+ echo esc_url( get_permalink( $next_post->ID ) );
840
  }
841
 
842
  function wptouch_fdn_get_previous_post_link_w_title() {
843
  $excluded = wptouch_fdn_convert_catname_to_id();
844
  $prev_post = get_adjacent_post( false, $excluded, true );
845
+ echo '<a class="prev-post" href="' . esc_url( get_permalink( $prev_post->ID ) ) . '">' . $prev_post->post_title . '</a>';
846
  }
847
 
848
  function wptouch_fdn_get_next_post_link_w_title() {
849
  $excluded = wptouch_fdn_convert_catname_to_id();
850
  $next_post = get_adjacent_post( false, $excluded, false );
851
+ echo '<a class="next-post" href="' . esc_url( get_permalink( $next_post->ID ) ) . '">' . $next_post->post_title . '</a>';
852
  }
853
 
854
  function wptouch_fdn_if_next_post_link(){
895
  } elseif ( is_year() ) {
896
  echo sprintf( __( "Archives &rsaquo; %s", "wptouch-pro" ), get_the_time( 'Y' ) );
897
  } elseif ( get_post_type() ) {
 
898
  }
899
  if ( !( is_home() || is_single() ) ) {
900
  echo '</div>';
1260
  $header_color = apply_filters( 'wptouch_theme_color', '' );
1261
 
1262
  if ( strlen( $header_color ) ) {
1263
+ echo '<meta name="theme-color" content="' . esc_html( $header_color ) . '">';
1264
  }
1265
 
1266
  }
wptouch.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: WPtouch Mobile Plugin
4
  Plugin URI: http://www.wptouch.com/
5
- Version: 4.3.18
6
  Description: Make a beautiful mobile-friendly version of your website with just a few clicks.
7
  Author: WPtouch
8
  Author URI: http://www.wptouch.com/
@@ -14,7 +14,7 @@
14
 
15
  function wptouch_create_four_object() {
16
  if ( !defined( 'WPTOUCH_IS_PRO' ) ) {
17
- define( 'WPTOUCH_VERSION', '4.3.18' );
18
 
19
  define( 'WPTOUCH_BASE_NAME', basename( __FILE__, '.php' ) . '.php' );
20
  define( 'WPTOUCH_DIR', WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . basename( __FILE__, '.php' ) );
2
  /*
3
  Plugin Name: WPtouch Mobile Plugin
4
  Plugin URI: http://www.wptouch.com/
5
+ Version: 4.3.19
6
  Description: Make a beautiful mobile-friendly version of your website with just a few clicks.
7
  Author: WPtouch
8
  Author URI: http://www.wptouch.com/
14
 
15
  function wptouch_create_four_object() {
16
  if ( !defined( 'WPTOUCH_IS_PRO' ) ) {
17
+ define( 'WPTOUCH_VERSION', '4.3.19' );
18
 
19
  define( 'WPTOUCH_BASE_NAME', basename( __FILE__, '.php' ) . '.php' );
20
  define( 'WPTOUCH_DIR', WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . basename( __FILE__, '.php' ) );