Changeset 2129168
- Timestamp:
- 07/26/2019 03:01:37 PM (7 years ago)
- Location:
- a-z-listing
- Files:
-
- 56 added
- 8 edited
-
tags/3.1.0 (added)
-
tags/3.1.0/.distignore (added)
-
tags/3.1.0/.svnignore (added)
-
tags/3.1.0/LICENSE (added)
-
tags/3.1.0/a-z-listing.php (added)
-
tags/3.1.0/changelog.md (added)
-
tags/3.1.0/composer.json (added)
-
tags/3.1.0/composer.lock (added)
-
tags/3.1.0/css (added)
-
tags/3.1.0/css/a-z-listing-customize.css (added)
-
tags/3.1.0/css/a-z-listing-customize.css.map (added)
-
tags/3.1.0/css/a-z-listing-customize.scss (added)
-
tags/3.1.0/css/a-z-listing-default.css (added)
-
tags/3.1.0/css/a-z-listing-default.css.map (added)
-
tags/3.1.0/css/a-z-listing-default.scss (added)
-
tags/3.1.0/css/mixins.css (added)
-
tags/3.1.0/css/mixins.scss (added)
-
tags/3.1.0/functions (added)
-
tags/3.1.0/functions/enqueues.php (added)
-
tags/3.1.0/functions/health-check.php (added)
-
tags/3.1.0/functions/helpers.php (added)
-
tags/3.1.0/functions/i18n.php (added)
-
tags/3.1.0/functions/scripts.php (added)
-
tags/3.1.0/functions/styles.php (added)
-
tags/3.1.0/languages (added)
-
tags/3.1.0/languages/a-z-listing.pot (added)
-
tags/3.1.0/readme.txt (added)
-
tags/3.1.0/scripts (added)
-
tags/3.1.0/scripts/a-z-listing-scroll-fix.js (added)
-
tags/3.1.0/scripts/a-z-listing-tabs.js (added)
-
tags/3.1.0/scripts/a-z-listing-widget-admin.js (added)
-
tags/3.1.0/src (added)
-
tags/3.1.0/src/Grouping.php (added)
-
tags/3.1.0/src/Indices.php (added)
-
tags/3.1.0/src/Numbers.php (added)
-
tags/3.1.0/src/Query.php (added)
-
tags/3.1.0/src/Shortcode.php (added)
-
tags/3.1.0/src/Singleton.php (added)
-
tags/3.1.0/templates (added)
-
tags/3.1.0/templates/a-z-listing.example.php (added)
-
tags/3.1.0/templates/a-z-listing.php (added)
-
tags/3.1.0/vendor (added)
-
tags/3.1.0/vendor/autoload.php (added)
-
tags/3.1.0/vendor/composer (added)
-
tags/3.1.0/vendor/composer/ClassLoader.php (added)
-
tags/3.1.0/vendor/composer/LICENSE (added)
-
tags/3.1.0/vendor/composer/autoload_classmap.php (added)
-
tags/3.1.0/vendor/composer/autoload_namespaces.php (added)
-
tags/3.1.0/vendor/composer/autoload_psr4.php (added)
-
tags/3.1.0/vendor/composer/autoload_real.php (added)
-
tags/3.1.0/vendor/composer/autoload_static.php (added)
-
tags/3.1.0/vendor/composer/installed.json (added)
-
tags/3.1.0/widgets (added)
-
tags/3.1.0/widgets/class-a-z-listing-widget.php (added)
-
tags/3.1.0/wp-includes (added)
-
tags/3.1.0/wp-includes/version.php (added)
-
trunk/a-z-listing.php (modified) (3 diffs)
-
trunk/composer.json (modified) (1 diff)
-
trunk/languages/a-z-listing.pot (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/src/Query.php (modified) (4 diffs)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_real.php (modified) (3 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
a-z-listing/trunk/a-z-listing.php
r2118746 r2129168 8 8 * Text Domain: a-z-listing 9 9 * Domain Path: /languages 10 * Version: 3. 0.210 * Version: 3.1.0 11 11 * 12 12 * @package A_Z_Listing … … 21 21 } 22 22 23 require 'vendor/autoload.php';23 require __DIR__ . '/vendor/autoload.php'; 24 24 25 25 /** … … 35 35 */ 36 36 function 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'; 43 43 44 require 'widgets/class-a-z-listing-widget.php';44 require __DIR__ . '/widgets/class-a-z-listing-widget.php'; 45 45 46 46 add_action( 'init', 'a_z_listing_init', 5 ); -
a-z-listing/trunk/composer.json
r2117782 r2129168 3 3 "description": "The A-Z Listing plugin for WordPress", 4 4 "require-dev": { 5 "phpunit/phpunit": " ^8",5 "phpunit/phpunit": ">= 5", 6 6 "squizlabs/php_codesniffer": "^3.4", 7 7 "dealerdirect/phpcodesniffer-composer-installer": "^0.5.0", -
a-z-listing/trunk/languages/a-z-listing.pot
r2118746 r2129168 3 3 msgid "" 4 4 msgstr "" 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" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=utf-8\n" -
a-z-listing/trunk/readme.txt
r2118746 r2129168 7 7 Requires PHP: 5.6 8 8 Tested up to: 5.2 9 Stable tag: 3. 0.29 Stable tag: 3.1.0 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 458 458 == Changelog == 459 459 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 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. 469 460 470 = 3.0.2 = 461 471 462 472 * Fix for causing "This site is experiencing difficulties" errors on some sites. 463 473 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 480 This is a major version change, which means that it might break your site when you upgrade. Please check in a test site first! 469 481 470 482 * Add `get_the_item_id` and `the_item_id` template tags. … … 475 487 * Miscellaneous documentation Fixes. 476 488 477 = 3.0.1 =478 479 * Fix broken permalinks in 3.0.0480 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 509 489 = 2.3.0 = 510 490 -
a-z-listing/trunk/src/Query.php
r2118746 r2129168 291 291 public function wp_query_fields( $fields, $query ) { 292 292 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"; 294 294 } 295 295 … … 493 493 494 494 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 ); 496 496 } 497 497 … … 502 502 503 503 if ( AZLISTINGLOG ) { 504 do_action( 'log', 'A-Z Section', $section_name );504 do_action( 'log', 'A-Z Listing: Proceeding with section', $section_name ); 505 505 } 506 506 return $section_object; … … 580 580 $indexed_items[ $character ], 581 581 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; 583 611 } 584 612 ); -
a-z-listing/trunk/vendor/autoload.php
r2118746 r2129168 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit7 6ef8f225a807bf642094a3e0a7b0253::getLoader();7 return ComposerAutoloaderInit7ab08761c3e13e271b870060f52f7fb3::getLoader(); -
a-z-listing/trunk/vendor/composer/autoload_real.php
r2118746 r2129168 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit7 6ef8f225a807bf642094a3e0a7b02535 class ComposerAutoloaderInit7ab08761c3e13e271b870060f52f7fb3 6 6 { 7 7 private static $loader; … … 20 20 } 21 21 22 spl_autoload_register(array('ComposerAutoloaderInit7 6ef8f225a807bf642094a3e0a7b0253', 'loadClassLoader'), true, true);22 spl_autoload_register(array('ComposerAutoloaderInit7ab08761c3e13e271b870060f52f7fb3', 'loadClassLoader'), true, true); 23 23 self::$loader = $loader = new \Composer\Autoload\ClassLoader(); 24 spl_autoload_unregister(array('ComposerAutoloaderInit7 6ef8f225a807bf642094a3e0a7b0253', 'loadClassLoader'));24 spl_autoload_unregister(array('ComposerAutoloaderInit7ab08761c3e13e271b870060f52f7fb3', 'loadClassLoader')); 25 25 26 26 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 28 28 require_once __DIR__ . '/autoload_static.php'; 29 29 30 call_user_func(\Composer\Autoload\ComposerStaticInit7 6ef8f225a807bf642094a3e0a7b0253::getInitializer($loader));30 call_user_func(\Composer\Autoload\ComposerStaticInit7ab08761c3e13e271b870060f52f7fb3::getInitializer($loader)); 31 31 } else { 32 32 $classMap = require __DIR__ . '/autoload_classmap.php'; -
a-z-listing/trunk/vendor/composer/autoload_static.php
r2118746 r2129168 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit7 6ef8f225a807bf642094a3e0a7b02537 class ComposerStaticInit7ab08761c3e13e271b870060f52f7fb3 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 33 33 { 34 34 return \Closure::bind(function () use ($loader) { 35 $loader->prefixLengthsPsr4 = ComposerStaticInit7 6ef8f225a807bf642094a3e0a7b0253::$prefixLengthsPsr4;36 $loader->prefixDirsPsr4 = ComposerStaticInit7 6ef8f225a807bf642094a3e0a7b0253::$prefixDirsPsr4;37 $loader->classMap = ComposerStaticInit7 6ef8f225a807bf642094a3e0a7b0253::$classMap;35 $loader->prefixLengthsPsr4 = ComposerStaticInit7ab08761c3e13e271b870060f52f7fb3::$prefixLengthsPsr4; 36 $loader->prefixDirsPsr4 = ComposerStaticInit7ab08761c3e13e271b870060f52f7fb3::$prefixDirsPsr4; 37 $loader->classMap = ComposerStaticInit7ab08761c3e13e271b870060f52f7fb3::$classMap; 38 38 39 39 }, null, ClassLoader::class);
Note: See TracChangeset
for help on using the changeset viewer.