'body' => array
( 'wp_version' =>
$wp_version,
'locale' =>
get_locale(),
'version' =>
$args['version'
], // Version of plugin, theme or core.
),
);
if ( 'core' !==
$type ) { $options['body'
]['slug'
] =
$args['slug'
]; // Plugin or theme slug.
} $request =
wp_remote_post( $url,
$options );
if ( $ssl &&
is_wp_error( $request ) ) { trigger_error( sprintf( /* translators: %s: Support forums URL. */
__( 'An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the <a href="%s">support forums</a>.'
),
__( 'https://wordpress.org/support/forums/'
) ) . ' ' .
__( '(WordPress could not establish a secure connection to WordPress.org. Please contact your server administrator.)'
),
headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE
);