Plugin Directory

Changeset 2901082


Ignore:
Timestamp:
04/19/2023 08:53:06 AM (3 years ago)
Author:
david.kane
Message:

Releasing v2.23.1

Location:
supapress/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • supapress/trunk/admin/admin.php

    r2877946 r2901082  
    362362    $returnResults = array();
    363363    foreach ( explode( ',', $ISBNs ) as $isbn ) {
    364         if ( preg_match( '/^9([0-9]{12})$/', $isbn ) ) {
     364        if ( preg_match( '/^([0-9]{13})$/', $isbn ) ) {
    365365            $returnResults[ $isbn ] = array( 'title' => 'ISBN not found', 'found' => - 1 );
    366366        }
  • supapress/trunk/composer.json

    r2877946 r2901082  
    33    "description": "Quickly and easily connect your book metadata (ONIX) to your WordPress site.",
    44    "type": "wordpress-plugin",
    5     "version": "2.23.0",
     5    "version": "2.23.1",
    66    "authors": [
    77        {
  • supapress/trunk/includes/controller.php

    r2303372 r2901082  
    146146
    147147                    if ( $part === '%isbn13%' ) {
    148                         $part = '(9\d{12})';
     148                        $part = '(\d{13})';
    149149                    } elseif ( in_array( $part, $genericPlaceholders ) ) {
    150150                        $part = '([^\/]+)';
    151151                    } else {
    152                         $part = str_replace( '%isbn13%', '(9\d{12})', $part );
     152                        $part = str_replace( '%isbn13%', '(\d{13})', $part );
    153153                        $part = str_replace( $genericPlaceholders, '([^\/]+)', $part );
    154154                    }
     
    158158
    159159                // Build temp URL from new rule so we can check where the ISBN match will be
    160                 $tempUrl = str_replace( '(9\d{12})', '9998887770001', $newRule );
     160                $tempUrl = str_replace( '(\d{13})', '9998887770001', $newRule );
    161161                $tempUrl = str_replace( '([^\/]+)', 'temp', $tempUrl );
    162162
  • supapress/trunk/includes/functions.php

    r2856087 r2901082  
    978978
    979979    // check that the ISBN is set
    980     if( preg_match( '/^9\d{12}$/', get_query_var( 'supapress_isbn' ) ) === '' ) {
     980    if( preg_match( '/\d{13}$/', get_query_var( 'supapress_isbn' ) ) === '' ) {
    981981        return;
    982982    }
  • supapress/trunk/includes/widget.php

    r2877946 r2901082  
    361361            }
    362362        } elseif ( $this->properties['widget_type'] === 'product_details' ) {
    363             if ( preg_match( '/9\d{12}/', get_query_var( 'supapress_isbn' ) ) ) {
     363            if ( preg_match( '/\d{13}/', get_query_var( 'supapress_isbn' ) ) ) {
    364364                $service = 'book/' . get_query_var( 'supapress_isbn' );
    365365                $params  = array();
  • supapress/trunk/readme.txt

    r2877946 r2901082  
    33Tags: supadü, supadu, folio, books, publishers, supafolio, supadu for wordpress, supapress, supafolio for wordpress
    44Requires at least: 6.0
    5 Tested up to: 6.1
    6 Stable tag: 2.23.0
     5Tested up to: 6.2
     6Stable tag: 2.23.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3838
    3939== Changelog ==
     40
     41= 2.23.1 =
     42Release Date: April 2023
     43* Fix: preg_match for isbn13 fixed
    4044
    4145= 2.23.0 =
  • supapress/trunk/supapress.php

    r2877946 r2901082  
    77 * Plugin URI: https://www.supadu.com
    88 * Description: Quickly and easily connect your book metadata (ONIX) to your WordPress site.
    9  * Version: 2.23.0
     9 * Version: 2.23.1
    1010 * Author: Supadü
    1111 * Author URI: https://www.supadu.com
     
    3737defined( 'ABSPATH' ) or die( 'Illegal Access!' );
    3838
    39 define( 'SUPAPRESS_VERSION', '2.23.0' );
     39define( 'SUPAPRESS_VERSION', '2.23.1' );
    4040
    4141define( 'SUPAPRESS_SITE_URL', get_site_url() );
Note: See TracChangeset for help on using the changeset viewer.