Changeset 3200361
- Timestamp:
- 12/01/2024 07:35:15 PM (15 months ago)
- Location:
- random-post-on-refresh
- Files:
-
- 30 added
- 6 edited
- 1 copied
-
tags/1.2.1 (copied) (copied from random-post-on-refresh/trunk)
-
tags/1.2.1/.nvmrc (added)
-
tags/1.2.1/RandomPostOnRefresh.php (modified) (11 diffs)
-
tags/1.2.1/languages/random-post-on-refresh.pot (modified) (1 diff)
-
tags/1.2.1/readme.txt (modified) (2 diffs)
-
tags/1.2.1/vendor (added)
-
tags/1.2.1/vendor/autoload.php (added)
-
tags/1.2.1/vendor/composer (added)
-
tags/1.2.1/vendor/composer/ClassLoader.php (added)
-
tags/1.2.1/vendor/composer/InstalledVersions.php (added)
-
tags/1.2.1/vendor/composer/LICENSE (added)
-
tags/1.2.1/vendor/composer/autoload_classmap.php (added)
-
tags/1.2.1/vendor/composer/autoload_namespaces.php (added)
-
tags/1.2.1/vendor/composer/autoload_psr4.php (added)
-
tags/1.2.1/vendor/composer/autoload_real.php (added)
-
tags/1.2.1/vendor/composer/autoload_static.php (added)
-
tags/1.2.1/vendor/composer/installed.json (added)
-
tags/1.2.1/vendor/composer/installed.php (added)
-
tags/1.2.1/vendor/composer/platform_check.php (added)
-
trunk/.nvmrc (added)
-
trunk/RandomPostOnRefresh.php (modified) (11 diffs)
-
trunk/languages/random-post-on-refresh.pot (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/vendor (added)
-
trunk/vendor/autoload.php (added)
-
trunk/vendor/composer (added)
-
trunk/vendor/composer/ClassLoader.php (added)
-
trunk/vendor/composer/InstalledVersions.php (added)
-
trunk/vendor/composer/LICENSE (added)
-
trunk/vendor/composer/autoload_classmap.php (added)
-
trunk/vendor/composer/autoload_namespaces.php (added)
-
trunk/vendor/composer/autoload_psr4.php (added)
-
trunk/vendor/composer/autoload_real.php (added)
-
trunk/vendor/composer/autoload_static.php (added)
-
trunk/vendor/composer/installed.json (added)
-
trunk/vendor/composer/installed.php (added)
-
trunk/vendor/composer/platform_check.php (added)
Legend:
- Unmodified
- Added
- Removed
-
random-post-on-refresh/tags/1.2.1/RandomPostOnRefresh.php
r2161581 r3200361 1 1 <?php 2 3 /* 2 /** 4 3 * Plugin Name: Random Post on Refresh 5 4 * Description: Show a random post on every page load. 6 5 * Plugin URI: http://wpscholar.com/wordpress-plugins/random-post-on-refresh/ 6 * Version: 1.2.1 7 7 * Author: Micah Wood 8 8 * Author URI: https://wpscholar.com 9 * Version: 1.2 9 * Requires at least: 4.5 10 * Requires PHP: 5.4 10 11 * Text Domain: random-post-on-refresh 12 * Domain Path: /languages 11 13 * License: GPL3 12 14 * 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 14 19 */ 15 20 … … 81 86 ); 82 87 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 ); 88 93 $show_excerpt = in_array( 'excerpt', $show, true ); 89 94 $show_content = in_array( 'content', $show, true ); … … 137 142 __( 'Sorry, post type "%1$s" is invalid. Valid options are: %2$s. Please check your shortcode implementation.', 'random-post-on-refresh' ), 138 143 $post_type, 139 implode( ', ', get_post_types( [ 'public' => true ]) )144 implode( ', ', get_post_types( array( 'public' => true ) ) ) 140 145 ), 141 146 '[' . self::SHORTCODE . ' post_type="' . $atts['post_type'] . '"]' … … 144 149 } 145 150 146 $query_args = [151 $query_args = array( 147 152 'post_type' => $post_types, 148 153 'posts_per_page' => 100, 149 ];154 ); 150 155 151 156 if ( ! empty( $atts['author'] ) ) { … … 172 177 $query_args['tag__in'] = $terms; 173 178 } else { 174 $query_args['tax_query'] = [179 $query_args['tax_query'] = array( 175 180 'taxonomy' => $atts['taxonomy'], 176 181 'terms' => self::parse_id_list( $atts['terms'] ), 177 ];182 ); 178 183 } 179 184 } … … 181 186 // Only fetch posts with images? 182 187 if ( $show_image && $image_required ) { 183 $query_args['meta_query'] = [ [ 'key' => '_thumbnail_id' ] ];188 $query_args['meta_query'] = array( array( 'key' => '_thumbnail_id' ) ); 184 189 } 185 190 186 191 // Never load the current post. 187 192 $query_args['post__not_in'][] = get_the_ID(); 193 194 $query_args = apply_filters( 'random_post_on_refresh_query_args', $query_args, $atts ); 188 195 189 196 $query = new WP_Query( $query_args ); … … 211 218 } 212 219 213 $display = [];220 $display = array(); 214 221 foreach ( $groups as $items ) { 215 222 if ( count( $groups ) > 1 ) { … … 245 252 ' ', 246 253 array_filter( 247 [254 array( 248 255 count( $groups ) > 1 ? '--has-groups' : '', 249 256 $atts['class'], 250 ]257 ) 251 258 ) 252 259 ) … … 260 267 * Parse an ID list into an array. 261 268 * 262 * @param string $ list A comma separated list of IDs269 * @param string $id_list A comma separated list of IDs 263 270 * 264 271 * @return int[] 265 272 */ 266 public static function parse_id_list( $ list ) {273 public static function parse_id_list( $id_list ) { 267 274 $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 ) ) ) ); 270 277 } 271 278 … … 276 283 * Convert a list (string) to an array 277 284 * 278 * @param string $ list A delimiter separated list of items285 * @param string $separated_list A delimiter separated list of items 279 286 * @param string $delimiter The delimiter used to separate items. 280 287 * 281 288 * @return array 282 289 */ 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 ) ) ); 285 292 } 286 293 … … 324 331 325 332 return ''; 326 327 } 328 333 } 329 334 } 330 335 -
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. 2 3 msgid "" 3 4 msgstr "" 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" 8 7 "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" 12 9 "MIME-Version: 1.0\n" 13 10 "Content-Type: text/plain; charset=UTF-8\n" 14 11 "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" 17 16 18 #: RandomPostOnRefresh.php:318 17 #. Plugin Name of the plugin 18 #: RandomPostOnRefresh.php 19 msgid "Random Post on Refresh" 20 msgstr "" 21 22 #. Plugin URI of the plugin 23 #: RandomPostOnRefresh.php 24 msgid "http://wpscholar.com/wordpress-plugins/random-post-on-refresh/" 25 msgstr "" 26 27 #. Description of the plugin 28 #: RandomPostOnRefresh.php 29 msgid "Show a random post on every page load." 30 msgstr "" 31 32 #. Author of the plugin 33 #: RandomPostOnRefresh.php 34 msgid "Micah Wood" 35 msgstr "" 36 37 #. Author URI of the plugin 38 #: RandomPostOnRefresh.php 39 msgid "https://wpscholar.com" 40 msgstr "" 41 42 #: RandomPostOnRefresh.php:101 43 msgid "Sorry, your theme does not support featured images. Update the \"show\" attribute to exclude the \"image\" option." 44 msgstr "" 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 48 msgid "Sorry, taxonomy \"%1$s\" is invalid. Valid options are: %2$s. Please check your shortcode implementation." 49 msgstr "" 50 51 #: RandomPostOnRefresh.php:122 52 msgid "Sorry, you cannot use the terms attribute without the taxonomy attribute. Please check your shortcode implementation." 53 msgstr "" 54 55 #: RandomPostOnRefresh.php:129 56 msgid "Sorry, you cannot use the taxonomy attribute without the terms attribute. Please check your shortcode implementation." 57 msgstr "" 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 61 msgid "Sorry, post type \"%1$s\" is invalid. Valid options are: %2$s. Please check your shortcode implementation." 62 msgstr "" 63 64 #: RandomPostOnRefresh.php:200 65 msgid "Sorry, no matching posts were found. Your query may be too restrictive. Please check your shortcode implementation." 66 msgstr "" 67 68 #: RandomPostOnRefresh.php:201 69 msgid "Currently, only posts with featured images will be shown. Perhaps try setting the \"image_required\" property to \"false\"?" 70 msgstr "" 71 72 #: RandomPostOnRefresh.php:216 73 msgid "Sorry, the selected post does not have a featured image." 74 msgstr "" 75 76 #: RandomPostOnRefresh.php:325 19 77 msgid "Consult the documentation" 20 78 msgstr "" 21 79 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 81 msgid "Note: This helpful notification is only visible to logged in users who can edit this shortcode." 26 82 msgstr "" 27 28 #. URI of the plugin29 msgid "http://wpscholar.com/wordpress-plugins/random-post-on-refresh/"30 msgstr ""31 32 #. Author URI of the plugin33 msgid "https://wpscholar.com"34 msgstr ""35 36 #. Author of the plugin37 msgid "Micah Wood"38 msgstr ""39 40 #: RandomPostOnRefresh.php:32041 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 plugin47 msgid "Random Post on Refresh"48 msgstr ""49 50 #. Description of the plugin51 msgid "Show a random post on every page load."52 msgstr ""53 54 #: RandomPostOnRefresh.php:193 svn/trunk/RandomPostOnRefresh.php:18955 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:13462 #, php-format63 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:10370 #, php-format71 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:9277 #, php-format78 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:20484 msgid "Sorry, the selected post does not have a featured image."85 msgstr ""86 87 #: RandomPostOnRefresh.php:124 svn/trunk/RandomPostOnRefresh.php:12188 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:11494 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:93100 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 5 5 Requires at least: 4.5 6 6 Requires PHP: 5.4 7 Tested up to: 5.78 Stable tag: 1.2 7 Tested up to: 6.7 8 Stable tag: 1.2.1 9 9 License: GPLv3 10 10 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 81 81 == Changelog == 82 82 83 = 1.2.1 = 84 85 * General maintenance 86 * Allow filtering of query args 87 83 88 = 1.2 = 84 89 -
random-post-on-refresh/trunk/RandomPostOnRefresh.php
r2161581 r3200361 1 1 <?php 2 3 /* 2 /** 4 3 * Plugin Name: Random Post on Refresh 5 4 * Description: Show a random post on every page load. 6 5 * Plugin URI: http://wpscholar.com/wordpress-plugins/random-post-on-refresh/ 6 * Version: 1.2.1 7 7 * Author: Micah Wood 8 8 * Author URI: https://wpscholar.com 9 * Version: 1.2 9 * Requires at least: 4.5 10 * Requires PHP: 5.4 10 11 * Text Domain: random-post-on-refresh 12 * Domain Path: /languages 11 13 * License: GPL3 12 14 * 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 14 19 */ 15 20 … … 81 86 ); 82 87 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 ); 88 93 $show_excerpt = in_array( 'excerpt', $show, true ); 89 94 $show_content = in_array( 'content', $show, true ); … … 137 142 __( 'Sorry, post type "%1$s" is invalid. Valid options are: %2$s. Please check your shortcode implementation.', 'random-post-on-refresh' ), 138 143 $post_type, 139 implode( ', ', get_post_types( [ 'public' => true ]) )144 implode( ', ', get_post_types( array( 'public' => true ) ) ) 140 145 ), 141 146 '[' . self::SHORTCODE . ' post_type="' . $atts['post_type'] . '"]' … … 144 149 } 145 150 146 $query_args = [151 $query_args = array( 147 152 'post_type' => $post_types, 148 153 'posts_per_page' => 100, 149 ];154 ); 150 155 151 156 if ( ! empty( $atts['author'] ) ) { … … 172 177 $query_args['tag__in'] = $terms; 173 178 } else { 174 $query_args['tax_query'] = [179 $query_args['tax_query'] = array( 175 180 'taxonomy' => $atts['taxonomy'], 176 181 'terms' => self::parse_id_list( $atts['terms'] ), 177 ];182 ); 178 183 } 179 184 } … … 181 186 // Only fetch posts with images? 182 187 if ( $show_image && $image_required ) { 183 $query_args['meta_query'] = [ [ 'key' => '_thumbnail_id' ] ];188 $query_args['meta_query'] = array( array( 'key' => '_thumbnail_id' ) ); 184 189 } 185 190 186 191 // Never load the current post. 187 192 $query_args['post__not_in'][] = get_the_ID(); 193 194 $query_args = apply_filters( 'random_post_on_refresh_query_args', $query_args, $atts ); 188 195 189 196 $query = new WP_Query( $query_args ); … … 211 218 } 212 219 213 $display = [];220 $display = array(); 214 221 foreach ( $groups as $items ) { 215 222 if ( count( $groups ) > 1 ) { … … 245 252 ' ', 246 253 array_filter( 247 [254 array( 248 255 count( $groups ) > 1 ? '--has-groups' : '', 249 256 $atts['class'], 250 ]257 ) 251 258 ) 252 259 ) … … 260 267 * Parse an ID list into an array. 261 268 * 262 * @param string $ list A comma separated list of IDs269 * @param string $id_list A comma separated list of IDs 263 270 * 264 271 * @return int[] 265 272 */ 266 public static function parse_id_list( $ list ) {273 public static function parse_id_list( $id_list ) { 267 274 $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 ) ) ) ); 270 277 } 271 278 … … 276 283 * Convert a list (string) to an array 277 284 * 278 * @param string $ list A delimiter separated list of items285 * @param string $separated_list A delimiter separated list of items 279 286 * @param string $delimiter The delimiter used to separate items. 280 287 * 281 288 * @return array 282 289 */ 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 ) ) ); 285 292 } 286 293 … … 324 331 325 332 return ''; 326 327 } 328 333 } 329 334 } 330 335 -
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. 2 3 msgid "" 3 4 msgstr "" 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" 8 7 "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" 12 9 "MIME-Version: 1.0\n" 13 10 "Content-Type: text/plain; charset=UTF-8\n" 14 11 "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" 17 16 18 #: RandomPostOnRefresh.php:318 17 #. Plugin Name of the plugin 18 #: RandomPostOnRefresh.php 19 msgid "Random Post on Refresh" 20 msgstr "" 21 22 #. Plugin URI of the plugin 23 #: RandomPostOnRefresh.php 24 msgid "http://wpscholar.com/wordpress-plugins/random-post-on-refresh/" 25 msgstr "" 26 27 #. Description of the plugin 28 #: RandomPostOnRefresh.php 29 msgid "Show a random post on every page load." 30 msgstr "" 31 32 #. Author of the plugin 33 #: RandomPostOnRefresh.php 34 msgid "Micah Wood" 35 msgstr "" 36 37 #. Author URI of the plugin 38 #: RandomPostOnRefresh.php 39 msgid "https://wpscholar.com" 40 msgstr "" 41 42 #: RandomPostOnRefresh.php:101 43 msgid "Sorry, your theme does not support featured images. Update the \"show\" attribute to exclude the \"image\" option." 44 msgstr "" 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 48 msgid "Sorry, taxonomy \"%1$s\" is invalid. Valid options are: %2$s. Please check your shortcode implementation." 49 msgstr "" 50 51 #: RandomPostOnRefresh.php:122 52 msgid "Sorry, you cannot use the terms attribute without the taxonomy attribute. Please check your shortcode implementation." 53 msgstr "" 54 55 #: RandomPostOnRefresh.php:129 56 msgid "Sorry, you cannot use the taxonomy attribute without the terms attribute. Please check your shortcode implementation." 57 msgstr "" 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 61 msgid "Sorry, post type \"%1$s\" is invalid. Valid options are: %2$s. Please check your shortcode implementation." 62 msgstr "" 63 64 #: RandomPostOnRefresh.php:200 65 msgid "Sorry, no matching posts were found. Your query may be too restrictive. Please check your shortcode implementation." 66 msgstr "" 67 68 #: RandomPostOnRefresh.php:201 69 msgid "Currently, only posts with featured images will be shown. Perhaps try setting the \"image_required\" property to \"false\"?" 70 msgstr "" 71 72 #: RandomPostOnRefresh.php:216 73 msgid "Sorry, the selected post does not have a featured image." 74 msgstr "" 75 76 #: RandomPostOnRefresh.php:325 19 77 msgid "Consult the documentation" 20 78 msgstr "" 21 79 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 81 msgid "Note: This helpful notification is only visible to logged in users who can edit this shortcode." 26 82 msgstr "" 27 28 #. URI of the plugin29 msgid "http://wpscholar.com/wordpress-plugins/random-post-on-refresh/"30 msgstr ""31 32 #. Author URI of the plugin33 msgid "https://wpscholar.com"34 msgstr ""35 36 #. Author of the plugin37 msgid "Micah Wood"38 msgstr ""39 40 #: RandomPostOnRefresh.php:32041 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 plugin47 msgid "Random Post on Refresh"48 msgstr ""49 50 #. Description of the plugin51 msgid "Show a random post on every page load."52 msgstr ""53 54 #: RandomPostOnRefresh.php:193 svn/trunk/RandomPostOnRefresh.php:18955 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:13462 #, php-format63 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:10370 #, php-format71 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:9277 #, php-format78 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:20484 msgid "Sorry, the selected post does not have a featured image."85 msgstr ""86 87 #: RandomPostOnRefresh.php:124 svn/trunk/RandomPostOnRefresh.php:12188 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:11494 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:93100 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 5 5 Requires at least: 4.5 6 6 Requires PHP: 5.4 7 Tested up to: 5.78 Stable tag: 1.2 7 Tested up to: 6.7 8 Stable tag: 1.2.1 9 9 License: GPLv3 10 10 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 81 81 == Changelog == 82 82 83 = 1.2.1 = 84 85 * General maintenance 86 * Allow filtering of query args 87 83 88 = 1.2 = 84 89
Note: See TracChangeset
for help on using the changeset viewer.