| @@ -1,8 +1,8 @@ | ||
| 1 | 1 | <?php //phpcs:ignore WordPress.Files.FileName.InvalidClassFileName |
| 2 | 2 | /** |
| 3 | - * Module Name: Related posts | |
| 4 | - * Module Description: Keep visitors engaged on your blog by highlighting relevant and new content at the bottom of each published post. | |
| 3 | + * Module Name: Related Posts | |
| 4 | + * Module Description: Automatically display related articles to keep visitors reading longer. | |
| 5 | 5 | * First Introduced: 2.9 |
| 6 | 6 | * Sort Order: 29 |
| 7 | 7 | * Recommendation Order: 9 |
| 8 | 8 | * Requires Connection: Yes |
| @@ -8,11 +8,23 @@ | ||
| 8 | 8 | * Requires Connection: Yes |
| 9 | 9 | * Auto Activate: No |
| 10 | 10 | * Module Tags: Recommended |
| 11 | 11 | * Feature: Engagement |
| 12 | - * // phpcs:ignore WordPress.WP.CapitalPDangit.Misspelled | |
| 13 | - * Additional Search Queries: related, jetpack related posts, related posts for wordpress, related posts, popular posts, popular, related content, related post, contextual, context, contextual related posts, related articles, similar posts, easy related posts, related page, simple related posts, free related posts, related thumbnails, similar, engagement, yet another related posts plugin | |
| 12 | + * // phpcs:ignore WordPress.WP.CapitalPDangit.MisspelledInComment | |
| 13 | + * Additional Search Queries: related, jetpack related posts, related posts for wordpress, related posts, popular posts, popular, related content, related post, contextual, context, contextual related posts, related articles, similar posts, easy related posts, related page, simple related posts, free related posts, related thumbnails, similar, engagement, yet another related posts plugin, creator | |
| 14 | + * | |
| 15 | + * @package automattic/jetpack | |
| 14 | 16 | */ |
| 17 | + | |
| 18 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 19 | + exit( 0 ); | |
| 20 | +} | |
| 21 | + | |
| 22 | +/** | |
| 23 | + * Class Jetpack_RelatedPosts_Module | |
| 24 | + * | |
| 25 | + * @phan-constructor-used-for-side-effects | |
| 26 | + */ | |
| 15 | 27 | class Jetpack_RelatedPosts_Module { |
| 16 | 28 | /** |
| 17 | 29 | * Class variables |
| 18 | 30 | * |
| @@ -63,4 +75,7 @@ | ||
| 63 | 75 | } |
| 64 | 76 | |
| 65 | 77 | // Do it. |
| 66 | 78 | Jetpack_RelatedPosts_Module::instance(); |
| 79 | + | |
| 80 | +require_once __DIR__ . '/related-posts/abilities/class-related-posts-abilities.php'; | |
| 81 | +\Automattic\Jetpack\Plugin\Abilities\Related_Posts_Abilities::init(); | |