| @@ -345,9 +345,19 @@ | ||
| 345 | 345 | * |
| 346 | 346 | * @return string Friendly name. |
| 347 | 347 | */ |
| 348 | 348 | public function get_friendly_name() { |
| 349 | - $name = apply_filters( $this->get_key() . '_friendly_name', trim( str_replace( 'Lite', '', $this->get_name() ) ) ); | |
| 349 | + $name = trim( str_replace( 'Lite', '', $this->get_name() ) ); | |
| 350 | + if ( defined( 'OTTER_BLOCKS_BASEFILE' ) && OTTER_BLOCKS_BASEFILE === $this->basefile ) { | |
| 351 | + $name = 'Otter Blocks'; | |
| 352 | + } | |
| 353 | + if ( defined( 'OPTML_BASEFILE' ) && OPTML_BASEFILE === $this->basefile ) { | |
| 354 | + $name = 'Optimole'; | |
| 355 | + } | |
| 356 | + if ( defined( 'WPMM_FILE' ) && WPMM_FILE === $this->basefile ) { | |
| 357 | + $name = 'LightStart'; | |
| 358 | + } | |
| 359 | + $name = apply_filters( $this->get_key() . '_friendly_name', $name ); | |
| 350 | 360 | $name = rtrim( $name, '- ()' ); |
| 351 | 361 | |
| 352 | 362 | return $name; |
| 353 | 363 | } |
| @@ -411,8 +421,9 @@ | ||
| 411 | 421 | return add_query_arg( |
| 412 | 422 | [ |
| 413 | 423 | 'name' => rawurlencode( $this->get_name() ), |
| 414 | 424 | 'edd_action' => 'view_changelog', |
| 425 | + 'locale' => get_user_locale(), | |
| 415 | 426 | ], |
| 416 | 427 | $this->get_store_url() |
| 417 | 428 | ); |
| 418 | 429 | } |