Changeset 13749
- Timestamp:
- 05/23/2024 02:53:11 AM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-search.php
r13687 r13749 22 22 protected $desc_boost = 1; 23 23 protected $desc_en_boost = 0.00001; 24 protected $title_boost = 1; 25 protected $title_en_boost = 0.5; 24 26 25 27 /** … … 173 175 $boost = '^' . $this->desc_boost; 174 176 $en_boost = '^' . $this->desc_en_boost; 177 } elseif ( 'title' === $field ) { 178 $boost = '^' . $this->title_boost; 179 $en_boost = '^' . $this->title_en_boost; 175 180 } 176 181 … … 205 210 $this->desc_en_boost = $this->desc_boost * $this->en_boost; 206 211 212 // Most locales don't translate the title, so we only need to boost the title slightly lower. 213 $this->title_en_boost = $this->title_boost * 0.5; 214 207 215 // We need to be locale aware for this 208 216 $this->locale = get_locale(); … … 353 361 'filter' => [ 354 362 'range' => [ 355 'active_installs' => [ 356 'lte' => 1000000, 357 ], 363 'active_installs' => [ 364 'lte' => 1000000, 358 365 ], 359 366 ], 367 ], 360 368 'exp' => [ 361 369 'active_installs' => [
Note: See TracChangeset
for help on using the changeset viewer.