Changeset 38459 for trunk/src/wp-admin/includes/class-wp-press-this.php
- Timestamp:
- 08/31/2016 05:48:49 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-press-this.php
r38397 r38459 268 268 */ 269 269 public function fetch_source_html( $url ) { 270 global $wp_version;271 272 270 if ( empty( $url ) ) { 273 271 return new WP_Error( 'invalid-url', __( 'A valid URL was not provided.' ) ); … … 277 275 'timeout' => 30, 278 276 // Use an explicit user-agent for Press This 279 'user-agent' => 'Press This (WordPress/' . $wp_version. '); ' . get_bloginfo( 'url' )277 'user-agent' => 'Press This (WordPress/' . get_bloginfo( 'version' ) . '); ' . get_bloginfo( 'url' ) 280 278 ) ); 281 279 … … 1190 1188 * 1191 1189 * @global WP_Locale $wp_locale 1192 * @global string $wp_version1193 1190 * @global bool $is_IE 1194 1191 */ 1195 1192 public function html() { 1196 global $wp_locale, $wp_version; 1193 global $wp_locale; 1194 1195 $wp_version = get_bloginfo( 'version' ); 1197 1196 1198 1197 // Get data, new (POST) and old (GET).
Note: See TracChangeset
for help on using the changeset viewer.