Plugin Directory

Changeset 2129168


Ignore:
Timestamp:
07/26/2019 03:01:37 PM (7 years ago)
Author:
diddledan
Message:

Version 3.1.0

Location:
a-z-listing
Files:
56 added
8 edited

Legend:

Unmodified
Added
Removed
  • a-z-listing/trunk/a-z-listing.php

    r2118746 r2129168  
    88 * Text Domain:     a-z-listing
    99 * Domain Path:     /languages
    10  * Version:         3.0.2
     10 * Version:         3.1.0
    1111 *
    1212 * @package         A_Z_Listing
     
    2121}
    2222
    23 require 'vendor/autoload.php';
     23require __DIR__ . '/vendor/autoload.php';
    2424
    2525/**
     
    3535 */
    3636function a_z_listing_plugins_loaded() {
    37     require 'functions/i18n.php';
    38     require 'functions/health-check.php';
    39     require 'functions/helpers.php';
    40     require 'functions/styles.php';
    41     require 'functions/scripts.php';
    42     require 'functions/enqueues.php';
     37    require __DIR__ . '/functions/i18n.php';
     38    require __DIR__ . '/functions/health-check.php';
     39    require __DIR__ . '/functions/helpers.php';
     40    require __DIR__ . '/functions/styles.php';
     41    require __DIR__ . '/functions/scripts.php';
     42    require __DIR__ . '/functions/enqueues.php';
    4343
    44     require 'widgets/class-a-z-listing-widget.php';
     44    require __DIR__ . '/widgets/class-a-z-listing-widget.php';
    4545
    4646    add_action( 'init', 'a_z_listing_init', 5 );
  • a-z-listing/trunk/composer.json

    r2117782 r2129168  
    33    "description": "The A-Z Listing plugin for WordPress",
    44    "require-dev": {
    5         "phpunit/phpunit": "^8",
     5        "phpunit/phpunit": ">= 5",
    66        "squizlabs/php_codesniffer": "^3.4",
    77        "dealerdirect/phpcodesniffer-composer-installer": "^0.5.0",
  • a-z-listing/trunk/languages/a-z-listing.pot

    r2118746 r2129168  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: A-Z Listing 3.0.1\n"
    6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wp-a-z-listing\n"
    7 "POT-Creation-Date: 2019-07-06 19:29:20+00:00\n"
     5"Project-Id-Version: A-Z Listing 3.1.0\n"
     6"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/a-z-listing\n"
     7"POT-Creation-Date: 2019-07-26 14:35:54+00:00\n"
    88"MIME-Version: 1.0\n"
    99"Content-Type: text/plain; charset=utf-8\n"
  • a-z-listing/trunk/readme.txt

    r2118746 r2129168  
    77Requires PHP: 5.6
    88Tested up to: 5.2
    9 Stable tag: 3.0.2
     9Stable tag: 3.1.0
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    458458== Changelog ==
    459459
     460= 3.1.0 =
     461
     462* Ensure paths are correct when loading PHP files.
     463* Add hook to customise sorting of items within each letter.
     464* Fix broken permalinks on hierarchical post-types, e.g. page.
     465
     466**NEW EXTENSIONS**
     467
     468Check out the two new extensions at [A-Z-Listing.com](https://a-z-listing.com/shop). These extensions provide convinience functionality. Purchasing one or both will help towards the cost of maintaining the A-Z Listing plugin.
     469
    460470= 3.0.2 =
    461471
    462472* Fix for causing "This site is experiencing difficulties" errors on some sites.
    463473
    464 If you are upgrading from pre-3.0.0 this is a major version change, which means that it might break your site when you upgrade. Please check in a test site first!
    465 
    466 **NEW EXTENSIONS**
    467 
    468 Check out the two new extensions at [A-Z-Listing.com](https://a-z-listing.com/shop). These extensions provide convinience functionality. Purchasing one or both will help towards the cost of maintaining the A-Z Listing plugin.
     474= 3.0.1 =
     475
     476* Fix broken permalinks in 3.0.0
     477
     478= 3.0.0 =
     479
     480This is a major version change, which means that it might break your site when you upgrade. Please check in a test site first!
    469481
    470482* Add `get_the_item_id` and `the_item_id` template tags.
     
    475487* Miscellaneous documentation Fixes.
    476488
    477 = 3.0.1 =
    478 
    479 * Fix broken permalinks in 3.0.0
    480 
    481 If you are upgrading from pre-3.0.0 this is a major version change, which means that it might break your site when you upgrade. Please check in a test site first!
    482 
    483 **NEW EXTENSIONS**
    484 
    485 Check out the two new extensions at [A-Z-Listing.com](https://a-z-listing.com/shop). These extensions provide convinience functionality. Purchasing one or both will help towards the cost of maintaining the A-Z Listing plugin.
    486 
    487 * Add `get_the_item_id` and `the_item_id` template tags.
    488 * Add `get_the_item_type` template tag.
    489 * Add support for extensions.
    490 * Complete refactor to use more modern PHP features.
    491 * Minor refactoring of `get_the_item_object`, `get_item_meta`, and `get_the_item_count` template tags.
    492 * Miscellaneous documentation Fixes.
    493 
    494 = 3.0.0 =
    495 
    496 This is a major version change, which means that it might break your site when you upgrade. Please check in a test site first!
    497 
    498 **NEW EXTENSIONS**
    499 
    500 Check out the two new extensions at [A-Z-Listing.com](https://a-z-listing.com/shop). These extensions provide convinience functionality. Purchasing one or both will help towards the cost of maintaining the A-Z Listing plugin.
    501 
    502 * Add `get_the_item_id` and `the_item_id` template tags.
    503 * Add `get_the_item_type` template tag.
    504 * Add support for extensions.
    505 * Complete refactor to use more modern PHP features.
    506 * Minor refactoring of `get_the_item_object`, `get_item_meta`, and `get_the_item_count` template tags.
    507 * Miscellaneous documentation Fixes.
    508 
    509489= 2.3.0 =
    510490
  • a-z-listing/trunk/src/Query.php

    r2118746 r2129168  
    291291    public function wp_query_fields( $fields, $query ) {
    292292        global $wpdb;
    293         return "{$wpdb->posts}.ID, {$wpdb->posts}.post_title, {$wpdb->posts}.post_type, {$wpdb->posts}.post_name, {$wpdb->posts}.post_date";
     293        return "{$wpdb->posts}.ID, {$wpdb->posts}.post_title, {$wpdb->posts}.post_type, {$wpdb->posts}.post_name, {$wpdb->posts}.post_parent, {$wpdb->posts}.post_date";
    294294    }
    295295
     
    493493
    494494        if ( AZLISTINGLOG ) {
    495             do_action( 'log', 'A-Z Section selection', $section_name, $sections );
     495            do_action( 'log', 'A-Z Listing: Section selection', $section_name, $sections );
    496496        }
    497497
     
    502502
    503503        if ( AZLISTINGLOG ) {
    504             do_action( 'log', 'A-Z Section', $section_name );
     504            do_action( 'log', 'A-Z Listing: Proceeding with section', $section_name );
    505505        }
    506506        return $section_object;
     
    580580                        $indexed_items[ $character ],
    581581                        function ( $a, $b ) {
    582                             return strcasecmp( $a['title'], $b['title'] );
     582                            $atitle = strtolower( $a['title'] );
     583                            $btitle = strtolower( $b['title'] );
     584
     585                            $default_sort = strcmp( $atitle, $btitle );
     586
     587                            /**
     588                             * Compare two titles to determine sorting order.
     589                             *
     590                             * @since 3.1.0
     591                             * @param int The previous order preference: -1 if $a is less than $b. 1 if $a is greater than $b. 0 if they are identical.
     592                             * @param string $a The first title. Converted to lower case.
     593                             * @param string $b The second title. Converted to lower case.
     594                             * @return int The new order preference: -1 if $a is less than $b. 1 if $a is greater than $b. 0 if they are identical.
     595                             */
     596                            $sort = apply_filters(
     597                                'a_z_listing_item_sorting_comparator',
     598                                $default_sort,
     599                                $atitle,
     600                                $btitle
     601                            );
     602
     603                            if ( is_int( $sort ) ) {
     604                                if ( AZLISTINGLOG ) {
     605                                    do_action( 'log', 'A-Z Listing: value returned from `a_z_listing_item_sorting_comparator` filter sorting was not an integer', $sort, $atitle, $btitle );
     606                                }
     607                                return $sort;
     608                            }
     609
     610                            return $default_sort;
    583611                        }
    584612                    );
  • a-z-listing/trunk/vendor/autoload.php

    r2118746 r2129168  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInit76ef8f225a807bf642094a3e0a7b0253::getLoader();
     7return ComposerAutoloaderInit7ab08761c3e13e271b870060f52f7fb3::getLoader();
  • a-z-listing/trunk/vendor/composer/autoload_real.php

    r2118746 r2129168  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit76ef8f225a807bf642094a3e0a7b0253
     5class ComposerAutoloaderInit7ab08761c3e13e271b870060f52f7fb3
    66{
    77    private static $loader;
     
    2020        }
    2121
    22         spl_autoload_register(array('ComposerAutoloaderInit76ef8f225a807bf642094a3e0a7b0253', 'loadClassLoader'), true, true);
     22        spl_autoload_register(array('ComposerAutoloaderInit7ab08761c3e13e271b870060f52f7fb3', 'loadClassLoader'), true, true);
    2323        self::$loader = $loader = new \Composer\Autoload\ClassLoader();
    24         spl_autoload_unregister(array('ComposerAutoloaderInit76ef8f225a807bf642094a3e0a7b0253', 'loadClassLoader'));
     24        spl_autoload_unregister(array('ComposerAutoloaderInit7ab08761c3e13e271b870060f52f7fb3', 'loadClassLoader'));
    2525
    2626        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    2828            require_once __DIR__ . '/autoload_static.php';
    2929
    30             call_user_func(\Composer\Autoload\ComposerStaticInit76ef8f225a807bf642094a3e0a7b0253::getInitializer($loader));
     30            call_user_func(\Composer\Autoload\ComposerStaticInit7ab08761c3e13e271b870060f52f7fb3::getInitializer($loader));
    3131        } else {
    3232            $classMap = require __DIR__ . '/autoload_classmap.php';
  • a-z-listing/trunk/vendor/composer/autoload_static.php

    r2118746 r2129168  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit76ef8f225a807bf642094a3e0a7b0253
     7class ComposerStaticInit7ab08761c3e13e271b870060f52f7fb3
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    3333    {
    3434        return \Closure::bind(function () use ($loader) {
    35             $loader->prefixLengthsPsr4 = ComposerStaticInit76ef8f225a807bf642094a3e0a7b0253::$prefixLengthsPsr4;
    36             $loader->prefixDirsPsr4 = ComposerStaticInit76ef8f225a807bf642094a3e0a7b0253::$prefixDirsPsr4;
    37             $loader->classMap = ComposerStaticInit76ef8f225a807bf642094a3e0a7b0253::$classMap;
     35            $loader->prefixLengthsPsr4 = ComposerStaticInit7ab08761c3e13e271b870060f52f7fb3::$prefixLengthsPsr4;
     36            $loader->prefixDirsPsr4 = ComposerStaticInit7ab08761c3e13e271b870060f52f7fb3::$prefixDirsPsr4;
     37            $loader->classMap = ComposerStaticInit7ab08761c3e13e271b870060f52f7fb3::$classMap;
    3838
    3939        }, null, ClassLoader::class);
Note: See TracChangeset for help on using the changeset viewer.