Changeset 3300317
- Timestamp:
- 05/25/2025 09:19:17 PM (7 months ago)
- Location:
- random-post-on-refresh
- Files:
-
- 4 deleted
- 6 edited
- 1 copied
-
assets/icon-128x128.png (modified) (1 prop) (previous)
-
assets/icon-256x256.png (modified) (1 prop) (previous)
-
tags/1.2.3 (copied) (copied from random-post-on-refresh/trunk)
-
tags/1.2.3/.distinclude (deleted)
-
tags/1.2.3/.nvmrc (deleted)
-
tags/1.2.3/RandomPostOnRefresh.php (modified) (3 diffs)
-
tags/1.2.3/readme.txt (modified) (4 diffs)
-
trunk/.distinclude (deleted)
-
trunk/.nvmrc (deleted)
-
trunk/RandomPostOnRefresh.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
random-post-on-refresh/assets/icon-128x128.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
random-post-on-refresh/assets/icon-256x256.png
-
Property
svn:mime-type
changed from
application/octet-streamtoimage/png
-
Property
svn:mime-type
changed from
-
random-post-on-refresh/tags/1.2.3/RandomPostOnRefresh.php
r3300310 r3300317 4 4 * Description: Show a random post on every page load. 5 5 * Plugin URI: http://wpscholar.com/wordpress-plugins/random-post-on-refresh/ 6 * Version: 1.2. 26 * Version: 1.2.3 7 7 * Author: Micah Wood 8 8 * Author URI: https://wpscholar.com … … 34 34 'image_required' => 'true', 35 35 'not' => '', 36 'orderby' => 'date', 37 'order' => 'DESC', 36 38 'post_type' => 'post', 37 39 'posts_per_page' => 100, … … 241 243 $post_types = array_filter( array_map( 'trim', explode( ',', $atts['post_type'] ) ) ); 242 244 245 $orderby = $atts['orderby']; 246 247 // Just in case someone uses "random" instead of "rand". 248 if ( 'random' === $orderby ) { 249 $orderby = 'rand'; 250 } 251 243 252 $query_args = array( 244 253 'post_type' => $post_types, 245 254 'posts_per_page' => absint( $atts['posts_per_page'] ), 255 'orderby' => $orderby, 256 'order' => strtoupper( $atts['order'] ) === 'ASC' ? 'ASC' : 'DESC', 246 257 ); 247 258 -
random-post-on-refresh/tags/1.2.3/readme.txt
r3300310 r3300317 6 6 Requires PHP: 7.4 7 7 Tested up to: 6.8 8 Stable tag: 1.2. 28 Stable tag: 1.2.3 9 9 License: GPLv3 10 10 License URI: http://www.gnu.org/licenses/gpl-3.0.html …