Plugin Directory

Changeset 3190785


Ignore:
Timestamp:
11/17/2024 08:57:35 PM (17 months ago)
Author:
tauri77
Message:

Update to version 0.9.1 from GitHub

Location:
user-post-collections
Files:
34 edited
1 copied

Legend:

Unmodified
Added
Removed
  • user-post-collections/tags/0.9.1/alt-models/mg-list-items-model.php

    r3190768 r3190785  
    495495            if ( ! $mg_upc->model->support( $list, 'max_items_rotate' ) ) {
    496496                throw new Exception(
    497                     sprintf(
    498                     // translators: digit is the max number of items
    499                         __( 'Sorry, you can not have more than %d items.', 'user-post-collections' ),
    500                         $limit
     497                    esc_html(
     498                        sprintf(
     499                            // translators: digit is the max number of items
     500                            __( 'Sorry, you can not have more than %d items.', 'user-post-collections' ),
     501                            $limit
     502                        )
    501503                    )
    502504                );
  • user-post-collections/tags/0.9.1/alt-models/mg-list-model.php

    r3190768 r3190785  
    321321                    if ( ! is_array( $args[ $prop ] ) ) {
    322322                        throw new MG_UPC_Invalid_Field_Exception(
    323                             'Invalid field ' . $prop . '.',
     323                            esc_html( 'Invalid field ' . $prop . '.' ),
    324324                            0,
    325325                            null,
    326                             $prop
     326                            esc_html( $prop )
    327327                        );
    328328                    }
     
    342342                                ) {
    343343                                    throw new MG_UPC_Invalid_Field_Exception(
    344                                         'Invalid field ' . $prop . '.',
     344                                        esc_html( 'Invalid field ' . $prop . '.' ),
    345345                                        0,
    346346                                        null,
    347                                         $prop
     347                                        esc_html( $prop )
    348348                                    );
    349349                                }
     
    353353                                if ( ! empty( $filter['valid'] ) && ! in_array( $value, $filter['valid'], true ) ) {
    354354                                    throw new MG_UPC_Invalid_Field_Exception(
    355                                         'Invalid field ' . $prop . '.',
     355                                        esc_html( 'Invalid field ' . $prop . '.' ),
    356356                                        0,
    357357                                        null,
    358                                         $prop
     358                                        esc_html( $prop )
    359359                                    );
    360360                                }
     
    365365                                if ( false === $datetime ) {
    366366                                    throw new MG_UPC_Invalid_Field_Exception(
    367                                         'Invalid field ' . $prop . '.',
     367                                        esc_html( 'Invalid field ' . $prop . '.' ),
    368368                                        0,
    369369                                        null,
    370                                         $prop
     370                                        esc_html( $prop )
    371371                                    );
    372372                                }
     
    414414                        if ( false === $datetime ) {
    415415                            throw new MG_UPC_Invalid_Field_Exception(
    416                                 'Invalid field ' . $prop . '.',
     416                                esc_html( 'Invalid field ' . $prop . '.' ),
    417417                                0,
    418418                                null,
    419                                 $prop
     419                                esc_html( $prop )
    420420                            );
    421421                        }
  • user-post-collections/tags/0.9.1/classes/mg-list-page-alt-settings.php

    r3190768 r3190785  
    227227        );
    228228
     229        // phpcs:disable WordPress.WP.I18n.UnorderedPlaceholdersText
    229230        $archive_options[] = array(
    230231            'name'    => 'mg_upc_archive_document_title',
     
    232233            // translators: not change %upctitle%, %sitename%
    233234            'desc'    => __( 'You can use %upctitle% and %sitename%.', 'user-post-collections' ),
     235            // translators: not change %upctitle%, %sitename%
    234236            'default' => __( '%upctitle% | %sitename%', 'user-post-collections' ),
    235237            'type'    => 'text',
    236238        );
     239        // phpcs:enable WordPress.WP.I18n.UnorderedPlaceholdersText
    237240
    238241        $archive_options[] = array(
  • user-post-collections/tags/0.9.1/classes/mg-upc-list-types-register.php

    r3190768 r3190785  
    2222                'label_count' => _n_noop(
    2323                    'Published <span class="count">(%s)</span>',
    24                     'Published <span class="count">(%s)</span>'
     24                    'Published <span class="count">(%s)</span>',
     25                    'user-post-collections'
    2526                ),
    2627            )
     
    3536                'label_count' => _n_noop(
    3637                    'Private <span class="count">(%s)</span>',
    37                     'Private <span class="count">(%s)</span>'
     38                    'Private <span class="count">(%s)</span>',
     39                    'user-post-collections'
    3840                ),
    3941            )
  • user-post-collections/tags/0.9.1/classes/user-post-collections.php

    r3190768 r3190785  
    1616        public $model;
    1717
    18         const VERSION = '0.8.32';
     18        const VERSION = '0.9.1';
    1919
    2020        /**
  • user-post-collections/tags/0.9.1/controllers/mg-upc-woocommerce.php

    r3190768 r3190785  
    711711                '%s have been added to your cart.',
    712712                $count,
    713                 'woocommerce'
     713                'user-post-collections'
    714714            ),
    715715            wc_format_list_of_items( $titles )
  • user-post-collections/tags/0.9.1/includes/admin-notice-helper/admin-notice.php

    r2768965 r3190785  
    1 <div class="anh_message <?php esc_attr_e( $class ); ?>">
     1<div class="anh_message <?php
     2// phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText
     3esc_attr_e( $class, 'user-post-collections' );
     4?>">
    25    <?php foreach ( $this->notices[ $type ] as $notice ) : ?>
    36        <p><?php echo wp_kses( $notice, wp_kses_allowed_html( 'post' ) ); ?></p>
  • user-post-collections/tags/0.9.1/includes/list-types.php

    r3190768 r3190785  
    156156
    157157    if ( false === $args->label_count ) {
    158         // phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralSingle,WordPress.WP.I18n.NonSingularStringLiteralPlural
    159         $args->label_count = _n_noop( $args->label, $args->label );
     158        // phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralSingle,WordPress.WP.I18n.NonSingularStringLiteralSingular,WordPress.WP.I18n.NonSingularStringLiteralPlural
     159        $args->label_count = _n_noop( $args->label, $args->label, 'user-post-collections' );
    160160    }
    161161
  • user-post-collections/tags/0.9.1/includes/mg-upc-settings-api.php

    r3190768 r3190785  
    879879            $value = $args['value'] ?? $this->get_option( $args['id'], $args['section'], $args['std'] );
    880880            $size  = isset( $args['size'] ) && is_scalar( $args['size'] ) ? $args['size'] : 'regular';
    881             $label = $args['options']['button_label'] ?? __( 'Choose File' );
     881            $label = $args['options']['button_label'] ?? __( 'Choose File', 'user-post-collections' );
    882882
    883883            printf(
     
    10901090                        sprintf(
    10911091                        // translators: %s is array config label
    1092                             __( 'Error on %s: The setting cannot be empty.' ),
     1092                            __( 'Error on %s: The setting cannot be empty.', 'user-post-collections' ),
    10931093                            $option_array_config['label']
    10941094                        )
     
    11781178                                sprintf(
    11791179                                // translators: %1$s is array config label, %2$s is field of an item
    1180                                     __( 'Error on %1$s: The %2$s property must be unique.' ),
     1180                                    __( 'Error on %1$s: The %2$s property must be unique.', 'user-post-collections' ),
    11811181                                    $option_array_config['label'],
    11821182                                    $field['label']
  • user-post-collections/tags/0.9.1/readme.txt

    r3190768 r3190785  
    11=== User Post Collections ===
    2 Contributors: Mauricio Galetto
     2Contributors: @tauri77
    33Donate link: https://www.paypal.com/donate/?hosted_button_id=XNASRT5UB7KBN
    44License: GPLv3
    55License URI: https://www.gnu.org/licenses/gpl.txt
    66Tags: User lists, Post Collections, Woocommerce Wishlist
    7 Tested up to: 6.5.4
    8 Stable tag: 0.8.32
     7Tested up to: 6.7
     8Stable tag: 0.9.1
    99Requires PHP: 7.0
    1010Requires at least: 4.9.6
     11
     12Create & share lists with post types like posts, pages, products, etc. Build classic lists (Favorites, Bookmarks) and polls and cart lists and more.
     13
     14== Description ==
    1115
    1216This plugin allows users to create lists of different types (simple, numbered, cart and poll) and share them.
     
    1418Create classic lists like Favorites, Bookmarks, Wish List. Or poll lists like "Which one should I buy?", or shopping cart lists of every month, etc.
    1519It is flexible and extensible.
    16 
    17 == Description ==
    18 
    1920The plugin adds custom endpoints to the wordpress REST API and includes a client that will display operations on user lists in a modal.
    2021
     
    107108== Changelog ==
    108109
     110= 0.9.1 =
     111* Fixes in translations
     112
    109113= 0.9.0 =
    110114* Added archive option
  • user-post-collections/tags/0.9.1/templates/archive-404.php

    r3190768 r3190785  
    99?>
    1010<h2>
    11     <?php echo esc_html__( 'Not found.', 'user-post-collection' ); ?>
     11    <?php echo esc_html__( 'Not found.', 'user-post-collections' ); ?>
    1212</h2>
    1313<?php
  • user-post-collections/tags/0.9.1/templates/content-single-mg-upc.php

    r3190768 r3190785  
    2222
    2323if ( post_password_required() ) {
    24     echo get_the_password_form(); // phpcs:ignore XSS ok.
     24    // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
     25    echo get_the_password_form();
    2526    return;
    2627}
  • user-post-collections/tags/0.9.1/templates/loop/empty.php

    r3190768 r3190785  
    1616    ?>
    1717    <h2>
    18         <?php echo esc_html__( 'There are no collections to show.', 'user-post-collection' ); ?>
     18        <?php echo esc_html__( 'There are no collections to show.', 'user-post-collections' ); ?>
    1919    </h2>
    2020    <?php
  • user-post-collections/tags/0.9.1/templates/requirements-error.php

    r2768965 r3190785  
    33?>
    44<div class="error">
    5     <p><?php echo MG_UPC_NAME; ?> error: Your environment doesn't meet all of the system requirements listed below.</p>
     5    <p><?php echo esc_html( MG_UPC_NAME ); ?> error: Your environment doesn't meet all of the system requirements listed below.</p>
    66
    77    <ul class="ul-disc">
    88        <li>
    9             <strong>PHP <?php echo MG_UPC_REQUIRED_PHP_VERSION; ?>+</strong>
     9            <strong>PHP <?php echo esc_html( MG_UPC_REQUIRED_PHP_VERSION ); ?>+</strong>
    1010            <em>(You're running version <?php echo PHP_VERSION; ?>)</em>
    1111        </li>
    1212
    1313        <li>
    14             <strong>WordPress <?php echo MG_UPC_REQUIRED_WP_VERSION; ?>+</strong>
     14            <strong>WordPress <?php echo esc_html( MG_UPC_REQUIRED_WP_VERSION ); ?>+</strong>
    1515            <em>(You're running version <?php echo esc_html( $wp_version ); ?>)</em>
    1616        </li>
  • user-post-collections/tags/0.9.1/templates/shortcode-404.php

    r2768965 r3190785  
    99?>
    1010<h2>
    11     <?php echo esc_html__( 'List not found.', 'user-post-collection' ); ?>
     11    <?php echo esc_html__( 'List not found.', 'user-post-collections' ); ?>
    1212</h2>
    1313<?php
  • user-post-collections/tags/0.9.1/templates/single-mg-upc/empty-items.php

    r3190768 r3190785  
    1515    ?>
    1616    <h2 class="mg-upc-empty-items-text">
    17         <?php echo esc_html__( 'There are no items to show', 'user-post-collection' ); ?>
     17        <?php echo esc_html__( 'There are no items to show', 'user-post-collections' ); ?>
    1818    </h2>
    1919    <?php
  • user-post-collections/tags/0.9.1/user-post-collections.php

    r3190768 r3190785  
    44Plugin URI:  https://galetto.info/user-post-collections
    55Description: Allows users to create their post collections.
    6 Version:     0.9.0
     6Version:     0.9.1
    77Author:      Mauricio Galetto
    88Author URI:  https://galetto.info/
  • user-post-collections/trunk/alt-models/mg-list-items-model.php

    r3190768 r3190785  
    495495            if ( ! $mg_upc->model->support( $list, 'max_items_rotate' ) ) {
    496496                throw new Exception(
    497                     sprintf(
    498                     // translators: digit is the max number of items
    499                         __( 'Sorry, you can not have more than %d items.', 'user-post-collections' ),
    500                         $limit
     497                    esc_html(
     498                        sprintf(
     499                            // translators: digit is the max number of items
     500                            __( 'Sorry, you can not have more than %d items.', 'user-post-collections' ),
     501                            $limit
     502                        )
    501503                    )
    502504                );
  • user-post-collections/trunk/alt-models/mg-list-model.php

    r3190768 r3190785  
    321321                    if ( ! is_array( $args[ $prop ] ) ) {
    322322                        throw new MG_UPC_Invalid_Field_Exception(
    323                             'Invalid field ' . $prop . '.',
     323                            esc_html( 'Invalid field ' . $prop . '.' ),
    324324                            0,
    325325                            null,
    326                             $prop
     326                            esc_html( $prop )
    327327                        );
    328328                    }
     
    342342                                ) {
    343343                                    throw new MG_UPC_Invalid_Field_Exception(
    344                                         'Invalid field ' . $prop . '.',
     344                                        esc_html( 'Invalid field ' . $prop . '.' ),
    345345                                        0,
    346346                                        null,
    347                                         $prop
     347                                        esc_html( $prop )
    348348                                    );
    349349                                }
     
    353353                                if ( ! empty( $filter['valid'] ) && ! in_array( $value, $filter['valid'], true ) ) {
    354354                                    throw new MG_UPC_Invalid_Field_Exception(
    355                                         'Invalid field ' . $prop . '.',
     355                                        esc_html( 'Invalid field ' . $prop . '.' ),
    356356                                        0,
    357357                                        null,
    358                                         $prop
     358                                        esc_html( $prop )
    359359                                    );
    360360                                }
     
    365365                                if ( false === $datetime ) {
    366366                                    throw new MG_UPC_Invalid_Field_Exception(
    367                                         'Invalid field ' . $prop . '.',
     367                                        esc_html( 'Invalid field ' . $prop . '.' ),
    368368                                        0,
    369369                                        null,
    370                                         $prop
     370                                        esc_html( $prop )
    371371                                    );
    372372                                }
     
    414414                        if ( false === $datetime ) {
    415415                            throw new MG_UPC_Invalid_Field_Exception(
    416                                 'Invalid field ' . $prop . '.',
     416                                esc_html( 'Invalid field ' . $prop . '.' ),
    417417                                0,
    418418                                null,
    419                                 $prop
     419                                esc_html( $prop )
    420420                            );
    421421                        }
  • user-post-collections/trunk/classes/mg-list-page-alt-settings.php

    r3190768 r3190785  
    227227        );
    228228
     229        // phpcs:disable WordPress.WP.I18n.UnorderedPlaceholdersText
    229230        $archive_options[] = array(
    230231            'name'    => 'mg_upc_archive_document_title',
     
    232233            // translators: not change %upctitle%, %sitename%
    233234            'desc'    => __( 'You can use %upctitle% and %sitename%.', 'user-post-collections' ),
     235            // translators: not change %upctitle%, %sitename%
    234236            'default' => __( '%upctitle% | %sitename%', 'user-post-collections' ),
    235237            'type'    => 'text',
    236238        );
     239        // phpcs:enable WordPress.WP.I18n.UnorderedPlaceholdersText
    237240
    238241        $archive_options[] = array(
  • user-post-collections/trunk/classes/mg-upc-list-types-register.php

    r3190768 r3190785  
    2222                'label_count' => _n_noop(
    2323                    'Published <span class="count">(%s)</span>',
    24                     'Published <span class="count">(%s)</span>'
     24                    'Published <span class="count">(%s)</span>',
     25                    'user-post-collections'
    2526                ),
    2627            )
     
    3536                'label_count' => _n_noop(
    3637                    'Private <span class="count">(%s)</span>',
    37                     'Private <span class="count">(%s)</span>'
     38                    'Private <span class="count">(%s)</span>',
     39                    'user-post-collections'
    3840                ),
    3941            )
  • user-post-collections/trunk/classes/user-post-collections.php

    r3190768 r3190785  
    1616        public $model;
    1717
    18         const VERSION = '0.8.32';
     18        const VERSION = '0.9.1';
    1919
    2020        /**
  • user-post-collections/trunk/controllers/mg-upc-woocommerce.php

    r3190768 r3190785  
    711711                '%s have been added to your cart.',
    712712                $count,
    713                 'woocommerce'
     713                'user-post-collections'
    714714            ),
    715715            wc_format_list_of_items( $titles )
  • user-post-collections/trunk/includes/admin-notice-helper/admin-notice.php

    r2768965 r3190785  
    1 <div class="anh_message <?php esc_attr_e( $class ); ?>">
     1<div class="anh_message <?php
     2// phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText
     3esc_attr_e( $class, 'user-post-collections' );
     4?>">
    25    <?php foreach ( $this->notices[ $type ] as $notice ) : ?>
    36        <p><?php echo wp_kses( $notice, wp_kses_allowed_html( 'post' ) ); ?></p>
  • user-post-collections/trunk/includes/list-types.php

    r3190768 r3190785  
    156156
    157157    if ( false === $args->label_count ) {
    158         // phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralSingle,WordPress.WP.I18n.NonSingularStringLiteralPlural
    159         $args->label_count = _n_noop( $args->label, $args->label );
     158        // phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralSingle,WordPress.WP.I18n.NonSingularStringLiteralSingular,WordPress.WP.I18n.NonSingularStringLiteralPlural
     159        $args->label_count = _n_noop( $args->label, $args->label, 'user-post-collections' );
    160160    }
    161161
  • user-post-collections/trunk/includes/mg-upc-settings-api.php

    r3190768 r3190785  
    879879            $value = $args['value'] ?? $this->get_option( $args['id'], $args['section'], $args['std'] );
    880880            $size  = isset( $args['size'] ) && is_scalar( $args['size'] ) ? $args['size'] : 'regular';
    881             $label = $args['options']['button_label'] ?? __( 'Choose File' );
     881            $label = $args['options']['button_label'] ?? __( 'Choose File', 'user-post-collections' );
    882882
    883883            printf(
     
    10901090                        sprintf(
    10911091                        // translators: %s is array config label
    1092                             __( 'Error on %s: The setting cannot be empty.' ),
     1092                            __( 'Error on %s: The setting cannot be empty.', 'user-post-collections' ),
    10931093                            $option_array_config['label']
    10941094                        )
     
    11781178                                sprintf(
    11791179                                // translators: %1$s is array config label, %2$s is field of an item
    1180                                     __( 'Error on %1$s: The %2$s property must be unique.' ),
     1180                                    __( 'Error on %1$s: The %2$s property must be unique.', 'user-post-collections' ),
    11811181                                    $option_array_config['label'],
    11821182                                    $field['label']
  • user-post-collections/trunk/readme.txt

    r3190768 r3190785  
    11=== User Post Collections ===
    2 Contributors: Mauricio Galetto
     2Contributors: @tauri77
    33Donate link: https://www.paypal.com/donate/?hosted_button_id=XNASRT5UB7KBN
    44License: GPLv3
    55License URI: https://www.gnu.org/licenses/gpl.txt
    66Tags: User lists, Post Collections, Woocommerce Wishlist
    7 Tested up to: 6.5.4
    8 Stable tag: 0.8.32
     7Tested up to: 6.7
     8Stable tag: 0.9.1
    99Requires PHP: 7.0
    1010Requires at least: 4.9.6
     11
     12Create & share lists with post types like posts, pages, products, etc. Build classic lists (Favorites, Bookmarks) and polls and cart lists and more.
     13
     14== Description ==
    1115
    1216This plugin allows users to create lists of different types (simple, numbered, cart and poll) and share them.
     
    1418Create classic lists like Favorites, Bookmarks, Wish List. Or poll lists like "Which one should I buy?", or shopping cart lists of every month, etc.
    1519It is flexible and extensible.
    16 
    17 == Description ==
    18 
    1920The plugin adds custom endpoints to the wordpress REST API and includes a client that will display operations on user lists in a modal.
    2021
     
    107108== Changelog ==
    108109
     110= 0.9.1 =
     111* Fixes in translations
     112
    109113= 0.9.0 =
    110114* Added archive option
  • user-post-collections/trunk/templates/archive-404.php

    r3190768 r3190785  
    99?>
    1010<h2>
    11     <?php echo esc_html__( 'Not found.', 'user-post-collection' ); ?>
     11    <?php echo esc_html__( 'Not found.', 'user-post-collections' ); ?>
    1212</h2>
    1313<?php
  • user-post-collections/trunk/templates/content-single-mg-upc.php

    r3190768 r3190785  
    2222
    2323if ( post_password_required() ) {
    24     echo get_the_password_form(); // phpcs:ignore XSS ok.
     24    // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
     25    echo get_the_password_form();
    2526    return;
    2627}
  • user-post-collections/trunk/templates/loop/empty.php

    r3190768 r3190785  
    1616    ?>
    1717    <h2>
    18         <?php echo esc_html__( 'There are no collections to show.', 'user-post-collection' ); ?>
     18        <?php echo esc_html__( 'There are no collections to show.', 'user-post-collections' ); ?>
    1919    </h2>
    2020    <?php
  • user-post-collections/trunk/templates/requirements-error.php

    r2768965 r3190785  
    33?>
    44<div class="error">
    5     <p><?php echo MG_UPC_NAME; ?> error: Your environment doesn't meet all of the system requirements listed below.</p>
     5    <p><?php echo esc_html( MG_UPC_NAME ); ?> error: Your environment doesn't meet all of the system requirements listed below.</p>
    66
    77    <ul class="ul-disc">
    88        <li>
    9             <strong>PHP <?php echo MG_UPC_REQUIRED_PHP_VERSION; ?>+</strong>
     9            <strong>PHP <?php echo esc_html( MG_UPC_REQUIRED_PHP_VERSION ); ?>+</strong>
    1010            <em>(You're running version <?php echo PHP_VERSION; ?>)</em>
    1111        </li>
    1212
    1313        <li>
    14             <strong>WordPress <?php echo MG_UPC_REQUIRED_WP_VERSION; ?>+</strong>
     14            <strong>WordPress <?php echo esc_html( MG_UPC_REQUIRED_WP_VERSION ); ?>+</strong>
    1515            <em>(You're running version <?php echo esc_html( $wp_version ); ?>)</em>
    1616        </li>
  • user-post-collections/trunk/templates/shortcode-404.php

    r2768965 r3190785  
    99?>
    1010<h2>
    11     <?php echo esc_html__( 'List not found.', 'user-post-collection' ); ?>
     11    <?php echo esc_html__( 'List not found.', 'user-post-collections' ); ?>
    1212</h2>
    1313<?php
  • user-post-collections/trunk/templates/single-mg-upc/empty-items.php

    r3190768 r3190785  
    1515    ?>
    1616    <h2 class="mg-upc-empty-items-text">
    17         <?php echo esc_html__( 'There are no items to show', 'user-post-collection' ); ?>
     17        <?php echo esc_html__( 'There are no items to show', 'user-post-collections' ); ?>
    1818    </h2>
    1919    <?php
  • user-post-collections/trunk/user-post-collections.php

    r3190768 r3190785  
    44Plugin URI:  https://galetto.info/user-post-collections
    55Description: Allows users to create their post collections.
    6 Version:     0.9.0
     6Version:     0.9.1
    77Author:      Mauricio Galetto
    88Author URI:  https://galetto.info/
Note: See TracChangeset for help on using the changeset viewer.