Plugin Directory

Changeset 3200361


Ignore:
Timestamp:
12/01/2024 07:35:15 PM (15 months ago)
Author:
wpscholar
Message:

Update to version 1.2.1 from GitHub

Location:
random-post-on-refresh
Files:
30 added
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • random-post-on-refresh/tags/1.2.1/RandomPostOnRefresh.php

    r2161581 r3200361  
    11<?php
    2 
    3 /*
     2/**
    43 * Plugin Name: Random Post on Refresh
    54 * Description: Show a random post on every page load.
    65 * Plugin URI: http://wpscholar.com/wordpress-plugins/random-post-on-refresh/
     6 * Version: 1.2.1
    77 * Author: Micah Wood
    88 * Author URI: https://wpscholar.com
    9  * Version: 1.2
     9 * Requires at least: 4.5
     10 * Requires PHP: 5.4
    1011 * Text Domain: random-post-on-refresh
     12 * Domain Path: /languages
    1113 * License: GPL3
    1214 * License URI: http://www.gnu.org/licenses/gpl-3.0.html
    13  * Copyright 2018-2019 by Micah Wood - All rights reserved.
     15 *
     16 * Copyright 2018-2024 by Micah Wood - All rights reserved.
     17 *
     18 * @package RandomPostOnRefresh
    1419 */
    1520
     
    8186            );
    8287
    83             $can_show = [ 'title', 'image', 'excerpt', 'content' ];
    84             $show = array_merge( ...$groups );
    85 
    86             $show_title = in_array( 'title', $show, true );
    87             $show_image = in_array( 'image', $show, true );
     88            $can_show = array( 'title', 'image', 'excerpt', 'content' );
     89            $show     = array_merge( ...$groups );
     90
     91            $show_title   = in_array( 'title', $show, true );
     92            $show_image   = in_array( 'image', $show, true );
    8893            $show_excerpt = in_array( 'excerpt', $show, true );
    8994            $show_content = in_array( 'content', $show, true );
     
    137142                            __( 'Sorry, post type "%1$s" is invalid. Valid options are: %2$s. Please check your shortcode implementation.', 'random-post-on-refresh' ),
    138143                            $post_type,
    139                             implode( ', ', get_post_types( [ 'public' => true ] ) )
     144                            implode( ', ', get_post_types( array( 'public' => true ) ) )
    140145                        ),
    141146                        '[' . self::SHORTCODE . ' post_type="' . $atts['post_type'] . '"]'
     
    144149            }
    145150
    146             $query_args = [
     151            $query_args = array(
    147152                'post_type'      => $post_types,
    148153                'posts_per_page' => 100,
    149             ];
     154            );
    150155
    151156            if ( ! empty( $atts['author'] ) ) {
     
    172177                    $query_args['tag__in'] = $terms;
    173178                } else {
    174                     $query_args['tax_query'] = [
     179                    $query_args['tax_query'] = array(
    175180                        'taxonomy' => $atts['taxonomy'],
    176181                        'terms'    => self::parse_id_list( $atts['terms'] ),
    177                     ];
     182                    );
    178183                }
    179184            }
     
    181186            // Only fetch posts with images?
    182187            if ( $show_image && $image_required ) {
    183                 $query_args['meta_query'] = [ [ 'key' => '_thumbnail_id' ] ];
     188                $query_args['meta_query'] = array( array( 'key' => '_thumbnail_id' ) );
    184189            }
    185190
    186191            // Never load the current post.
    187192            $query_args['post__not_in'][] = get_the_ID();
     193
     194            $query_args = apply_filters( 'random_post_on_refresh_query_args', $query_args, $atts );
    188195
    189196            $query = new WP_Query( $query_args );
     
    211218            }
    212219
    213             $display = [];
     220            $display = array();
    214221            foreach ( $groups as $items ) {
    215222                if ( count( $groups ) > 1 ) {
     
    245252                        ' ',
    246253                        array_filter(
    247                             [
     254                            array(
    248255                                count( $groups ) > 1 ? '--has-groups' : '',
    249256                                $atts['class'],
    250                             ]
     257                            )
    251258                        )
    252259                    )
     
    260267         * Parse an ID list into an array.
    261268         *
    262          * @param string $list A comma separated list of IDs
     269         * @param string $id_list A comma separated list of IDs
    263270         *
    264271         * @return int[]
    265272         */
    266         public static function parse_id_list( $list ) {
     273        public static function parse_id_list( $id_list ) {
    267274            $ids = array();
    268             if ( ! empty( $list ) ) {
    269                 $ids = array_filter( array_map( 'absint', explode( ',', preg_replace( '#[^0-9,]#', '', $list ) ) ) );
     275            if ( ! empty( $id_list ) ) {
     276                $ids = array_filter( array_map( 'absint', explode( ',', preg_replace( '#[^0-9,]#', '', $id_list ) ) ) );
    270277            }
    271278
     
    276283         * Convert a list (string) to an array
    277284         *
    278          * @param string $list A delimiter separated list of items
     285         * @param string $separated_list A delimiter separated list of items
    279286         * @param string $delimiter The delimiter used to separate items.
    280287         *
    281288         * @return array
    282289         */
    283         public static function list_to_array( $list, $delimiter = ',' ) {
    284             return array_filter( array_map( 'trim', explode( $delimiter, $list ) ) );
     290        public static function list_to_array( $separated_list, $delimiter = ',' ) {
     291            return array_filter( array_map( 'trim', explode( $delimiter, $separated_list ) ) );
    285292        }
    286293
     
    324331
    325332            return '';
    326 
    327         }
    328 
     333        }
    329334    }
    330335
  • random-post-on-refresh/tags/1.2.1/languages/random-post-on-refresh.pot

    r2161581 r3200361  
    1 #, fuzzy
     1# Copyright (C) 2024 Micah Wood
     2# This file is distributed under the GPL3.
    23msgid ""
    34msgstr ""
    4 "Project-Id-Version: Random Post on Refresh\n"
    5 "Report-Msgid-Bugs-To: \n"
    6 "POT-Creation-Date: 2019-09-23 16:12+0000\n"
    7 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
     5"Project-Id-Version: Random Post on Refresh 1.2.1\n"
     6"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/random-post-on-refresh\n"
    87"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    9 "Language-Team: \n"
    10 "Language: \n"
    11 "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
     8"Language-Team: LANGUAGE <[email protected]>\n"
    129"MIME-Version: 1.0\n"
    1310"Content-Type: text/plain; charset=UTF-8\n"
    1411"Content-Transfer-Encoding: 8bit\n"
    15 "X-Generator: Loco https://localise.biz/\n"
    16 "X-Loco-Version: 2.3.0; wp-5.2.3"
     12"POT-Creation-Date: \n"
     13"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
     14"X-Generator: WP-CLI 2.11.0\n"
     15"X-Domain: random-post-on-refresh\n"
    1716
    18 #: RandomPostOnRefresh.php:318
     17#. Plugin Name of the plugin
     18#: RandomPostOnRefresh.php
     19msgid "Random Post on Refresh"
     20msgstr ""
     21
     22#. Plugin URI of the plugin
     23#: RandomPostOnRefresh.php
     24msgid "http://wpscholar.com/wordpress-plugins/random-post-on-refresh/"
     25msgstr ""
     26
     27#. Description of the plugin
     28#: RandomPostOnRefresh.php
     29msgid "Show a random post on every page load."
     30msgstr ""
     31
     32#. Author of the plugin
     33#: RandomPostOnRefresh.php
     34msgid "Micah Wood"
     35msgstr ""
     36
     37#. Author URI of the plugin
     38#: RandomPostOnRefresh.php
     39msgid "https://wpscholar.com"
     40msgstr ""
     41
     42#: RandomPostOnRefresh.php:101
     43msgid "Sorry, your theme does not support featured images. Update the \"show\" attribute to exclude the \"image\" option."
     44msgstr ""
     45
     46#. Translators: %1$s is replaced with taxonomy shortcode argument and %2$s is replaced with a comma-separated list of available taxonomies.
     47#: RandomPostOnRefresh.php:111
     48msgid "Sorry, taxonomy \"%1$s\" is invalid. Valid options are: %2$s. Please check your shortcode implementation."
     49msgstr ""
     50
     51#: RandomPostOnRefresh.php:122
     52msgid "Sorry, you cannot use the terms attribute without the taxonomy attribute. Please check your shortcode implementation."
     53msgstr ""
     54
     55#: RandomPostOnRefresh.php:129
     56msgid "Sorry, you cannot use the taxonomy attribute without the terms attribute. Please check your shortcode implementation."
     57msgstr ""
     58
     59#. Translators: %1$s is replaced with post_type shortcode argument and %2$s is replaced with a comma-separated list of available post types.
     60#: RandomPostOnRefresh.php:142
     61msgid "Sorry, post type \"%1$s\" is invalid. Valid options are: %2$s. Please check your shortcode implementation."
     62msgstr ""
     63
     64#: RandomPostOnRefresh.php:200
     65msgid "Sorry, no matching posts were found. Your query may be too restrictive. Please check your shortcode implementation."
     66msgstr ""
     67
     68#: RandomPostOnRefresh.php:201
     69msgid "Currently, only posts with featured images will be shown. Perhaps try setting the \"image_required\" property to \"false\"?"
     70msgstr ""
     71
     72#: RandomPostOnRefresh.php:216
     73msgid "Sorry, the selected post does not have a featured image."
     74msgstr ""
     75
     76#: RandomPostOnRefresh.php:325
    1977msgid "Consult the documentation"
    2078msgstr ""
    2179
    22 #: RandomPostOnRefresh.php:194
    23 msgid ""
    24 "Currently, only posts with featured images will be shown. Perhaps try "
    25 "setting the \"image_required\" property to \"false\"?"
     80#: RandomPostOnRefresh.php:327
     81msgid "Note: This helpful notification is only visible to logged in users who can edit this shortcode."
    2682msgstr ""
    27 
    28 #. URI of the plugin
    29 msgid "http://wpscholar.com/wordpress-plugins/random-post-on-refresh/"
    30 msgstr ""
    31 
    32 #. Author URI of the plugin
    33 msgid "https://wpscholar.com"
    34 msgstr ""
    35 
    36 #. Author of the plugin
    37 msgid "Micah Wood"
    38 msgstr ""
    39 
    40 #: RandomPostOnRefresh.php:320
    41 msgid ""
    42 "Note: This helpful notification is only visible to logged in users who can "
    43 "edit this shortcode."
    44 msgstr ""
    45 
    46 #. Name of the plugin
    47 msgid "Random Post on Refresh"
    48 msgstr ""
    49 
    50 #. Description of the plugin
    51 msgid "Show a random post on every page load."
    52 msgstr ""
    53 
    54 #: RandomPostOnRefresh.php:193 svn/trunk/RandomPostOnRefresh.php:189
    55 msgid ""
    56 "Sorry, no matching posts were found. Your query may be too restrictive. "
    57 "Please check your shortcode implementation."
    58 msgstr ""
    59 
    60 #. %1$s is replaced with post_type shortcode argument and %2$s is replaced with a comma-separated list of available post types.
    61 #: RandomPostOnRefresh.php:137 svn/trunk/RandomPostOnRefresh.php:134
    62 #, php-format
    63 msgid ""
    64 "Sorry, post type \"%1$s\" is invalid. Valid options are: %2$s. Please check "
    65 "your shortcode implementation."
    66 msgstr ""
    67 
    68 #. %1$s is replaced with taxonomy shortcode argument and %2$s is replaced with a comma-separated list of available taxonomies.
    69 #: RandomPostOnRefresh.php:106 svn/trunk/RandomPostOnRefresh.php:103
    70 #, php-format
    71 msgid ""
    72 "Sorry, taxonomy \"%1$s\" is invalid. Valid options are: %2$s. Please check "
    73 "your shortcode implementation."
    74 msgstr ""
    75 
    76 #: svn/tags/1.0/RandomPostOnRefresh.php:92
    77 #, php-format
    78 msgid ""
    79 "Sorry, taxonomy \"%s\" is invalid. Valid options are: %s. Please check your "
    80 "shortcode implementation."
    81 msgstr ""
    82 
    83 #: RandomPostOnRefresh.php:209 svn/trunk/RandomPostOnRefresh.php:204
    84 msgid "Sorry, the selected post does not have a featured image."
    85 msgstr ""
    86 
    87 #: RandomPostOnRefresh.php:124 svn/trunk/RandomPostOnRefresh.php:121
    88 msgid ""
    89 "Sorry, you cannot use the taxonomy attribute without the terms attribute. "
    90 "Please check your shortcode implementation."
    91 msgstr ""
    92 
    93 #: RandomPostOnRefresh.php:117 svn/trunk/RandomPostOnRefresh.php:114
    94 msgid ""
    95 "Sorry, you cannot use the terms attribute without the taxonomy attribute. "
    96 "Please check your shortcode implementation."
    97 msgstr ""
    98 
    99 #: RandomPostOnRefresh.php:96 svn/trunk/RandomPostOnRefresh.php:93
    100 msgid ""
    101 "Sorry, your theme does not support featured images. Update the \"show\" "
    102 "attribute to exclude the \"image\" option."
    103 msgstr ""
  • random-post-on-refresh/tags/1.2.1/readme.txt

    r2522999 r3200361  
    55Requires at least: 4.5
    66Requires PHP: 5.4
    7 Tested up to: 5.7
    8 Stable tag: 1.2
     7Tested up to: 6.7
     8Stable tag: 1.2.1
    99License: GPLv3
    1010License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    8181== Changelog ==
    8282
     83= 1.2.1 =
     84
     85* General maintenance
     86* Allow filtering of query args
     87
    8388= 1.2 =
    8489
  • random-post-on-refresh/trunk/RandomPostOnRefresh.php

    r2161581 r3200361  
    11<?php
    2 
    3 /*
     2/**
    43 * Plugin Name: Random Post on Refresh
    54 * Description: Show a random post on every page load.
    65 * Plugin URI: http://wpscholar.com/wordpress-plugins/random-post-on-refresh/
     6 * Version: 1.2.1
    77 * Author: Micah Wood
    88 * Author URI: https://wpscholar.com
    9  * Version: 1.2
     9 * Requires at least: 4.5
     10 * Requires PHP: 5.4
    1011 * Text Domain: random-post-on-refresh
     12 * Domain Path: /languages
    1113 * License: GPL3
    1214 * License URI: http://www.gnu.org/licenses/gpl-3.0.html
    13  * Copyright 2018-2019 by Micah Wood - All rights reserved.
     15 *
     16 * Copyright 2018-2024 by Micah Wood - All rights reserved.
     17 *
     18 * @package RandomPostOnRefresh
    1419 */
    1520
     
    8186            );
    8287
    83             $can_show = [ 'title', 'image', 'excerpt', 'content' ];
    84             $show = array_merge( ...$groups );
    85 
    86             $show_title = in_array( 'title', $show, true );
    87             $show_image = in_array( 'image', $show, true );
     88            $can_show = array( 'title', 'image', 'excerpt', 'content' );
     89            $show     = array_merge( ...$groups );
     90
     91            $show_title   = in_array( 'title', $show, true );
     92            $show_image   = in_array( 'image', $show, true );
    8893            $show_excerpt = in_array( 'excerpt', $show, true );
    8994            $show_content = in_array( 'content', $show, true );
     
    137142                            __( 'Sorry, post type "%1$s" is invalid. Valid options are: %2$s. Please check your shortcode implementation.', 'random-post-on-refresh' ),
    138143                            $post_type,
    139                             implode( ', ', get_post_types( [ 'public' => true ] ) )
     144                            implode( ', ', get_post_types( array( 'public' => true ) ) )
    140145                        ),
    141146                        '[' . self::SHORTCODE . ' post_type="' . $atts['post_type'] . '"]'
     
    144149            }
    145150
    146             $query_args = [
     151            $query_args = array(
    147152                'post_type'      => $post_types,
    148153                'posts_per_page' => 100,
    149             ];
     154            );
    150155
    151156            if ( ! empty( $atts['author'] ) ) {
     
    172177                    $query_args['tag__in'] = $terms;
    173178                } else {
    174                     $query_args['tax_query'] = [
     179                    $query_args['tax_query'] = array(
    175180                        'taxonomy' => $atts['taxonomy'],
    176181                        'terms'    => self::parse_id_list( $atts['terms'] ),
    177                     ];
     182                    );
    178183                }
    179184            }
     
    181186            // Only fetch posts with images?
    182187            if ( $show_image && $image_required ) {
    183                 $query_args['meta_query'] = [ [ 'key' => '_thumbnail_id' ] ];
     188                $query_args['meta_query'] = array( array( 'key' => '_thumbnail_id' ) );
    184189            }
    185190
    186191            // Never load the current post.
    187192            $query_args['post__not_in'][] = get_the_ID();
     193
     194            $query_args = apply_filters( 'random_post_on_refresh_query_args', $query_args, $atts );
    188195
    189196            $query = new WP_Query( $query_args );
     
    211218            }
    212219
    213             $display = [];
     220            $display = array();
    214221            foreach ( $groups as $items ) {
    215222                if ( count( $groups ) > 1 ) {
     
    245252                        ' ',
    246253                        array_filter(
    247                             [
     254                            array(
    248255                                count( $groups ) > 1 ? '--has-groups' : '',
    249256                                $atts['class'],
    250                             ]
     257                            )
    251258                        )
    252259                    )
     
    260267         * Parse an ID list into an array.
    261268         *
    262          * @param string $list A comma separated list of IDs
     269         * @param string $id_list A comma separated list of IDs
    263270         *
    264271         * @return int[]
    265272         */
    266         public static function parse_id_list( $list ) {
     273        public static function parse_id_list( $id_list ) {
    267274            $ids = array();
    268             if ( ! empty( $list ) ) {
    269                 $ids = array_filter( array_map( 'absint', explode( ',', preg_replace( '#[^0-9,]#', '', $list ) ) ) );
     275            if ( ! empty( $id_list ) ) {
     276                $ids = array_filter( array_map( 'absint', explode( ',', preg_replace( '#[^0-9,]#', '', $id_list ) ) ) );
    270277            }
    271278
     
    276283         * Convert a list (string) to an array
    277284         *
    278          * @param string $list A delimiter separated list of items
     285         * @param string $separated_list A delimiter separated list of items
    279286         * @param string $delimiter The delimiter used to separate items.
    280287         *
    281288         * @return array
    282289         */
    283         public static function list_to_array( $list, $delimiter = ',' ) {
    284             return array_filter( array_map( 'trim', explode( $delimiter, $list ) ) );
     290        public static function list_to_array( $separated_list, $delimiter = ',' ) {
     291            return array_filter( array_map( 'trim', explode( $delimiter, $separated_list ) ) );
    285292        }
    286293
     
    324331
    325332            return '';
    326 
    327         }
    328 
     333        }
    329334    }
    330335
  • random-post-on-refresh/trunk/languages/random-post-on-refresh.pot

    r2161581 r3200361  
    1 #, fuzzy
     1# Copyright (C) 2024 Micah Wood
     2# This file is distributed under the GPL3.
    23msgid ""
    34msgstr ""
    4 "Project-Id-Version: Random Post on Refresh\n"
    5 "Report-Msgid-Bugs-To: \n"
    6 "POT-Creation-Date: 2019-09-23 16:12+0000\n"
    7 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
     5"Project-Id-Version: Random Post on Refresh 1.2.1\n"
     6"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/random-post-on-refresh\n"
    87"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    9 "Language-Team: \n"
    10 "Language: \n"
    11 "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
     8"Language-Team: LANGUAGE <[email protected]>\n"
    129"MIME-Version: 1.0\n"
    1310"Content-Type: text/plain; charset=UTF-8\n"
    1411"Content-Transfer-Encoding: 8bit\n"
    15 "X-Generator: Loco https://localise.biz/\n"
    16 "X-Loco-Version: 2.3.0; wp-5.2.3"
     12"POT-Creation-Date: \n"
     13"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
     14"X-Generator: WP-CLI 2.11.0\n"
     15"X-Domain: random-post-on-refresh\n"
    1716
    18 #: RandomPostOnRefresh.php:318
     17#. Plugin Name of the plugin
     18#: RandomPostOnRefresh.php
     19msgid "Random Post on Refresh"
     20msgstr ""
     21
     22#. Plugin URI of the plugin
     23#: RandomPostOnRefresh.php
     24msgid "http://wpscholar.com/wordpress-plugins/random-post-on-refresh/"
     25msgstr ""
     26
     27#. Description of the plugin
     28#: RandomPostOnRefresh.php
     29msgid "Show a random post on every page load."
     30msgstr ""
     31
     32#. Author of the plugin
     33#: RandomPostOnRefresh.php
     34msgid "Micah Wood"
     35msgstr ""
     36
     37#. Author URI of the plugin
     38#: RandomPostOnRefresh.php
     39msgid "https://wpscholar.com"
     40msgstr ""
     41
     42#: RandomPostOnRefresh.php:101
     43msgid "Sorry, your theme does not support featured images. Update the \"show\" attribute to exclude the \"image\" option."
     44msgstr ""
     45
     46#. Translators: %1$s is replaced with taxonomy shortcode argument and %2$s is replaced with a comma-separated list of available taxonomies.
     47#: RandomPostOnRefresh.php:111
     48msgid "Sorry, taxonomy \"%1$s\" is invalid. Valid options are: %2$s. Please check your shortcode implementation."
     49msgstr ""
     50
     51#: RandomPostOnRefresh.php:122
     52msgid "Sorry, you cannot use the terms attribute without the taxonomy attribute. Please check your shortcode implementation."
     53msgstr ""
     54
     55#: RandomPostOnRefresh.php:129
     56msgid "Sorry, you cannot use the taxonomy attribute without the terms attribute. Please check your shortcode implementation."
     57msgstr ""
     58
     59#. Translators: %1$s is replaced with post_type shortcode argument and %2$s is replaced with a comma-separated list of available post types.
     60#: RandomPostOnRefresh.php:142
     61msgid "Sorry, post type \"%1$s\" is invalid. Valid options are: %2$s. Please check your shortcode implementation."
     62msgstr ""
     63
     64#: RandomPostOnRefresh.php:200
     65msgid "Sorry, no matching posts were found. Your query may be too restrictive. Please check your shortcode implementation."
     66msgstr ""
     67
     68#: RandomPostOnRefresh.php:201
     69msgid "Currently, only posts with featured images will be shown. Perhaps try setting the \"image_required\" property to \"false\"?"
     70msgstr ""
     71
     72#: RandomPostOnRefresh.php:216
     73msgid "Sorry, the selected post does not have a featured image."
     74msgstr ""
     75
     76#: RandomPostOnRefresh.php:325
    1977msgid "Consult the documentation"
    2078msgstr ""
    2179
    22 #: RandomPostOnRefresh.php:194
    23 msgid ""
    24 "Currently, only posts with featured images will be shown. Perhaps try "
    25 "setting the \"image_required\" property to \"false\"?"
     80#: RandomPostOnRefresh.php:327
     81msgid "Note: This helpful notification is only visible to logged in users who can edit this shortcode."
    2682msgstr ""
    27 
    28 #. URI of the plugin
    29 msgid "http://wpscholar.com/wordpress-plugins/random-post-on-refresh/"
    30 msgstr ""
    31 
    32 #. Author URI of the plugin
    33 msgid "https://wpscholar.com"
    34 msgstr ""
    35 
    36 #. Author of the plugin
    37 msgid "Micah Wood"
    38 msgstr ""
    39 
    40 #: RandomPostOnRefresh.php:320
    41 msgid ""
    42 "Note: This helpful notification is only visible to logged in users who can "
    43 "edit this shortcode."
    44 msgstr ""
    45 
    46 #. Name of the plugin
    47 msgid "Random Post on Refresh"
    48 msgstr ""
    49 
    50 #. Description of the plugin
    51 msgid "Show a random post on every page load."
    52 msgstr ""
    53 
    54 #: RandomPostOnRefresh.php:193 svn/trunk/RandomPostOnRefresh.php:189
    55 msgid ""
    56 "Sorry, no matching posts were found. Your query may be too restrictive. "
    57 "Please check your shortcode implementation."
    58 msgstr ""
    59 
    60 #. %1$s is replaced with post_type shortcode argument and %2$s is replaced with a comma-separated list of available post types.
    61 #: RandomPostOnRefresh.php:137 svn/trunk/RandomPostOnRefresh.php:134
    62 #, php-format
    63 msgid ""
    64 "Sorry, post type \"%1$s\" is invalid. Valid options are: %2$s. Please check "
    65 "your shortcode implementation."
    66 msgstr ""
    67 
    68 #. %1$s is replaced with taxonomy shortcode argument and %2$s is replaced with a comma-separated list of available taxonomies.
    69 #: RandomPostOnRefresh.php:106 svn/trunk/RandomPostOnRefresh.php:103
    70 #, php-format
    71 msgid ""
    72 "Sorry, taxonomy \"%1$s\" is invalid. Valid options are: %2$s. Please check "
    73 "your shortcode implementation."
    74 msgstr ""
    75 
    76 #: svn/tags/1.0/RandomPostOnRefresh.php:92
    77 #, php-format
    78 msgid ""
    79 "Sorry, taxonomy \"%s\" is invalid. Valid options are: %s. Please check your "
    80 "shortcode implementation."
    81 msgstr ""
    82 
    83 #: RandomPostOnRefresh.php:209 svn/trunk/RandomPostOnRefresh.php:204
    84 msgid "Sorry, the selected post does not have a featured image."
    85 msgstr ""
    86 
    87 #: RandomPostOnRefresh.php:124 svn/trunk/RandomPostOnRefresh.php:121
    88 msgid ""
    89 "Sorry, you cannot use the taxonomy attribute without the terms attribute. "
    90 "Please check your shortcode implementation."
    91 msgstr ""
    92 
    93 #: RandomPostOnRefresh.php:117 svn/trunk/RandomPostOnRefresh.php:114
    94 msgid ""
    95 "Sorry, you cannot use the terms attribute without the taxonomy attribute. "
    96 "Please check your shortcode implementation."
    97 msgstr ""
    98 
    99 #: RandomPostOnRefresh.php:96 svn/trunk/RandomPostOnRefresh.php:93
    100 msgid ""
    101 "Sorry, your theme does not support featured images. Update the \"show\" "
    102 "attribute to exclude the \"image\" option."
    103 msgstr ""
  • random-post-on-refresh/trunk/readme.txt

    r2522999 r3200361  
    55Requires at least: 4.5
    66Requires PHP: 5.4
    7 Tested up to: 5.7
    8 Stable tag: 1.2
     7Tested up to: 6.7
     8Stable tag: 1.2.1
    99License: GPLv3
    1010License URI: http://www.gnu.org/licenses/gpl-3.0.html
     
    8181== Changelog ==
    8282
     83= 1.2.1 =
     84
     85* General maintenance
     86* Allow filtering of query args
     87
    8388= 1.2 =
    8489
Note: See TracChangeset for help on using the changeset viewer.