Changeset 3290857
- Timestamp:
- 05/10/2025 10:11:24 AM (9 months ago)
- Location:
- related-posts-for-wp
- Files:
-
- 3 deleted
- 6 edited
- 21 copied
-
tags/2.3.0 (copied) (copied from related-posts-for-wp/trunk)
-
tags/2.3.0/classes/class-link-related-table.php (copied) (copied from related-posts-for-wp/trunk/classes/class-link-related-table.php)
-
tags/2.3.0/classes/class-playground.php (copied) (copied from related-posts-for-wp/trunk/classes/class-playground.php)
-
tags/2.3.0/classes/class-post-link-manager.php (copied) (copied from related-posts-for-wp/trunk/classes/class-post-link-manager.php) (3 diffs)
-
tags/2.3.0/classes/class-related-word-manager.php (copied) (copied from related-posts-for-wp/trunk/classes/class-related-word-manager.php)
-
tags/2.3.0/classes/class-rp4wp.php (copied) (copied from related-posts-for-wp/trunk/classes/class-rp4wp.php) (1 diff)
-
tags/2.3.0/classes/hooks/class-hook-link-related-screen.php (copied) (copied from related-posts-for-wp/trunk/classes/hooks/class-hook-link-related-screen.php)
-
tags/2.3.0/classes/hooks/class-hook-page-install.php (copied) (copied from related-posts-for-wp/trunk/classes/hooks/class-hook-page-install.php)
-
tags/2.3.0/classes/hooks/class-hook-shortcode.php (modified) (2 diffs)
-
tags/2.3.0/classes/ignored-words/en_US.php (copied) (copied from related-posts-for-wp/trunk/classes/ignored-words/en_US.php)
-
tags/2.3.0/composer.lock (copied) (copied from related-posts-for-wp/trunk/composer.lock)
-
tags/2.3.0/languages/related-posts-for-wp.pot (copied) (copied from related-posts-for-wp/trunk/languages/related-posts-for-wp.pot)
-
tags/2.3.0/readme.txt (copied) (copied from related-posts-for-wp/trunk/readme.txt) (3 diffs)
-
tags/2.3.0/related-posts-for-wp.php (copied) (copied from related-posts-for-wp/trunk/related-posts-for-wp.php) (1 diff)
-
tags/2.3.0/vendor/autoload.php (copied) (copied from related-posts-for-wp/trunk/vendor/autoload.php)
-
tags/2.3.0/vendor/autoload_52.php (deleted)
-
tags/2.3.0/vendor/composer/ClassLoader.php (copied) (copied from related-posts-for-wp/trunk/vendor/composer/ClassLoader.php)
-
tags/2.3.0/vendor/composer/ClassLoader52.php (deleted)
-
tags/2.3.0/vendor/composer/InstalledVersions.php (copied) (copied from related-posts-for-wp/trunk/vendor/composer/InstalledVersions.php)
-
tags/2.3.0/vendor/composer/autoload_classmap.php (copied) (copied from related-posts-for-wp/trunk/vendor/composer/autoload_classmap.php)
-
tags/2.3.0/vendor/composer/autoload_namespaces.php (copied) (copied from related-posts-for-wp/trunk/vendor/composer/autoload_namespaces.php)
-
tags/2.3.0/vendor/composer/autoload_real.php (copied) (copied from related-posts-for-wp/trunk/vendor/composer/autoload_real.php)
-
tags/2.3.0/vendor/composer/autoload_real_52.php (deleted)
-
tags/2.3.0/vendor/composer/autoload_static.php (copied) (copied from related-posts-for-wp/trunk/vendor/composer/autoload_static.php)
-
tags/2.3.0/vendor/composer/installed.php (copied) (copied from related-posts-for-wp/trunk/vendor/composer/installed.php)
-
trunk/classes/class-post-link-manager.php (modified) (3 diffs)
-
trunk/classes/class-rp4wp.php (modified) (1 diff)
-
trunk/classes/hooks/class-hook-shortcode.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/related-posts-for-wp.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
related-posts-for-wp/tags/2.3.0/classes/class-post-link-manager.php
r3158871 r3290857 184 184 $link_args['order'] = $extra_args['order']; 185 185 unset( $extra_args['order'] ); 186 } 187 188 // Check $extra_args for `offset`, this should be added to link query instead of the child query 189 if ( isset( $extra_args['offset'] ) ) { 190 191 // Set posts_per_page to link arguments 192 $link_args['offset'] = $extra_args['offset']; 193 unset( $extra_args['offset'] ); 186 194 } 187 195 … … 381 389 * @param int $id 382 390 * @param int $limit 391 * @param int $offset 383 392 * 384 393 * @return string … … 387 396 * 388 397 */ 389 public function generate_children_list( $id, $limit = - 1 ) {398 public function generate_children_list( $id, $limit = - 1, $offset = 0 ) { 390 399 391 400 ob_start(); 392 401 393 402 // Get the children 394 $related_posts = $this->get_children( $id, array( 'posts_per_page' => $limit ));403 $related_posts = $this->get_children( $id, [ 'posts_per_page' => $limit, 'offset' => $offset ] ); 395 404 396 405 // Count -
related-posts-for-wp/tags/2.3.0/classes/class-rp4wp.php
r3198786 r3290857 9 9 private static $instance = null; 10 10 11 const VERSION = '2. 2.5';11 const VERSION = '2.3.0'; 12 12 13 13 /** -
related-posts-for-wp/tags/2.3.0/classes/hooks/class-hook-shortcode.php
r1189440 r3290857 22 22 23 23 $atts = shortcode_atts( array( 24 'id' => get_the_ID(), 25 'limit' => -1 24 'id' => get_the_ID(), 25 'limit' => - 1, 26 'offset' => 0, 26 27 ), $atts ); 27 28 … … 30 31 31 32 // Generate the children list 32 return $pl_manager->generate_children_list( $atts['id'], $atts['limit'] );33 return $pl_manager->generate_children_list( $atts['id'], $atts['limit'], $atts['offset'] ); 33 34 } 34 35 } -
related-posts-for-wp/tags/2.3.0/readme.txt
r3198786 r3290857 4 4 Tags: related, inline related posts, similar posts, contextual relations, seo bounce rate, internal links 5 5 Requires at least: 5.0 6 Tested up to: 6. 7.17 Stable tag: 2. 2.56 Tested up to: 6.8.1 7 Stable tag: 2.3.0 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 20 20 Our installation wizard will do all the hard work for you, simply activate the plugin, set the amount of posts that should relate and press the button. Related Posts for WordPress will do the rest. Relating posts in WordPress has never been this easy! 21 21 22 Fully tested and working on PHP 5.3 and up (including PHP 8, 8.1 & 8.2)!22 Fully tested and working on PHP 5.3 and up (including PHP 8, 8.1, 8.2, 8.3 & 8.4)! 23 23 24 24 > #### Related Posts for WordPress Premium … … 121 121 122 122 == Changelog == 123 124 = 2.3.0: May 10th, 2025 = 125 * Feature: Added support for an offset in the [rp4wp] shortcode. 123 126 124 127 = 2.2.5: November 28, 2024 -
related-posts-for-wp/tags/2.3.0/related-posts-for-wp.php
r3198786 r3290857 4 4 Plugin URI: http://www.relatedpostsforwp.com/ 5 5 Description: Related Posts for WordPress, the best way to display related posts in WordPress. 6 Version: 2. 2.56 Version: 2.3.0 7 7 Author: Never5 8 8 Author URI: http://www.never5.com/ -
related-posts-for-wp/trunk/classes/class-post-link-manager.php
r3158871 r3290857 184 184 $link_args['order'] = $extra_args['order']; 185 185 unset( $extra_args['order'] ); 186 } 187 188 // Check $extra_args for `offset`, this should be added to link query instead of the child query 189 if ( isset( $extra_args['offset'] ) ) { 190 191 // Set posts_per_page to link arguments 192 $link_args['offset'] = $extra_args['offset']; 193 unset( $extra_args['offset'] ); 186 194 } 187 195 … … 381 389 * @param int $id 382 390 * @param int $limit 391 * @param int $offset 383 392 * 384 393 * @return string … … 387 396 * 388 397 */ 389 public function generate_children_list( $id, $limit = - 1 ) {398 public function generate_children_list( $id, $limit = - 1, $offset = 0 ) { 390 399 391 400 ob_start(); 392 401 393 402 // Get the children 394 $related_posts = $this->get_children( $id, array( 'posts_per_page' => $limit ));403 $related_posts = $this->get_children( $id, [ 'posts_per_page' => $limit, 'offset' => $offset ] ); 395 404 396 405 // Count -
related-posts-for-wp/trunk/classes/class-rp4wp.php
r3198786 r3290857 9 9 private static $instance = null; 10 10 11 const VERSION = '2. 2.5';11 const VERSION = '2.3.0'; 12 12 13 13 /** -
related-posts-for-wp/trunk/classes/hooks/class-hook-shortcode.php
r1189440 r3290857 22 22 23 23 $atts = shortcode_atts( array( 24 'id' => get_the_ID(), 25 'limit' => -1 24 'id' => get_the_ID(), 25 'limit' => - 1, 26 'offset' => 0, 26 27 ), $atts ); 27 28 … … 30 31 31 32 // Generate the children list 32 return $pl_manager->generate_children_list( $atts['id'], $atts['limit'] );33 return $pl_manager->generate_children_list( $atts['id'], $atts['limit'], $atts['offset'] ); 33 34 } 34 35 } -
related-posts-for-wp/trunk/readme.txt
r3198786 r3290857 4 4 Tags: related, inline related posts, similar posts, contextual relations, seo bounce rate, internal links 5 5 Requires at least: 5.0 6 Tested up to: 6. 7.17 Stable tag: 2. 2.56 Tested up to: 6.8.1 7 Stable tag: 2.3.0 8 8 License: GPLv3 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 20 20 Our installation wizard will do all the hard work for you, simply activate the plugin, set the amount of posts that should relate and press the button. Related Posts for WordPress will do the rest. Relating posts in WordPress has never been this easy! 21 21 22 Fully tested and working on PHP 5.3 and up (including PHP 8, 8.1 & 8.2)!22 Fully tested and working on PHP 5.3 and up (including PHP 8, 8.1, 8.2, 8.3 & 8.4)! 23 23 24 24 > #### Related Posts for WordPress Premium … … 121 121 122 122 == Changelog == 123 124 = 2.3.0: May 10th, 2025 = 125 * Feature: Added support for an offset in the [rp4wp] shortcode. 123 126 124 127 = 2.2.5: November 28, 2024 -
related-posts-for-wp/trunk/related-posts-for-wp.php
r3198786 r3290857 4 4 Plugin URI: http://www.relatedpostsforwp.com/ 5 5 Description: Related Posts for WordPress, the best way to display related posts in WordPress. 6 Version: 2. 2.56 Version: 2.3.0 7 7 Author: Never5 8 8 Author URI: http://www.never5.com/
Note: See TracChangeset
for help on using the changeset viewer.