Changeset 3142940
- Timestamp:
- 08/28/2024 01:11:28 PM (19 months ago)
- Location:
- supapress/trunk
- Files:
-
- 7 edited
-
admin/admin.php (modified) (1 diff)
-
admin/views/settings.php (modified) (2 diffs)
-
composer.json (modified) (1 diff)
-
includes/functions.php (modified) (2 diffs)
-
includes/widget.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
supapress.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
supapress/trunk/admin/admin.php
r2946444 r3142940 464 464 465 465 $properties = array(); 466 $properties['showText'] = isset( $_REQUEST['showText'] ) ? htmlspecialchars( $_REQUEST['showText'] ) : '';467 $properties['hideText'] = isset( $_REQUEST['hideText'] ) ? htmlspecialchars( $_REQUEST['hideText'] ) : '';468 $properties['clearText'] = isset( $_REQUEST['clearText'] ) ? htmlspecialchars( $_REQUEST['clearText'] ) : '';466 $properties['showText'] = isset( $_REQUEST['showText'] ) ? htmlspecialchars( (string) $_REQUEST['showText'] ) : ''; 467 $properties['hideText'] = isset( $_REQUEST['hideText'] ) ? htmlspecialchars( (string) $_REQUEST['hideText'] ) : ''; 468 $properties['clearText'] = isset( $_REQUEST['clearText'] ) ? htmlspecialchars( (string) $_REQUEST['clearText'] ) : ''; 469 469 $properties['limits'] = isset( $_REQUEST['limits'] ) ? $_REQUEST['limits'] : array(); 470 470 $properties['filtersList'] = isset( $_REQUEST['filters'] ) ? $_REQUEST['filters'] : array(); -
supapress/trunk/admin/views/settings.php
r2991891 r3142940 201 201 <div class="supapress-accordion-content-inner"> 202 202 <div class="supapress-field-wrapper"> 203 <p class="supapress-paragraph"> 204 <span> 205 <?php echo __("We strongly recommend keeping this setting enabled to ensure your product details are correctly indexed.", 'supapress'); ?> 206 </span> 207 </p> 208 </div> 209 <div class="supapress-field-wrapper"> 203 210 <label class="supapress-label" for="supapress-product-details-seo-override"> 204 211 <?php _e('Override SEO:', 'supapress' );?> … … 241 248 <div class="supapress-field-wrapper"> 242 249 <label for="supapress-product-details-seo-canonical-primary-format" class="supapress-label"> 243 <?php _e(' Primary Format Canonical:', 'supapress' );?>250 <?php _e('Redirect to primary format:', 'supapress' );?> 244 251 </label> 245 252 <div class="onoffswitch"> -
supapress/trunk/composer.json
r2991891 r3142940 3 3 "description": "Quickly and easily connect your book metadata (ONIX) to your WordPress site.", 4 4 "type": "wordpress-plugin", 5 "version": "2.2 3.4",5 "version": "2.24.0", 6 6 "authors": [ 7 7 { -
supapress/trunk/includes/functions.php
r2901082 r3142940 940 940 } 941 941 942 } 942 } 943 943 944 944 add_filter( 'wpseo_opengraph_url', $supapress_seo_override_url, 15, 3 ); … … 951 951 add_filter( 'wpseo_twitter_image', $supapress_seo_override_cover, 15, 3 ); 952 952 953 } 954 953 supapress_run_canonical_redirect($supapress_seo_override_url( $field )); 954 955 } 956 957 function supapress_run_canonical_redirect(string $canonical_url) { 958 959 if(empty($canonical_url)){ 960 return; 961 } 962 963 // if there is a QUERY_STRING don't run 964 if (!empty($_SERVER['QUERY_STRING'])) { 965 return; 966 } 967 968 $current_url = "https://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; 969 $canonical_url = apply_filters( 'wpseo_canonical', '' ); 970 971 if ($current_url !== $canonical_url) { 972 wp_redirect($canonical_url, 301); 973 exit(); 974 } 975 } 955 976 956 977 -
supapress/trunk/includes/widget.php
r2991891 r3142940 372 372 if ( $result === null ) { 373 373 // Set additional params if they've been added as attributes of the shortcode 374 $params = $this->setAdditionalParams( $params, $this->properties ['atts']);374 $params = $this->setAdditionalParams( $params, $this->properties ); 375 375 // Call Supafolio 376 376 $result = $service !== null ? supapress_call_supafolio( $service, $params, $this->properties ) : "Something went wrong"; … … 515 515 * Checks attributes for known params and adds to service URL 516 516 */ 517 public static function setAdditionalParams( $params, $atts ) { 517 public static function setAdditionalParams( $params, $properties ) { 518 519 $atts = $properties['atts']; 520 521 if( isset( $properties['show_series'] ) && $properties['show_series'] === 'on' ) { 522 $params['series_data'] = '1'; 523 } 524 518 525 // Include price for other formats 519 526 if ( isset( $atts['include_price'] ) ) { -
supapress/trunk/readme.txt
r2991891 r3142940 3 3 Tags: supadü, supadu, folio, books, publishers, supafolio, supadu for wordpress, supapress, supafolio for wordpress 4 4 Requires at least: 6.0 5 Tested up to: 6. 46 Stable tag: 2.2 3.45 Tested up to: 6.6.1 6 Stable tag: 2.24.0 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 38 38 39 39 == Changelog == 40 41 = 2.24.0 = 42 Release Date: Aug 2024 43 * Update: supapress_run_canonical_redirect added 40 44 41 45 = 2.23.4 = -
supapress/trunk/supapress.php
r2991891 r3142940 7 7 * Plugin URI: https://www.supadu.com 8 8 * Description: Quickly and easily connect your book metadata (ONIX) to your WordPress site. 9 * Version: 2.2 3.49 * Version: 2.24.0 10 10 * Author: Supadü 11 11 * Author URI: https://www.supadu.com … … 37 37 defined( 'ABSPATH' ) or die( 'Illegal Access!' ); 38 38 39 define( 'SUPAPRESS_VERSION', '2.2 3.4' );39 define( 'SUPAPRESS_VERSION', '2.24.0' ); 40 40 41 41 define( 'SUPAPRESS_SITE_URL', get_site_url() );
Note: See TracChangeset
for help on using the changeset viewer.