Plugin Directory

Changeset 2117782


Ignore:
Timestamp:
07/05/2019 12:03:10 AM (7 years ago)
Author:
diddledan
Message:

Version 3.0.0

Location:
a-z-listing
Files:
83 added
11 edited

Legend:

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

    r1939419 r2117782  
    66.gitignore
    77.gitlab-ci.yml
     8.github
    89.idea
    910.jshintrc
     
    3536tests
    3637Thumbs.db
    37 vendor
    3838wp-cli.local.yml
    3939yarn.lock
  • a-z-listing/trunk/a-z-listing.php

    r2092139 r2117782  
    88 * Text Domain:     a-z-listing
    99 * Domain Path:     /languages
    10  * Version:         2.3.0
     10 * Version:         3.0.0
    1111 *
    1212 * @package         A_Z_Listing
     
    2121}
    2222
     23require 'vendor/autoload.php';
     24
    2325/**
    2426 * Initialize the plugin.
    2527 */
    2628function a_z_listing_init() {
    27     A_Z_Listing_Indices::instance()->activate( __FILE__ )->initialize();
     29    \A_Z_Listing\Shortcode::instance()->activate( __FILE__, [] )->initialize();
     30    \A_Z_Listing\Indices::instance()->activate( __FILE__, [] )->initialize();
    2831}
    2932
     
    3841    require 'functions/scripts.php';
    3942    require 'functions/enqueues.php';
    40     require 'functions/shortcode.php';
    4143
    42     require 'interfaces/interface-a-z-listing-extension.php';
    43 
    44     require 'classes/class-a-z-listing.php';
    45     require 'classes/class-a-z-listing-singleton.php';
    46     require 'classes/class-a-z-listing-grouping.php';
    47     require 'classes/class-a-z-listing-numbers.php';
    48     require 'classes/class-a-z-listing-indices.php';
    4944    require 'widgets/class-a-z-listing-widget.php';
    5045
  • a-z-listing/trunk/changelog.md

    r2092139 r2117782  
    11# Full Changelog #
     2
     3## 3.0.0 ##
     4
     5This is a major version change, which means that it might break your site when you upgrade. Please check in a test site first!
     6
     7* Add `get_the_item_id` and `the_item_id` template tags.
     8* Add `get_the_item_type` template tag.
     9* Add support for extensions.
     10* Complete refactor to use more modern PHP features.
     11* Minor refactoring of `get_the_item_object`, `get_item_meta`, and `get_the_item_count` template tags.
     12* Miscellaneous documentation Fixes.
    213
    314## 2.3.0 ##
  • a-z-listing/trunk/css/a-z-listing-default.css

    r2003543 r2117782  
    1 .az-letters ul.az-links,
    2 .a-z-listing-widget .az-letters ul.az-links,
    3 .a-z-listing-widget.widget .az-letters ul.az-links {
    4   padding: 0;
    5   margin: 0;
    6   width: 100%;
    7   display: flex;
    8   flex-direction: row;
    9   flex-wrap: wrap;
    10   justify-content: center; }
    11   .az-letters ul.az-links li,
    12   .a-z-listing-widget .az-letters ul.az-links li,
    13   .a-z-listing-widget.widget .az-letters ul.az-links li {
    14     list-style: none;
    15     width: 2em;
    16     height: 2em;
    17     box-sizing: border-box;
    18     margin: 0 0 0.6em;
    19     border: 2px solid #e5e5e5;
    20     background: #f5f5f5;
    21     color: #adadad;
     1.az-letters,
     2.a-z-listing-widget .az-letters,
     3.a-z-listing-widget.widget .az-letters {
     4  white-space: unset; }
     5  .az-letters > ul.az-links,
     6  .a-z-listing-widget .az-letters > ul.az-links,
     7  .a-z-listing-widget.widget .az-letters > ul.az-links {
     8    padding: 0;
     9    margin: 0;
     10    width: 100%;
    2211    display: flex;
    23     align-items: center;
     12    flex-direction: row;
     13    flex-wrap: wrap;
    2414    justify-content: center; }
    25     .az-letters ul.az-links li a,
    26     .a-z-listing-widget .az-letters ul.az-links li a,
    27     .a-z-listing-widget.widget .az-letters ul.az-links li a {
    28       color: #1f7d9a;
    29       text-decoration: none;
    30       border: 0;
    31       box-shadow: none; }
     15    .az-letters > ul.az-links > li,
     16    .a-z-listing-widget .az-letters > ul.az-links > li,
     17    .a-z-listing-widget.widget .az-letters > ul.az-links > li {
     18      list-style: none;
     19      width: 2em;
     20      height: 2em;
     21      box-sizing: border-box;
     22      margin: 0 0 0.6em;
     23      border: 2px solid #e5e5e5;
     24      background: #f5f5f5;
     25      color: #adadad;
     26      display: flex;
     27      align-items: center;
     28      justify-content: center; }
     29      .az-letters > ul.az-links > li a,
     30      .a-z-listing-widget .az-letters > ul.az-links > li a,
     31      .a-z-listing-widget.widget .az-letters > ul.az-links > li a {
     32        color: #1f7d9a;
     33        text-decoration: none;
     34        border: 0;
     35        box-shadow: none; }
    3236
    3337.letter-section {
    34   margin-bottom: 2em; }
     38  margin-bottom: 2em;
     39  white-space: unset; }
    3540  .letter-section h2.letter-title {
    3641    border-bottom: 1px solid black;
     
    3843    padding-bottom: 0.2em;
    3944    width: 100%; }
    40   .letter-section ul, .letter-section ul li {
     45  .letter-section ul,
     46  .letter-section ul > li {
    4147    list-style: none;
    4248    margin: 0;
     
    4854    column-width: 15em;
    4955    line-height: 1.6em; }
    50     .letter-section ul.columns li {
     56    .letter-section ul.columns > li {
    5157      display: block; }
    5258    .letter-section ul.columns.max-0-columns, .letter-section ul.columns.max-1-columns {
  • a-z-listing/trunk/css/a-z-listing-default.css.map

    r2003543 r2117782  
    77    ],
    88    "names": [],
    9     "mappings": "AAEA,AAGC,WAHU,CAGV,EAAE,AAAA,SAAS;AAFZ,mBAAmB,CAAC,WAAW,CAE9B,EAAE,AAAA,SAAS;AADZ,mBAAmB,AAAA,OAAO,CAAC,WAAW,CACrC,EAAE,AAAA,SAAS,CAAC;EACX,OAAO,EAAE,CAAC;EACV,MAAM,EAAE,CAAC;EACT,KAAK,EAAE,IAAI;EACX,OAAO,EAAE,IAAI;EACb,cAAc,EAAE,GAAG;EACnB,SAAS,EAAE,IAAI;EACf,eAAe,EAAE,MAAM,GAoBvB;EA9BF,AAWE,WAXS,CAGV,EAAE,AAAA,SAAS,CAQV,EAAE;EAVJ,mBAAmB,CAAC,WAAW,CAE9B,EAAE,AAAA,SAAS,CAQV,EAAE;EATJ,mBAAmB,AAAA,OAAO,CAAC,WAAW,CACrC,EAAE,AAAA,SAAS,CAQV,EAAE,CAAC;IACF,UAAU,EAAE,IAAI;IAChB,KAAK,EAAE,GAAG;IACV,MAAM,EAAE,GAAG;IACX,UAAU,EAAE,UAAU;IACtB,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,iBAAiB;IACzB,UAAU,EAAE,OAAO;IACn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oCd,GAAG,AAAA,YAAY,CAGd,CAAC,AAGC,OAAO,EA1CX,eAAe,CAoCd,GAAG,AAAA,YAAY,CAGd,CAAC,AAIC,MAAM,CAAC;QACP,WAAW,EAAE,SAAS;QACtB,OAAO,EAAE,OAAO;QAChB,OAAO,EAAE,KAAK,GACd"
    1010}
  • a-z-listing/trunk/css/a-z-listing-default.scss

    r2003543 r2117782  
    44.a-z-listing-widget .az-letters,
    55.a-z-listing-widget.widget .az-letters {
    6     ul.az-links {
     6    white-space: unset;
     7    > ul.az-links {
    78        padding: 0;
    89        margin: 0;
     
    1213        flex-wrap: wrap;
    1314        justify-content: center;
    14         li {
     15        > li {
    1516            list-style: none;
    1617            width: 2em;
     
    3637.letter-section {
    3738    margin-bottom: 2em;
     39    white-space: unset;
    3840    h2.letter-title {
    3941        border-bottom: 1px solid black;
     
    4244        width: 100%;
    4345    }
    44     ul, ul li {
     46    ul,
     47    ul > li {
    4548        list-style: none;
    4649        margin: 0;
     
    5356        column-width: 15em;
    5457        line-height: 1.6em;
    55         li {
     58        > li {
    5659            display: block;
    5760        }
  • a-z-listing/trunk/functions/health-check.php

    r2092139 r2117782  
    44 *
    55 * @package a-z-listing
     6 * @since 2.3.0
    67 */
    78
    89/**
    910 * Add A-Z Listing Health Checks
     11 *
     12 * @since 2.3.0
    1013 *
    1114 * @param array $tests The health checks.
     
    2427 * The mbstring health check
    2528 *
     29 * @since 2.3.0
     30 *
    2631 * @return array The health check results.
    2732 */
     
    3136        'status'      => 'good',
    3237        'badge'       => array(
    33             'label' => __( 'mbstring', 'a-z-listing' ),
     38            'label' => __( 'Compatibility', 'a-z-listing' ),
    3439            'color' => 'green',
    3540        ),
     
    5964 * Add mbstring to the recommended modules section of the health-check feature
    6065 *
     66 * @since 2.3.0
     67 *
    6168 * @param array $modules An associated array of module properties used during testing.
    6269 * @return array The `$modules` array with `mbstring` added.
  • a-z-listing/trunk/functions/helpers.php

    r2092139 r2117782  
    1414 *
    1515 * @since 0.7
    16  * @param  array|string|WP_Query|A_Z_Listing $query a valid WordPress query or an A_Z_Listing instance.
    17  * @return bool                                     whether there are letters still to be iterated-over
     16 * @param  array|string|WP_Query|\A_Z_Listing\Query $query a valid WordPress query or an A_Z_Listing\Query instance.
     17 * @return bool whether there are letters still to be iterated-over
    1818 */
    1919function have_a_z_letters( $query = null ) {
     
    3737 *
    3838 * @since 0.8.0
    39  * @param  array|string|WP_Query|A_Z_Listing $query a valid WordPress query or an A_Z_Listing instance.
    40  * @return bool                                     whether there are still posts available
     39 * @param  array|string|WP_Query|\A_Z_Listing\Query $query a valid WordPress query or an A_Z_Listing\Query instance.
     40 * @return bool whether there are still posts available
    4141 */
    4242function have_a_z_items( $query = null ) {
     
    4848 *
    4949 * @since 0.7
    50  * @param array|string|WP_Query|A_Z_Listing $query a valid WordPress query or an A_Z_Listing instance.
     50 * @param array|string|WP_Query|\A_Z_Listing\Query $query a valid WordPress query or an A_Z_Listing\Query instance.
    5151 */
    5252function the_a_z_letter( $query = null ) {
     
    7070 *
    7171 * @since 0.8.0
    72  * @param array|string|WP_Query|A_Z_Listing $query a valid WordPress query or an A_Z_Listing instance.
     72 * @param array|string|WP_Query|\A_Z_Listing\Query $query a valid WordPress query or an A_Z_Listing\Query instance.
    7373 */
    7474function the_a_z_item( $query = null ) {
     
    116116 *
    117117 * @since 1.0.0
    118  * @param array|string|WP_Query|A_Z_Listing $query a valid WordPress query or an A_Z_Listing instance.
     118 * @param array|string|WP_Query|\A_Z_Listing\Query $query a valid WordPress query or an A_Z_Listing\Query instance.
    119119 */
    120120function the_a_z_letter_count( $query = null ) {
     
    126126 *
    127127 * @since 1.0.0
    128  * @param  array|string|WP_Query|A_Z_Listing $query a valid WordPress query or an A_Z_Listing instance.
     128 * @param  array|string|WP_Query|\A_Z_Listing\Query $query a valid WordPress query or an A_Z_Listing\Query instance.
    129129 * @return int                                        the number of letters
    130130 */
     
    137137 *
    138138 * @since 0.7
    139  * @param array|string|WP_Query|A_Z_Listing $query either a valid WordPress query or an A_Z_Listing instance.
     139 * @param array|string|WP_Query|\A_Z_Listing\Query $query either a valid WordPress query or an A_Z_Listing\Query instance.
    140140 */
    141141function the_a_z_letter_id( $query = null ) {
     
    147147 *
    148148 * @since 0.7
    149  * @param  array|string|WP_Query|A_Z_Listing $query either a valid WordPress query or an A_Z_Listing instance.
    150  * @return String                                     the current letter ID
     149 * @param  array|string|WP_Query|\A_Z_Listing\Query $query either a valid WordPress query or an A_Z_Listing\Query instance.
     150 * @return String the current letter ID
    151151 */
    152152function get_the_a_z_letter_id( $query = null ) {
     
    158158 *
    159159 * @since 0.7
    160  * @param array|string|WP_Query|A_Z_Listing $query either a valid WordPress query or an A_Z_Listing instance.
     160 * @param array|string|WP_Query|\A_Z_Listing\Query $query either a valid WordPress query or an A_Z_Listing\Query instance.
    161161 */
    162162function the_a_z_letter_title( $query = null ) {
     
    168168 *
    169169 * @since 0.7
    170  * @param  array|string|WP_Query|A_Z_Listing $query either a valid WordPress query or an A_Z_Listing instance.
    171  * @return string                                     the letter title
     170 * @param  array|string|WP_Query|\A_Z_Listing\Query $query either a valid WordPress query or an A_Z_Listing\Query instance.
     171 * @return string the letter title
    172172 */
    173173function get_the_a_z_letter_title( $query = null ) {
     
    179179 *
    180180 * @since 0.8.0
    181  * @param array|string|WP_Query|A_Z_Listing $query either a valid WordPress query or an A_Z_Listing instance.
     181 * @param array|string|WP_Query|\A_Z_Listing\Query $query either a valid WordPress query or an A_Z_Listing\Query instance.
    182182 */
    183183function the_a_z_item_title( $query = null ) {
     
    189189 *
    190190 * @since 0.8.0
    191  * @param  array|string|WP_Query|A_Z_Listing $query either a valid WordPress query or an A_Z_Listing instance.
    192  * @return string                                     the post or taxonomy-term title
     191 * @param  array|string|WP_Query|\A_Z_Listing\Query $query either a valid WordPress query or an A_Z_Listing\Query instance.
     192 * @return string the post or taxonomy-term title
    193193 */
    194194function get_the_a_z_item_title( $query = null ) {
     
    200200 *
    201201 * @since 0.8.0
    202  * @param array|string|WP_Query|A_Z_Listing $query either a valid WordPress query or an A_Z_Listing instance.
     202 * @param array|string|WP_Query|\A_Z_Listing\Query $query either a valid WordPress query or an A_Z_Listing\Query instance.
    203203 */
    204204function the_a_z_item_permalink( $query = null ) {
     
    210210 *
    211211 * @since 0.8.0
    212  * @param  array|string|WP_Query|A_Z_Listing $query either a valid WordPress query or an A_Z_Listing instance.
    213  * @return string                                     the permalink
     212 * @param  array|string|WP_Query|\A_Z_Listing\Query $query either a valid WordPress query or an A_Z_Listing\Query instance.
     213 * @return string the permalink
    214214 */
    215215function get_the_a_z_item_permalink( $query = null ) {
     
    223223 * @see the_a_z_listing()
    224224 * @deprecated use the_a_z_listing()
    225  * @param array|string|WP_Query|A_Z_Listing $query either a valid WordPress query or an A_Z_Listing instance.
     225 * @param array|string|WP_Query|\A_Z_Listing\Query $query either a valid WordPress query or an A_Z_Listing\Query instance.
    226226 */
    227227function the_az_listing( $query = null ) {
     
    234234 *
    235235 * @since 0.8.0
    236  * @param array|string|WP_Query|A_Z_Listing $query     a valid WordPress query or an A_Z_Listing instance.
    237  * @param bool                              $use_cache use the plugin's in-built query cache.
     236 * @param array|string|WP_Query|\A_Z_Listing\Query $query     a valid WordPress query or an A_Z_Listing\Query instance.
     237 * @param bool                                     $use_cache use the plugin's in-built query cache.
    238238 */
    239239function the_a_z_listing( $query = null, $use_cache = true ) {
     
    248248 * @deprecated use get_the_a_z_listing()
    249249 *
    250  * @param array|string|WP_Query|A_Z_Listing $query either a valid WordPress query or an A_Z_Listing instance.
    251  *
     250 * @param array|string|WP_Query|\A_Z_Listing\Query $query either a valid WordPress query or an A_Z_Listing\Query instance.
    252251 * @return string
    253252 */
     
    261260 *
    262261 * @since 0.8.0
    263  * @param  array|string|WP_Query|A_Z_Listing $query     a valid WordPress query or an A_Z_Listing instance.
    264  * @param  bool                              $use_cache use the plugin's in-built query cache.
    265  * @return string                                        The listing html content ready for echoing to the page.
     262 * @param  array|string|WP_Query|\A_Z_Listing\Query $query     a valid WordPress query or an A_Z_Listing\Query instance.
     263 * @param  bool                                     $use_cache use the plugin's in-built query cache.
     264 * @return string The listing html content ready for echoing to the page.
    266265 */
    267266function get_the_a_z_listing( $query = null, $use_cache = true ) {
     
    275274 * @see the_a_z_letters()
    276275 * @deprecated use the_a_z_letters()
    277  * @param array|string|WP_Query|A_Z_Listing $query either a valid WordPress query or an A_Z_Listing instance.
    278  * @param bool|string                       $target URL of the page to send the browser when a letter is clicked.
    279  * @param bool                              $styling unused.
     276 * @param array|string|WP_Query|\A_Z_Listing\Query $query either a valid WordPress query or an A_Z_Listing\Query instance.
     277 * @param bool|string                              $target URL of the page to send the browser when a letter is clicked.
     278 * @param bool                                     $styling unused.
    280279 */
    281280function the_az_letters( $query = null, $target = false, $styling = false ) {
     
    288287 *
    289288 * @since 0.8.0
    290  * @param array|string|WP_Query|A_Z_Listing $query a valid WordPress query or an A_Z_Listing instance.
    291  * @param bool|string                       $target URL of the page to send the browser when a letter is clicked.
    292  * @param bool                              $styling unused.
    293  * @param bool                              $use_cache use the plugin's in-built query cache.
     289 * @param array|string|WP_Query|\A_Z_Listing\Query $query a valid WordPress query or an A_Z_Listing\Query instance.
     290 * @param bool|string                              $target URL of the page to send the browser when a letter is clicked.
     291 * @param bool                                     $styling unused.
     292 * @param bool                                     $use_cache use the plugin's in-built query cache.
    294293 */
    295294function the_a_z_letters( $query = null, $target = false, $styling = false, $use_cache = true ) {
    296     echo get_the_a_z_letters( $query, $target, $styling, $use_cache ); // WPCS: XSS OK.
     295    echo get_the_a_z_letters( $query, $target, $styling, $use_cache ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    297296}
    298297
     
    303302 * @see get_the_a_z_letters()
    304303 * @deprecated use get_the_a_z_letters()
    305  * @param array|string|WP_Query|A_Z_Listing $query a valid WordPress query or an A_Z_Listing instance.
    306  * @param bool|string                       $target URL of the page to send the browser when a letter is clicked.
    307  * @param bool                              $styling unused.
     304 * @param array|string|WP_Query|\A_Z_Listing\Query $query a valid WordPress query or an A_Z_Listing\Query instance.
     305 * @param bool|string                              $target URL of the page to send the browser when a letter is clicked.
     306 * @param bool                                     $styling unused.
    308307 * @return string HTML ready for echoing containing the list of A-Z letters with anchor links to the A-Z Index page.
    309308 */
     
    317316 *
    318317 * @since 0.8.0
    319  * @param array|string|WP_Query|A_Z_Listing $query a valid WordPress query or an A_Z_Listing instance.
    320  * @param bool|string                       $target URL of the page to send the browser when a letter is clicked.
    321  * @param bool                              $styling unused.
    322  * @param bool                              $use_cache use the plugin's in-built query cache.
     318 * @param array|string|WP_Query|\A_Z_Listing\Query $query a valid WordPress query or an A_Z_Listing\Query instance.
     319 * @param bool|string                              $target URL of the page to send the browser when a letter is clicked.
     320 * @param bool                                     $styling unused.
     321 * @param bool                                     $use_cache use the plugin's in-built query cache.
    323322 * @return string HTML ready for echoing containing the list of A-Z letters with anchor links to the A-Z Index page.
    324323 */
    325324function get_the_a_z_letters( $query = null, $target = false, $styling = false, $use_cache = true ) {
    326325    return a_z_listing_cache( $query, '', $use_cache )->get_the_letters( $target, $styling );
     326}
     327
     328/**
     329 * Get a saved copy of the A_Z_Listing instance if we have one, or make a new one and save it for later
     330 *
     331 * @param array|string|WP_Query|\A_Z_Listing $query     A valid WordPress query or an A_Z_Listing instance.
     332 * @param string                             $type      The type of items displayed in the listing: 'terms' or 'posts'.
     333 * @param bool                               $use_cache Try to use a caching plugin. See https://a-z-listing.com/ for the caching plugin we created to work with this feature.
     334 * @return \A_Z_Listing\Query A new or previously-saved instance of A_Z_Listing using the provided construct_query
     335 */
     336function a_z_listing_cache( $query = null, $type = '', $use_cache = true ) {
     337    return new \A_Z_Listing\Query( $query, $type, $use_cache );
    327338}
    328339
  • a-z-listing/trunk/languages/a-z-listing.pot

    r2092139 r2117782  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: A-Z Listing 2.3.0\n"
     5"Project-Id-Version: A-Z Listing 3.0.0\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/a-z-listing\n"
    7 "POT-Creation-Date: 2019-05-20 22:04:04+00:00\n"
     7"POT-Creation-Date: 2019-07-04 23:12:18+00:00\n"
    88"MIME-Version: 1.0\n"
    99"Content-Type: text/plain; charset=utf-8\n"
     
    2525"X-Generator: grunt-wp-i18n 1.0.3\n"
    2626
    27 #: classes/class-a-z-listing.php:338
     27#: functions/health-check.php:19
     28msgid "A to Z Listing plugin"
     29msgstr ""
     30
     31#: functions/health-check.php:35
     32msgid "A-Z Listing: PHP mbstring module is enabled"
     33msgstr ""
     34
     35#: functions/health-check.php:38
     36msgid "Compatibility"
     37msgstr ""
     38
     39#: functions/health-check.php:43
     40msgid ""
     41"The mbstring PHP module improves support for non-latin languages in the A-Z "
     42"Listing plugin."
     43msgstr ""
     44
     45#: functions/health-check.php:51
     46msgid "A-Z Listing: PHP mbstring module is not enabled"
     47msgstr ""
     48
     49#: functions/health-check.php:55
     50msgid ""
     51"The mbstring PHP module is not enabled on your server. This module improves "
     52"support for non-latin languages in the A-Z Listing plugin."
     53msgstr ""
     54
     55#: functions/health-check.php:57
     56msgid ""
     57"Contact your web host to request that the mbstring PHP module is enabled "
     58"for your site."
     59msgstr ""
     60
     61#: src/Query.php:355
    2862#. translators: List the aphabet of your language in the order that your
    2963#. language prefers. list as groups of identical meanings but different
     
    4377msgstr ""
    4478
    45 #: classes/class-a-z-listing.php:340
     79#: src/Query.php:357
    4680#. translators: This should be a single character to denote "all entries that
    4781#. didn't fit under one of the alphabet character groups defined". This is used
     
    5286msgstr ""
    5387
    54 #: functions/health-check.php:17
    55 msgid "A to Z Listing plugin"
    56 msgstr ""
    57 
    58 #: functions/health-check.php:32
    59 msgid "PHP mbstring module is enabled"
    60 msgstr ""
    61 
    62 #: functions/health-check.php:35
    63 msgid "mbstring"
    64 msgstr ""
    65 
    66 #: functions/health-check.php:40
    67 msgid "The mbstring PHP module improves support for non-latin languages."
    68 msgstr ""
    69 
    70 #: functions/health-check.php:48
    71 msgid "PHP mbstring module is not enabled"
    72 msgstr ""
    73 
    74 #: functions/health-check.php:52
    75 msgid ""
    76 "The mbstring PHP module is not enabled on your server. This module improves "
    77 "support for non-latin languages."
    78 msgstr ""
    79 
    80 #: functions/health-check.php:54
    81 msgid ""
    82 "Contact your web host to request that the mbstring PHP module is enabled "
    83 "for your site."
    84 msgstr ""
    85 
    8688#: templates/a-z-listing.example.php:45 templates/a-z-listing.php:65
    8789msgid "Back to top"
  • a-z-listing/trunk/readme.txt

    r2092139 r2117782  
    77Requires PHP: 5.6
    88Tested up to: 5.2
    9 Stable tag: 2.3.0
     9Stable tag: 3.0.0
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    458458== Changelog ==
    459459
     460= 3.0.0 =
     461
     462This is a major version change, which means that it might break your site when you upgrade. Please check in a test site first!
     463
     464**NEW EXTENSIONS**
     465
     466Check 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.
     467
     468* Add `get_the_item_id` and `the_item_id` template tags.
     469* Add `get_the_item_type` template tag.
     470* Add support for extensions.
     471* Complete refactor to use more modern PHP features.
     472* Minor refactoring of `get_the_item_object`, `get_item_meta`, and `get_the_item_count` template tags.
     473* Miscellaneous documentation Fixes.
     474
    460475= 2.3.0 =
    461476
  • a-z-listing/trunk/widgets/class-a-z-listing-widget.php

    r2092139 r2117782  
    357357 */
    358358function the_section_a_z_widget( $args, $instance ) {
    359     echo get_the_section_a_z_widget( $args, $instance ); // WPCS: XSS OK.
     359    echo get_the_section_a_z_widget( $args, $instance ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    360360}
    361361
Note: See TracChangeset for help on using the changeset viewer.