I grep
ed a 3.6 install and got this:
./wp-login.php:321:function register_new_user( $user_login, $user_email ) {
./wp-login.php:550: $errors = register_new_user($user_login, $user_email);
Notice the function definition is in wp-login.php
.
If you look at the current wp-login.php
, it isn’t there anymore and there is a note at the top of the page, just above the code:
Last change on this file was 25231, checked in by SergeyBiryukov, 11
days agoMove
check_password_reset_key()
,reset_password()
, and
register_new_user()
fromwp-login.php
towp-includes/user.php
, to make
them reusable. props beaulebens for initial patch. fixes #20279.
That migration of code has been needed for a long, long time. I am glad it was finally done. Your fix is to update WordPress.
Related Posts:
- Best way to create a user programatically
- Run a code only on theme activation only during first activation
- Including user data in “new user notification email”
- Help hooking into user_register
- How to auto-generate random numbers in username?
- Registration form not registering First and Last name
- Cleaning up WordPress to improve performance?
- List of all theme customizer control types?
- Modify previous and next text from pagination links
- How can I modify the permalink via a filter?
- How build a custom login/register form with error handling?
- wp_set_object_terms and arrays
- Shortcode putting html such as
- How to use WordPress (PHP) functions in AngularJS partials files?
- The best way to customize “nav-menu-template.php” to add if the ‘link_before’ is “checkbox”
- Output a WooCommerce product custom field in WooCommerce using get_post_meta()
- Remove username in emails or swap username for email
- enqueue multiple Google fonts with multiple weights and styles (italic)
- How to check If Oembed is empty or not
- Can’t load WP function into external function
- Image as Sales Badge
- WSoD being caused by this piece of code
- How to Arrange PHP Files to Allow for Multiple Types of Pages?
- Can I prevent the user from adding more than two levels deep of terms inside of a taxonomy metabox?
- Show css depending on activity type in BuddyPress activity-loop [closed]
- How to complete two other input fields, completed the first
- Retrieve $_POST data submitted from external URL in WordPress(NOT API)
- Return a numerical function value in Customizer controls
- Css loads very slow [closed]
- Show when user is online/offline in real time on user_profile.php
- Compare the old get_theme_mod($name) to the new get_theme_mod($name) return value
- Scrape external webpage for first image and add it to new post
- theme_root returning a truncated URI
- Call to undefined function get_userdata() in plugin
- Echo string and function?
- jQuery code not working when included in functions.php
- Fatal Errors on pluggable.php
- Log in / Log Out Custom Button
- how to test for all children (including multilevel grand-childern) of page
- Dilemma of Populating all the categories in a drop down list
- Add item to top of menu using a filter in functions.php
- Password minimum length in personal subscription [closed]
- Notify users only on post publish
- Limit Taxonomy Output in Conditional Statement
- wp_redirect only works on main site and not on other sites
- How do you create two separate Register pages?
- Show ACF field with link to ultimate member profile/WordPress user profile below the post (single post layout)
- How can I hook into the wp_mail function used by BackWPup?
- How to get current post category details inside “loop”?
- List post by title length
- how to enqueque code in a php file from functions.php
- Only load certain artists on this page
- Get the alt text of the image in a array
- Convert all uploaded PNG files to PNG-8 format
- Make table disappear when fields are left blank?
- Uses for function: wp_update_user
- How to Redirect Buddypress Directories To Login Page For Non Logged in Users
- Woocommerce order status payment
- How to define a rule in functions.php that ONLY disables the default wp functionality that undesirably changes ‘&’ to ‘#038;’?
- Unzip file in functions.php, and add it to cron
- Add Block Before Entry Title Using PHP
- Display logged in user name and lastname on page
- How to Add a cutsom slug to my custom author role
- Dynamically populate parameter in Gravity Forms using PHP
- How to output the taxonomies that are assigned to each custom post?
- Having trouble creating two shortcodes, one for logged in user and one for visitors
- Exclude category from function – PHP
- How to escape echo for input tag?
- Hide a specific category title from displaying on site
- Display current user metadata on WordPress page
- Reload page with a different shortcode when a user selects from a dropdown
- Refresh page after login with litespeed cache
- Handling form actions in WordPress
- Need help with AJAX login to call php in functions.php to handle redirects based on user cap (role)
- Woocommerce Add custom “Add to cart button” in single page with tags
- Populate Posts based on category selected using AJAX that means without page refresh
- remove_action() not working in page template – Genesis
- PHP script to redirect traffic based on website accessed
- How to remove title tag with this filter
- Why transition_post_type hook is called twice for the same post?
- Can’t get_users info by using json_encode
- Newbie question. Login/Registration. New PHP page
- What is wrong in this code?
- Can’t put a hyperlink on Featured Post’s Image
- Page returning ID from array, how to return the correct values for post in acf wordpress
- Modify php code to pass a page id as a parameter in order to create a breadcrumb
- Show custom default avatar instead of gravatar
- Permission error on plugin save
- Removing all my hardcoded URLs with get_site_url()
- WordPress 2014 Theme – Featured Content with multiple tags?
- Display default WordPress login/registration form into a modal window
- Highlight main menu when on specific posts or pages
- Pull GET parameter from URL in functions.php
- Adding Gravity Form With if(is_page) Is Not Working
- ajax form function error
- Display custom meta box in my template file
- Woocommerce – Shipping tax class based on cart items not using the highest tax available
- How to display the date under the post title?
- Simple Probléme in wordpress
- How to limit the number of posts in the wordpress loop in conjunction with the “download more” button?