diff --git wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
index d6ee6ec5e..cd8ecc619 100644
|
|
|
class Plugin_Directory {
|
| 495 | 495 | ) ); |
| 496 | 496 | |
| 497 | 497 | // Add the browse/* views. |
| 498 | | add_rewrite_tag( '%browse%', '(featured|popular|beta|blocks|new|favorites)' ); |
| | 498 | add_rewrite_tag( '%browse%', '(featured|popular|beta|blocks|new|favorites|adopt-me)' ); |
| 499 | 499 | add_permastruct( 'browse', 'browse/%browse%' ); |
| 500 | 500 | |
| 501 | 501 | // Create an archive for a users favorites too. |
| … |
… |
class Plugin_Directory {
|
| 731 | 731 | |
| 732 | 732 | // For any invalid values passed to browse, set it to featured instead |
| 733 | 733 | if ( !empty ( $wp_query->query ['browse'] ) && |
| 734 | | !in_array( $wp_query->query['browse'], array( 'featured','popular','beta','blocks','new','favorites' ) ) ) { |
| | 734 | !in_array( $wp_query->query['browse'], array( 'featured','popular','beta','blocks','new','favorites','adopt-me' ) ) ) { |
| 735 | 735 | $wp_query->query['browse'] = 'featured'; |
| 736 | 736 | $wp_query->query_vars['browse'] = 'featured'; |
| 737 | 737 | } |
| … |
… |
class Plugin_Directory {
|
| 775 | 775 | } |
| 776 | 776 | |
| 777 | 777 | // For /browse/ requests, we conditionally need to avoid querying the taxonomy for most views (as it's handled in code above) |
| 778 | | if ( isset( $wp_query->query['browse'] ) && ! in_array( $wp_query->query['browse'], array( 'beta', 'blocks', 'featured' ) ) ) { |
| | 778 | if ( isset( $wp_query->query['browse'] ) && ! in_array( $wp_query->query['browse'], array( 'beta', 'blocks', 'featured', 'adopt-me' ) ) ) { |
| 779 | 779 | unset( $wp_query->query_vars['browse'] ); |
| 780 | 780 | |
| 781 | 781 | add_filter( 'the_posts', function( $posts, $wp_query ) { |
diff --git wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-import.php wordpress.org/public_html/wp-content/plugins/plugin-directory/cli/class-import.php
index d407c1295..59c9efa4a 100644
|
|
|
class Import {
|
| 123 | 123 | |
| 124 | 124 | if ( in_array( 'adopt-me', $readme->tags ) ) { |
| 125 | 125 | wp_set_object_terms( $plugin->ID, 'adopt-me', 'plugin_section' ); |
| | 126 | } else { |
| | 127 | wp_remove_object_terms( $plugin->ID, 'adopt-me', 'plugin_section' ); |
| 126 | 128 | } |
| 127 | 129 | |
| 128 | 130 | // Update the tested-up-to value |
diff --git wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-sidebar-advanced.php wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-sidebar-advanced.php
index d56cf51bf..1b30dc89d 100644
|
|
|
$widget_args = array(
|
| 14 | 14 | 'after_title' => '</h4>', |
| 15 | 15 | ); |
| 16 | 16 | |
| 17 | | //the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Adopt_Me', array(), $widget_args ); |
| | 17 | the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Adopt_Me', array(), $widget_args ); |
| 18 | 18 | the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Meta', array(), $widget_args ); |
| 19 | 19 | the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Ratings', array(), $widget_args ); |
| 20 | 20 | the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Support', array(), $widget_args ); |
diff --git wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-sidebar.php wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-sidebar.php
index 5778b75c3..ee54abe58 100644
|
|
|
$widget_args = array(
|
| 14 | 14 | 'after_title' => '</h3>', |
| 15 | 15 | ); |
| 16 | 16 | |
| 17 | | //the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Adopt_Me', array(), $widget_args ); |
| | 17 | the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Adopt_Me', array(), $widget_args ); |
| 18 | 18 | the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Meta', array(), $widget_args ); |
| 19 | 19 | the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Ratings', array(), $widget_args ); |
| 20 | 20 | the_widget( 'WordPressdotorg\Plugin_Directory\Widgets\Contributors', array(), array( |