Making WordPress.org


Ignore:
Timestamp:
02/16/2023 12:43:07 PM (3 years ago)
Author:
amieiro
Message:

Translate: Changes to add virtual projects to patterns project

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-routes/inc/routes/class-locale.php

    r11741 r12399  
    7373            )
    7474            // Add check to see if there are any waiting translations for this locale?
    75             ) {
     75        ) {
    7676            $default_project_tab = 'wp';
    7777        }
     
    106106            )
    107107        );
     108
     109        $data['project']                = $project;
     110        $data['sub_projects']           = $paged_sub_projects['projects'];
     111        $data['pages']                  = $paged_sub_projects['pages'];
     112        $data                           = apply_filters( 'gp_subprojects', $data );
     113        $paged_sub_projects['projects'] = $data['sub_projects'];
     114        $paged_sub_projects['pages']    = $data['pages'];
    108115
    109116        if ( ! $paged_sub_projects ) {
     
    591598        }
    592599
     600        $status = apply_filters( 'gp_get_project_status', $status, $project, $locale, $set_slug );
     601        if ( 0 != $status->sub_projects_count ) {
     602            return $status;
     603        }
     604
    593605        $set = GP::$translation_set->by_project_id_slug_and_locale(
    594606            $project->id,
Note: See TracChangeset for help on using the changeset viewer.