Plugin Directory

Changeset 2817601


Ignore:
Timestamp:
11/14/2022 10:44:34 AM (3 years ago)
Author:
Ahaenor
Message:
  • V.3.29.1 - ready for l10n.
Location:
leyka/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • leyka/trunk/README.txt

    r2791996 r2817601  
    55Tags: лейка, crowdfunding, fundraising, donations, recurring donations, charity, leyka, recurring, cloudpayments, webmoney, robokassa, rbk, rbkmoney, rbk-money, yoomoney, chronopay, sms, yookassa, миксплат, mixplat, paypal, paymaster, qiwi, киви, stripe, страйп, gds, google data studio
    66Requires at least: 3.6.1
    7 Tested up to: 6.0.2
     7Tested up to: 6.1
    88Stable tag: 3.29
    99License: GPLv2 or later
     
    8484
    8585== Changelog ==
     86= 3.29.1 =
     87* Fix: YooKassa compatibility fix for WP 6.1.
     88* Fix: Demirbank notices bug fixed.
     89* Fix: the custom admin info pages access error bug fixed.
     90* Fix: small fixes.
     91
    8692= 3.29 =
    8793* New: Muli-currencies system added.
  • leyka/trunk/gateways/demirbank/leyka-class-demirbank-gateway.php

    r2791882 r2817601  
    193193    protected function _set_success_page_content() {
    194194
    195         add_filter('the_content', function ($content){
     195        add_filter('the_content', function($content){
    196196
    197197            global $wp_query;
    198198
    199             if((url_to_postid(leyka_get_success_page_url()) !== $wp_query->post->ID) || empty($_POST)) {
     199            if(
     200                empty($_POST)
     201                || empty($_POST['donation_id'])
     202                || (empty($wp_query) && empty($wp_query->post))
     203                || url_to_postid(leyka_get_success_page_url()) !== $wp_query->post->ID
     204            ) {
    200205                return $content;
    201206            }
     
    218223                ],
    219224                [
    220                     __("Save", 'leyka'),
    221                     __("Send", 'leyka'),
     225                    __('Save', 'leyka'),
     226                    __('Send', 'leyka'),
    222227                    $donation->id,
    223228                    sprintf(__("Card-check has been sent to <b> %s </b>", 'leyka'), $donation->donor_email),
  • leyka/trunk/gateways/yandex/leyka-class-yandex-gateway.php

    r2765108 r2817601  
    256256            try {
    257257
     258                $return_page_id = leyka_options()->opt('yandex_return_url');
     259                $home_url = home_url();
     260                $return_url = $return_page_id ? // Due to strange YooKassa SDK bug - it doesn't accept URLs w/o "/" at the end
     261                    get_post_permalink($return_page_id) :
     262                    (mb_substr($home_url, -1, 1) === '/' ? $home_url : $home_url.'/');
     263
    258264                $payment_data = [
    259265                    'amount' => [
     
    263269                    'confirmation' => [
    264270                        'type' => 'redirect',
    265                         'return_url' => get_post_permalink(leyka_options()->opt('yandex_return_url')),
     271                        'return_url' => $return_url,
    266272                    ],
    267273                    'capture' => true, // Make payment at once, don't wait for shop confirmation
  • leyka/trunk/inc/admin-lists/leyka-class-recurring-subscriptions-list-table.php

    r2749335 r2817601  
    198198     */
    199199    function get_columns() {
    200         return [
     200        return apply_filters('leyka_admin_recurring_subscriptions_list_columns', [
    201201            'donation_id' => __('ID'),
    202202            'campaign' => __('Campaign', 'leyka'),
     
    207207            'amount' => __('Amount', 'leyka'),
    208208            'gateway_pm' => _x('Method', 'Recurring subscriptions list page: table column', 'leyka')
    209         ];
     209        ]);
    210210    }
    211211
     
    214214     */
    215215    public function get_sortable_columns() {
    216         return [
     216        return apply_filters('leyka_admin_recurring_subscriptions_list_sortable_columns', [
    217217            'donation_id' => ['donation_id', true],
    218218            'donor' => ['donor_name', false],
     
    221221            'amount' => ['amount', true],
    222222            'gateway_pm' => ['gateway_pm', true]
    223         ];
     223        ]);
    224224    }
    225225
     
    282282
    283283            default: // Show the whole item array for troubleshooting purposes
    284                 return leyka_options()->opt('plugin_debug_mode') ?
    285                     '<pre>'.print_r($item, true).'</pre>' : // Show the whole array for troubleshooting purposes
    286                     apply_filters("leyka_admin_recurring_subscription_{$column_name}_column_content", '', $item);
     284                return apply_filters("leyka_admin_recurring_subscription_{$column_name}_column_content", '', $item);
    287285        }
    288286    }
  • leyka/trunk/inc/leyka-admin.php

    r2750481 r2817601  
    484484        // Fake pages:
    485485        add_submenu_page(
    486             NULL,
     486            'leyka_donations',
    487487            __('New correctional donation', 'leyka'),
    488488            _x('Add new', '[donation]', 'leyka'),
     
    493493
    494494        add_submenu_page(
    495             NULL,
     495            'leyka_recurring_subscriptions',
    496496            __('Recurring subscription info', 'leyka'),
    497497            __('Recurring subscription info', 'leyka'),
     
    502502
    503503        add_submenu_page(
    504             NULL,
     504            'leyka_settings',
    505505            __('Leyka Wizard', 'leyka'),
    506506            __('Leyka Wizard', 'leyka'),
     
    511511
    512512        add_submenu_page(
    513             NULL,
     513            'leyka_donors',
    514514            __("Donor's info", 'leyka'),
    515515            __("Donor's info", 'leyka'),
     
    520520
    521521        add_submenu_page(
    522             NULL,
     522            'leyka_settings',
    523523            __('Extension settings', 'leyka'),
    524524            __('Extension settings', 'leyka'),
  • leyka/trunk/leyka.php

    r2791882 r2817601  
    55 * Plugin URI:  https://leyka.te-st.ru/
    66 * Description: Donations management system for your WP site. For NGOs and social projects.
    7  * Version:     3.29
     7 * Version:     3.29.1
    88 * Author:      Teplitsa of social technologies
    99 * Author URI:  https://te-st.ru
     
    4040// Leyka plugin version:
    4141if( !defined('LEYKA_VERSION') ) {
    42     define('LEYKA_VERSION', '3.29');
     42    define('LEYKA_VERSION', '3.29.1');
    4343}
    4444
  • leyka/trunk/procedures/leyka-import-recurring-subscriptions-cp.php

    r2791882 r2817601  
    4848        continue;
    4949    }
    50     if( !in_array($subscription_data[2], ['Работает',]) ) {
     50    if( !in_array($subscription_data[2], ['Работает','Просрочена',]) ) { // "Просроченные" subscriptions are still active
    5151        continue;
    5252    }
     
    5454//    $subscription_data[0] - CP subscription ID
    5555//    $subscription_data[1] - Date/time of subscription creation (and for it's rebills)
    56 //    $subscription_data[2] - Subscription status (in russian, i.e. "Работает")
     56//    $subscription_data[2] - Subscription status (in russian, i.e. "Работает/Просрочена")
    5757//    $subscription_data[3] - Subscription amount
    5858//    $subscription_data[4] - Subscription currency (CP symbols, i.e. "₽")
Note: See TracChangeset for help on using the changeset viewer.