: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
'domain' => 'wp-smushit',
'lang' => get_user_locale(),
if ( ! empty( $translations->headers['Plural-Forms'] ) ) {
$locale['']['plural_forms'] = $translations->headers['Plural-Forms'];
foreach ( $translations->entries as $msgid => $entry ) {
$locale[ $msgid ] = $entry->translations;
protected function get_utm_link( $args = array(), $url = '' ) {
$url = $this->upgrade_url;
return Helper::get_utm_link( $args, $url );
public function get_connect_site_link() {
if ( WP_Smush::is_pro() || WP_Smush::is_expired() ) {
// Do not show connect site link for pro or expired users.
if ( ! class_exists( '\WPMUDEV_Dashboard' ) ) {
'utm_medium' => 'plugin',
'utm_campaign' => 'smush_ultra_existing',
'https://wpmudev.com/hub2/connect/'
$dashboard_path = 'admin.php?page=wpmudev';
if ( ! is_multisite() ) {
return admin_url( $dashboard_path );
if ( is_super_admin() ) {
return network_admin_url( $dashboard_path );