Advertisement
jan_dembowski

Untitled

Jul 11th, 2015
440
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.03 KB | None | 0 0
  1. diff wordpress-3.9.6/readme.html wordpress-4.2.2/readme.html
  2. 12c12
  3. < Version 3.9.6
  4. ---
  5. > Version 4.2.2
  6. 52c52
  7. < <p>WordPress can <a href="http://codex.wordpress.org/Importing_Content">import from a number of systems</a>. First you need to get WordPress installed and working as described above, before using <a href="wp-admin/import.php" title="Import to WordPress">our import tools</a>.</p>
  8. ---
  9. > <p>WordPress can <a href="https://codex.wordpress.org/Importing_Content">import from a number of systems</a>. First you need to get WordPress installed and working as described above, before using <a href="wp-admin/import.php" title="Import to WordPress">our import tools</a>.</p>
  10. 60c60
  11. < <h2>System Recommendations</h2>
  12. ---
  13. > <h2>Recommendations</h2>
  14. 61a62,63
  15. >
  16. <li><a href="http://php.net/">PHP</a> version <strong>5.4</strong> or higher.</li>
  17. >
  18. <li><a href="http://www.mysql.com/">MySQL</a> version <strong>5.5</strong> or higher.</li>
  19. 63c65
  20. <
  21. <li>A link to <a href="https://wordpress.org/">https://wordpress.org</a> on your site.</li>
  22. ---
  23. >
  24. <li>A link to <a href="https://wordpress.org/">wordpress.org</a> on your site.</li>
  25. 69c71
  26. < <dt><a href="http://codex.wordpress.org/">The WordPress Codex</a></dt>
  27. ---
  28. > <dt><a href="https://codex.wordpress.org/">The WordPress Codex</a></dt>
  29. 73c75
  30. < <dt><a href="http://planet.wordpress.org/">WordPress Planet</a></dt>
  31. ---
  32. > <dt><a href="https://planet.wordpress.org/">WordPress Planet</a></dt>
  33. 77c79
  34. < <dt><a href="http://codex.wordpress.org/IRC">WordPress <abbr title="Internet Relay Chat">IRC</abbr> Channel</a></dt>
  35. ---
  36. > <dt><a href="https://codex.wordpress.org/IRC">WordPress <abbr title="Internet Relay Chat">IRC</abbr> Channel</a></dt>
  37. 84c86
  38. <
  39. <li>WordPress has a robust plugin <abbr title="application programming interface">API</abbr> that makes extending the code easy. If you are a developer interested in utilizing this, see the <a href="http://codex.wordpress.org/Plugin_API" title="WordPress plugin API">plugin documentation in the Codex</a>. You shouldn’t modify any of the core code.</li>
  40. ---
  41. >
  42. <li>WordPress has a robust plugin <abbr title="application programming interface">API</abbr> that makes extending the code easy. If you are a developer interested in utilizing this, see the <a href="https://codex.wordpress.org/Plugin_API" title="WordPress plugin API">plugin documentation in the Codex</a>. You shouldn’t modify any of the core code.</li>
  43. diff wordpress-3.9.6/wp-activate.php wordpress-4.2.2/wp-activate.php
  44. 87c87
  45. < $result = wpmu_activate_signup($key);
  46. ---
  47. > $result = wpmu_activate_signup( $key );
  48. 108,110c108,109
  49. < extract($result);
  50. < $url = get_blogaddress_by_id( (int) $blog_id);
  51. < $user = get_userdata( (int) $user_id);
  52. ---
  53. > $url = isset( $result['blog_id'] ) ? get_blogaddress_by_id( (int) $result['blog_id'] ) : '';
  54. > $user = get_userdata( (int) $result['user_id'] );
  55. 116c115
  56. < <p><span class="h3"><?php _e('Password:'); ?></span> <?php echo $password; ?></p>
  57. ---
  58. > <p><span class="h3"><?php _e('Password:'); ?></span> <?php echo $result['password']; ?></p>
  59. 119c118
  60. < <?php if ( $url != network_home_url('', 'http') ) : ?>
  61. ---
  62. > <?php if ( $url && $url != network_home_url( '', 'http' ) ) : ?>
  63. 132c131
  64. < <?php get_footer(); ?>
  65. ---
  66. > <?php get_footer();
  67. Common subdirectories: wordpress-3.9.6/wp-admin and wordpress-4.2.2/wp-admin
  68. diff wordpress-3.9.6/wp-comments-post.php wordpress-4.2.2/wp-comments-post.php
  69. 50c50
  70. < wp_die( __('Sorry, comments are closed for this item.') );
  71. ---
  72. > wp_die( __( 'Sorry, comments are closed for this item.' ), 403 );
  73. 114,115c114,116
  74. < if ( get_option('comment_registration') || 'private' == $status )
  75. < wp_die( __('Sorry, you must be logged in to post a comment.') );
  76. ---
  77. > if ( get_option( 'comment_registration' ) || 'private' == $status ) {
  78. > wp_die( __( 'Sorry, you must be logged in to post a comment.' ), 403 );
  79. > }
  80. 121,124c122,126
  81. < if ( 6 > strlen($comment_author_email) || '' == $comment_author )
  82. < wp_die( __('<strong>ERROR</strong>: please fill the required fields (name, email).') );
  83. < elseif ( !is_email($comment_author_email))
  84. < wp_die( __('<strong>ERROR</strong>: please enter a valid email address.') );
  85. ---
  86. > if ( 6 > strlen( $comment_author_email ) || '' == $comment_author ) {
  87. > wp_die( __( '<strong>ERROR</strong>: please fill the required fields (name, email).' ), 200 );
  88. > } elseif ( ! is_email( $comment_author_email ) ) {
  89. > wp_die( __( '<strong>ERROR</strong>: please enter a valid email address.' ), 200 );
  90. > }
  91. 127,128c129,131
  92. < if ( '' == $comment_content )
  93. < wp_die( __('<strong>ERROR</strong>: please type a comment.') );
  94. ---
  95. > if ( '' == $comment_content ) {
  96. > wp_die( __( '<strong>ERROR</strong>: please type a comment.' ), 200 );
  97. > }
  98. 135c138,142
  99. < $comment = get_comment($comment_id);
  100. ---
  101. > if ( ! $comment_id ) {
  102. > wp_die( __( "<strong>ERROR</strong>: The comment could not be saved. Please try again later." ) );
  103. > }
  104. >
  105. > $comment = get_comment( $comment_id );
  106. diff wordpress-3.9.6/wp-config-sample.php wordpress-4.2.2/wp-config-sample.php
  107. 6,8c6,8
  108. < * Secret Keys, WordPress Language, and ABSPATH. You can find more information
  109. < * by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
  110. < * wp-config.php} Codex page. You can get the MySQL settings from your web host.
  111. ---
  112. > * Secret Keys, and ABSPATH. You can find more information by visiting
  113. > * {@link https://codex.wordpress.org/Editing_wp-config.php Editing wp-config.php}
  114. > * Codex page. You can get the MySQL settings from your web host.
  115. 63,72d62
  116. <
  117. < /**
  118. < * WordPress Localized Language, defaults to English.
  119. < *
  120. < * Change this to localize WordPress. A corresponding MO file for the chosen
  121. < * language must be installed to wp-content/languages. For example, install
  122. < * de_DE.mo to wp-content/languages and set WPLANG to 'de_DE' to enable German
  123. < * language support.
  124. < */
  125. < define('WPLANG', '');
  126. Common subdirectories: wordpress-3.9.6/wp-content and wordpress-4.2.2/wp-content
  127. diff wordpress-3.9.6/wp-cron.php wordpress-4.2.2/wp-cron.php
  128. 29c29,38
  129. < // Uncached doing_cron transient fetch
  130. ---
  131. > /**
  132. > * Retrieves the cron lock.
  133. > *
  134. > * Returns the uncached <code>doing_cron</code> transient.
  135. > *
  136. > * @ignore
  137. > * @since 3.3.0
  138. > *
  139. > * @return string|false Value of the <code>doing_cron</code> transient, 0|false otherwise.
  140. > */
  141. 35,36c44,47
  142. < // Skip local cache and force refetch of doing_cron transient in case
  143. < // another processs updated the cache
  144. ---
  145. > /*
  146. > * Skip local cache and force re-fetch of doing_cron transient
  147. > * in case another process updated the cache.
  148. > */
  149. 94a106
  150. > * @ignore
  151. 98c110
  152. < * @param array $v['args'] The arguments to be passed to the hook.
  153. ---
  154. > * @param array $args The arguments to be passed to the hook.
  155. Common subdirectories: wordpress-3.9.6/wp-includes and wordpress-4.2.2/wp-includes
  156. diff wordpress-3.9.6/wp-load.php wordpress-4.2.2/wp-load.php
  157. 25a26,33
  158. > /*
  159. > * If wp-config.php exists in the WordPress root, or if it exists in the root and wp-settings.php
  160. > * doesn't, load wp-config.php. The secondary check for wp-settings.php has the added benefit
  161. > * of avoiding cases where the current directory is a nested installation, e.g. / is WordPress(a)
  162. > * and /blog/ is WordPress(b).
  163. > *
  164. > * If neither set of conditions is true, initiate loading the setup process.
  165. > */
  166. 41d48
  167. < define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );
  168. 43,46d49
  169. < require_once( ABSPATH . WPINC . '/version.php' );
  170. <
  171. < wp_check_php_mysql_versions();
  172. < wp_load_translations_early();
  173. 54a58,73
  174. > /*
  175. > * We're going to redirect to setup-config.php. While this shouldn't result
  176. > * in an infinite loop, that's a silly thing to assume, don't you think? If
  177. > * we're traveling in circles, our last-ditch effort is "Need more help?"
  178. > */
  179. > if ( false === strpos( $_SERVER['REQUEST_URI'], 'setup-config' ) ) {
  180. > header( 'Location: ' . $path );
  181. > exit;
  182. > }
  183. >
  184. > define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );
  185. > require_once( ABSPATH . WPINC . '/version.php' );
  186. >
  187. > wp_check_php_mysql_versions();
  188. > wp_load_translations_early();
  189. >
  190. 57c76
  191. < $die .= '<p>' . __( "Need more help? <a href='http://codex.wordpress.org/Editing_wp-config.php'>We got it</a>." ) . '</p>';
  192. ---
  193. > $die .= '<p>' . __( "Need more help? <a href='https://codex.wordpress.org/Editing_wp-config.php'>We got it</a>." ) . '</p>';
  194. diff wordpress-3.9.6/wp-login.php wordpress-4.2.2/wp-login.php
  195. 28,31c28,31
  196. < * @param string $title Optional. WordPress Log In Page title to display in <title/> element. Default 'Log In'.
  197. < * @param string $message Optional. Message to display in header. Default empty.
  198. < * @param string $wp_error Optional. The error to pass. Default empty.
  199. < * @param WP_Error $wp_error Optional. WordPress Error Object
  200. ---
  201. > * @param string $title Optional. WordPress login Page title to display in the <code><title></code> element.
  202. > * Default 'Log In'.
  203. > * @param string $message Optional. Message to display in header. Default empty.
  204. > * @param WP_Error $wp_error Optional. The error to pass. Default empty.
  205. 73,75c73,77
  206. < // Remove all stored post data on logging out.
  207. < // This could be added by add_action('login_head'...) like wp_shake_js()
  208. < // but maybe better if it's not removable by plugins
  209. ---
  210. > /*
  211. > * Remove all stored post data on logging out.
  212. > * This could be added by add_action('login_head'...) like wp_shake_js(),
  213. > * but maybe better if it's not removable by plugins
  214. > */
  215. 150c152
  216. < <h1><a>" title="<?php echo esc_attr( $login_header_title ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
  217. ---
  218. > <h1><a>" title="<?php echo esc_attr( $login_header_title ); ?>" tabindex="-1"><?php bloginfo( 'name' ); ?></a></h1>
  219. 176,177c178,179
  220. < $severity
  221. = $wp_error->get_error_data($code);
  222. < foreach ( $wp_error->get_error_messages($code) as $error ) {
  223. ---
  224. > $severity = $wp_error->get_error_data( $code );
  225. > foreach ( $wp_error->get_error_messages( $code ) as $error_message ) {
  226. 179c181
  227. < $messages .= ' ' . $error . "\n";
  228. ---
  229. > $messages .= ' ' . $error_message . "\n";
  230. 181c183
  231. < $errors .= ' ' . $error . "\n";
  232. ---
  233. > $errors .= ' ' . $error_message . "\n";
  234. 265c267,268
  235. < * @uses $wpdb WordPress Database object
  236. ---
  237. > * @global wpdb $wpdb WordPress database abstraction object.
  238. > * @global PasswordHash $wp_hasher Portable PHP password hashing framework.
  239. 276c279
  240. < } else if ( strpos( $_POST['user_login'], '@' ) ) {
  241. ---
  242. > } elseif ( strpos( $_POST['user_login'], '@' ) ) {
  243. 300c303
  244. < // redefining user_login ensures we return the right case in the email
  245. ---
  246. > // Redefining user_login ensures we return the right case in the email.
  247. 312a316
  248. >
  249. 332,334c336,338
  250. < if ( ! $allow )
  251. < return new WP_Error('no_password_reset', __('Password reset is not allowed for this user'));
  252. < else if ( is_wp_error($allow) )
  253. ---
  254. > if ( ! $allow ) {
  255. > return new WP_Error( 'no_password_reset', __('Password reset is not allowed for this user') );
  256. > } elseif ( is_wp_error( $allow ) ) {
  257. 335a340
  258. > }
  259. 352c357
  260. < require_once ABSPATH . 'wp-includes/class-phpass.php';
  261. ---
  262. > require_once ABSPATH . WPINC . '/class-phpass.php';
  263. 368,369c373,376
  264. < // The blogname option is escaped with esc_html on the way into the database in sanitize_option
  265. < // we want to reverse this for the plain text arena of emails.
  266. ---
  267. > /*
  268. > * The blogname option is escaped with esc_html on the way into the database
  269. > * in sanitize_option we want to reverse this for the plain text arena of emails.
  270. > */
  271. 381a389
  272. >
  273. 385a394
  274. > * @since 4.1.0 Added <code>$user_login</code> and <code>$user_data</code> parameters.
  275. 387,388c396,399
  276. < * @param string $message Default mail message.
  277. < * @param string $key The activation key.
  278. ---
  279. > * @param string $message Default mail message.
  280. > * @param string $key The activation key.
  281. > * @param string $user_login The username for the user.
  282. > * @param WP_User $user_data WP_User object.
  283. 390c401
  284. < $message = apply_filters( 'retrieve_password_message', $message, $key );
  285. ---
  286. > $message = apply_filters( 'retrieve_password_message', $message, $key, $user_login, $user_data );
  287. 426c437,438
  288. < setcookie(TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN);
  289. ---
  290. > $secure = ( 'https' === parse_url( site_url(), PHP_URL_SCHEME ) && 'https' === parse_url( home_url(), PHP_URL_SCHEME ) );
  291. > setcookie( TEST_COOKIE, 'WP Cookie check', 0, COOKIEPATH, COOKIE_DOMAIN, $secure );
  292. 428c440
  293. < setcookie(TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN);
  294. ---
  295. > setcookie( TEST_COOKIE, 'WP Cookie check', 0, SITECOOKIEPATH, COOKIE_DOMAIN, $secure );
  296. 439c451
  297. < * The dynamic portion of the hook name, $action, refers to the action
  298. ---
  299. > * The dynamic portion of the hook name, <code>$action</code>, refers to the action
  300. 453c465
  301. < require_once ABSPATH . 'wp-includes/class-phpass.php';
  302. ---
  303. > require_once ABSPATH . WPINC . '/class-phpass.php';
  304. 467c479,480
  305. < setcookie( 'wp-postpass_' . COOKIEHASH, $hasher->HashPassword( wp_unslash( $_POST['post_password'] ) ), $expire, COOKIEPATH );
  306. ---
  307. > $secure = ( 'https' === parse_url( home_url(), PHP_URL_SCHEME ) );
  308. > setcookie( 'wp-postpass_' . COOKIEHASH, $hasher->HashPassword( wp_unslash( $_POST['post_password'] ) ), $expire, COOKIEPATH, COOKIE_DOMAIN, $secure );
  309. 472,473d484
  310. < break;
  311. <
  312. 475a487,489
  313. >
  314. > $user = wp_get_current_user();
  315. >
  316. 478c492,508
  317. < $redirect_to = !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : 'wp-login.php?loggedout=true';
  318. ---
  319. > if ( ! empty( $_REQUEST['redirect_to'] ) ) {
  320. > $redirect_to = $requested_redirect_to = $_REQUEST['redirect_to'];
  321. > } else {
  322. > $redirect_to = 'wp-login.php?loggedout=true';
  323. > $requested_redirect_to = '';
  324. > }
  325. >
  326. > /**
  327. > * Filter the log out redirect URL.
  328. > *
  329. > * @since 4.2.0
  330. > *
  331. > * @param string $redirect_to The redirect destination URL.
  332. > * @param string $requested_redirect_to The requested redirect destination URL passed as a parameter.
  333. > * @param WP_User $user The WP_User object for the user that's logging out.
  334. > */
  335. > $redirect_to = apply_filters( 'logout_redirect', $redirect_to, $requested_redirect_to, $user );
  336. 482,483d511
  337. < break;
  338. <
  339. 533c561
  340. < * Fires inside the lostpassword <form> tags, before the hidden fields.
  341. ---
  342. > * Fires inside the lostpassword form tags, before the hidden fields.
  343. 547,553c575,576
  344. < /**
  345. < * Filter the registration URL below the login form.
  346. < *
  347. < * @since 1.5.0
  348. < *
  349. < * @param string $registration_url Registration URL.
  350. < */
  351. ---
  352. >
  353. > /** This filter is documented in wp-includes/general-template.php */
  354. 635,636c658
  355. < <p class="description indicator-hint"><?php _e('Hint: The password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers, and symbols like ! " ? $ % ^ & ).'); ?></p>
  356. <
  357. ---
  358. > <p class="description indicator-hint"><?php echo wp_get_password_hint(); ?></p>
  359. 658c680,681
  360. < /** This filter is documented in wp-login.php */
  361. ---
  362. >
  363. > /** This filter is documented in wp-includes/general-template.php */
  364. 670d692
  365. < $sign_up_url = network_site_url( 'wp-signup.php' );
  366. 678c700
  367. < wp_redirect( apply_filters( 'wp_signup_location', $sign_up_url ) );
  368. ---
  369. > wp_redirect( apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) ) );
  370. 712c734
  371. < <form name="registerform" id="registerform" action="<?php echo esc_url( site_url('wp-login.php?action=register', 'login_post') ); ?>" method="post">
  372. ---
  373. > <form name="registerform" id="registerform" action="<?php echo esc_url( site_url('wp-login.php?action=register', 'login_post') ); ?>" method="post" novalidate="novalidate">
  374. 719c741
  375. < <input type="text" name="user_email" id="user_email" class="input" value="<?php echo esc_attr(wp_unslash($user_email)); ?>" size="25" /></label>
  376. ---
  377. > <input type="email" name="user_email" id="user_email" class="input" value="<?php echo esc_attr( wp_unslash( $user_email ) ); ?>" size="25" /></label>
  378. 773,778d794
  379. < // If the user was redirected to a secure login form from a non-secure admin page, and secure login is required but secure admin is not, then don't use a secure
  380. < // cookie and redirect back to the referring non-secure admin page. This allows logins to always be POSTed over SSL while allowing the user to choose visiting
  381. < // the admin via http or https.
  382. < if ( !$secure_cookie && is_ssl() && force_ssl_login() && !force_ssl_admin() && ( 0 !== strpos($redirect_to, 'https') ) && ( 0 === strpos($redirect_to, 'http') ) )
  383. < $secure_cookie = false;
  384. <
  385. 784c800
  386. < __( 'http://codex.wordpress.org/Cookies' ), __( 'https://wordpress.org/support/' ) ) );
  387. ---
  388. > __( 'https://codex.wordpress.org/Cookies' ), __( 'https://wordpress.org/support/' ) ) );
  389. 788c804
  390. < __( 'http://codex.wordpress.org/Cookies' ) ) );
  391. ---
  392. > __( 'https://codex.wordpress.org/Cookies' ) ) );
  393. 854c870
  394. < $errors->add('updated', __( '<strong>You have successfully updated WordPress!</strong> Please log back in to experience the awesomeness.' ), 'message' );
  395. ---
  396. > $errors->add('updated', __( '<strong>You have successfully updated WordPress!</strong> Please log back in to see what’s new.' ), 'message' );
  397. 875a892,897
  398. >
  399. > if ( ! empty( $errors->errors ) ) {
  400. > $aria_describedby_error = ' aria-describedby="login_error"';
  401. > } else {
  402. > $aria_describedby_error = '';
  403. > }
  404. 881c903
  405. < <input type="text" name="log" id="user_login" class="input" value="<?php echo esc_attr($user_login); ?>" size="20" /></label>
  406. ---
  407. > <input type="text" name="log" id="user_login"<?php echo $aria_describedby_error; ?> class="input" value="<?php echo esc_attr( $user_login ); ?>" size="20" /></label>
  408. 885c907
  409. < <input type="password" name="pwd" id="user_pass" class="input" value="" size="20" /></label>
  410. ---
  411. > <input type="password" name="pwd" id="user_pass"<?php echo $aria_describedby_error; ?> class="input" value="" size="20" /></label>
  412. 915c937,938
  413. < /** This filter is documented in wp-login.php */
  414. ---
  415. >
  416. > /** This filter is documented in wp-includes/general-template.php */
  417. 927c950
  418. < <?php if ( $user_login || $interim_login ) { ?>
  419. ---
  420. > <?php if ( $user_login ) { ?>
  421. diff wordpress-3.9.6/wp-mail.php wordpress-4.2.2/wp-mail.php
  422. 71c71
  423. < // body signal
  424. ---
  425. > // Body signal.
  426. 111,112c111,114
  427. < // Set the author using the email address (From or Reply-To, the last used)
  428. < // otherwise use the site admin
  429. ---
  430. > /*
  431. > * Set the author using the email address (From or Reply-To, the last used)
  432. > * otherwise use the site admin.
  433. > */
  434. 174c176,177
  435. < // match case-insensitive content-transfer-encoding
  436. ---
  437. >
  438. > // Match case-insensitive content-transfer-encoding.
  439. diff wordpress-3.9.6/wp-settings.php wordpress-4.2.2/wp-settings.php
  440. 121a122
  441. > require( ABSPATH . WPINC . '/session.php' );
  442. 194c195
  443. < // Define constants after multisite is loaded. Cookie-related constants may be overridden in ms_network_cookies().
  444. ---
  445. > // Define constants after multisite is loaded.
  446. 369c370
  447. < * @link http://codex.wordpress.org/AJAX_in_Plugins
  448. ---
  449. > * @link https://codex.wordpress.org/AJAX_in_Plugins
  450. diff wordpress-3.9.6/wp-signup.php wordpress-4.2.2/wp-signup.php
  451. 22c22
  452. < * Fires within the <head> section of the site sign-up screen.
  453. ---
  454. > * Fires within the head section of the site sign-up screen.
  455. 156,157d155
  456. < * @uses wp_get_current_user() to retrieve the current user
  457. < * @uses wpmu_validate_blog_signup() to validate new site signup for the current user
  458. 191c189
  459. < <input name="user_email" type="text" id="user_email" value="<?php echo esc_attr($user_email) ?>" maxlength="200" /><?php _e('We send your registration email
  460. to this address. (Double-check your email address before continuing.)') ?>
  461. ---
  462. > <input name="user_email" type="email" id="user_email" value="<?php echo esc_attr($user_email) ?>" maxlength="200" /><?php _e('We send your registration email to this address. (Double-check your email address before continuing.)') ?>
  463. 211d208
  464. < * @uses wpmu_validate_user_signup() to retrieve an array of user data
  465. 223d219
  466. < * @uses wp_get_current_user() to get the current user
  467. 306,309c302,303
  468. < * @uses wp_get_current_user() to retrieve the current user
  469. < * @uses wpmu_create_blog() to add a new site
  470. < * @uses confirm_another_blog_signup() to confirm the user's new site signup
  471. < * @return bool True if blog signup was validated, false if error
  472. ---
  473. > * @return null|boolean True if blog signup was validated, false if error.
  474. > * The function halts all execution if the user is not logged in.
  475. 314c308
  476. < if ( !is_user_logged_in() )
  477. ---
  478. > if ( ! is_user_logged_in() ) {
  479. 315a310
  480. > }
  481. 318c313,319
  482. < extract($result);
  483. ---
  484. >
  485. > // Extracted values set/overwrite globals.
  486. > $domain = $result['domain'];
  487. > $path = $result['path'];
  488. > $blogname = $result['blogname'];
  489. > $blog_title = $result['blog_title'];
  490. > $errors = $result['errors'];
  491. 340c341
  492. < $meta = apply_filters( 'signup_create_blog_meta', $blog_meta_defaults );
  493. ---
  494. > $meta_defaults = apply_filters( 'signup_create_blog_meta', $blog_meta_defaults );
  495. 353c354
  496. < $meta = apply_filters( 'add_signup_meta', $meta );
  497. ---
  498. > $meta = apply_filters( 'add_signup_meta', $meta_defaults );
  499. 391,392d391
  500. < * @uses apply_filters() filter $filtered_results
  501. < * @uses show_user_form() to display the user registration form
  502. 432c431
  503. < <form id="setupform" method="post" action="wp-signup.php">
  504. ---
  505. > <form id="setupform" method="post" action="wp-signup.php" novalidate="novalidate">
  506. 464,466d462
  507. < * @uses validate_user_form() to retrieve an array of the user data
  508. < * @uses wpmu_signup_user() to signup the new user
  509. < * @uses confirm_user_signup() to confirm the new user signup
  510. 471c467,469
  511. < extract($result);
  512. ---
  513. > $user_name = $result['user_name'];
  514. > $user_email = $result['user_email'];
  515. > $errors = $result['errors'];
  516. 514,515d511
  517. < * @uses apply_filters() to filter $filtered_results
  518. < * @uses show_blog_form() to display the blog signup form
  519. 579,583d574
  520. < * @uses wpmu_validate_user_signup() to retrieve an array of the new user data and errors
  521. < * @uses wpmu_validate_blog_signup() to retrieve an array of the new site data and errors
  522. < * @uses apply_filters() to make signup $meta filterable
  523. < * @uses signup_user() to signup a new user
  524. < * @uses signup_blog() to signup a the new user to a new site
  525. 588,589c579,582
  526. < $result = wpmu_validate_user_signup($_POST['user_name'], $_POST['user_email']);
  527. < extract($result);
  528. ---
  529. > $user_result = wpmu_validate_user_signup( $_POST['user_name'], $_POST['user_email'] );
  530. > $user_name = $user_result['user_name'];
  531. > $user_email = $user_result['user_email'];
  532. > $user_errors = $user_result['errors'];
  533. 591,592c584,585
  534. < if ( $errors->get_error_code() ) {
  535. < signup_user($user_name, $user_email, $errors);
  536. ---
  537. > if ( $user_errors->get_error_code() ) {
  538. > signup_user( $user_name, $user_email, $user_errors );
  539. 596,597c589,594
  540. < $result = wpmu_validate_blog_signup($_POST['blogname'], $_POST['blog_title']);
  541. < extract($result);
  542. ---
  543. > $result = wpmu_validate_blog_signup( $_POST['blogname'], $_POST['blog_title'] );
  544. > $domain = $result['domain'];
  545. > $path = $result['path'];
  546. > $blogname = $result['blogname'];
  547. > $blog_title = $result['blog_title'];
  548. > $errors = $result['errors'];
  549. 605c602
  550. < $meta = array ('lang_id' => 1, 'public' => $public);
  551. ---
  552. > $signup_meta = array ('lang_id' => 1, 'public' => $public);
  553. 608c605
  554. < $meta = apply_filters( 'add_signup_meta', $meta );
  555. ---
  556. > $meta = apply_filters( 'add_signup_meta', $signup_meta );
  557. diff wordpress-3.9.6/wp-trackback.php wordpress-4.2.2/wp-trackback.php
  558. 23,25c23,25
  559. < * @param int|bool $error Whether there was an error.
  560. < * Default '0'. Accepts '0' or '1'.
  561. < * @param string $error_message Error message if an error occurred.
  562. ---
  563. > * @param mixed $error Whether there was an error.
  564. > * Default '0'. Accepts '0' or '1', true or false.
  565. > * @param string $error_message Error message if an error occurred.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement