Replace get_bloginfo( 'siteurl' ) with home_url().
As the get_bloginfo() Codex entry explains, siteurl is deprecated:
'siteurl"https://wordpress.stackexchange.com/"home (note this is deprecated! from version 2.2)"https://wordpress.stackexchange.com/"url'– Returns the'Site address (URL)'set in Settings > General. This data is retrieved from the'home'record in thewp_optionstable. Consider usinghome_url()instead.
Related Posts:
- Debugging with functions.php
- wp_enqueue_script was called incorrectly
- Remove type attribute from script and style tags added by WordPress
- How to debug vars inside function at functions.php file?
- How to display error messages using WP_Error class?
- Remove Menu Page Giving Error
- Functions.php reverted to new one
- Why is my Gutenberg block returning an error after initial save?
- Warning: : DOMDocument::loadHTML(): Empty string supplied as input in functions.php when adding classes to post images
- Parse error after modifying the template menu [closed]
- Dumping variable in custom pre_gets_post function in functions.php, returns NULL
- help I changed one currency in woocommerce and everything is ruined [closed]
- Need help getting a function to function
- Connecting to a 2nd DB gives me no results when querying
- register_sidebar_widget is deprecated since version 2.8! Use wp_register_sidebar_widget() instead
- the_posts_pagination() function returns missing page numbering on some blog pages
- Functions Error: Impacting Galleries
- Strange error from functions.php files (wp_register_script)
- Show errormessages on wrong username/password on custom loginform?
- Problems with functions.php! Error! [closed]
- Looking for Functions File that doesn’t Exist
- functions.php pharse error on complete new install
- Getting value of variable from functions.php and debugging it
- “Conditional query tags do not work before the query is run. Before > then, they always return false. “
- Move product attributes after summary on single product page
- MCAPI.class.php showing some error
- I’m getting invalid taxonomy in init action
- Translation Function missing text-domain [closed]
- What is wrong with functions.php? Fills error log with same error
- Random text changing to weird icons in both admin & front end
- jQuery HoverIntent is not a function
- Fatal error after changes to functions.php, even with original file
- create submenu page – error function not found or invalid function name
- Why does modifying my functions.php file always result in a server error
- Notice: Use of undefined constant REQUEST_URI – assumed ‘REQUEST_URI’ in ….functions.php on line 73
- Woocommerce – Checkout error message
- How to fix enqueue_styles error for a twenty-seventeen childtheme
- Comment turned Invisible
- Logout redirect via page template without confirmation?
- Convert Image to Webp on upload without plugin
- Rewrite standard $errors messages output via function.php
- Remove “Category:”, “Tag:”, “Author:” from the_archive_title
- get_template_directory_uri pointing to parent theme not child theme
- Get the ID of the page a menu item links to?
- Add container to nav_menu sub menu
- Link to user’s profile settings page?
- One Child Functions.php for Multiple Child Themes
- Shared functions.php across multiple WordPress websites
- How to restrict actions and filters “properly” by conditions
- Extending auth_cookie_expiration based on user role
- Check if the user has explicitly set an excerpt
- Disabling pingback and trackback notifications
- AJAX handler throws 400 (Bad request) – why?
- Paged Single Post doesn’t redirect to the main url after Removing Pagination
- How to get comments with mixed status using get_comments?
- How to display the_post_thumbnail if a post has one or otherwise display the first image in a post?
- Return only top-level navigation items from a menu using wp_get_nav_menu_items
- How to add .htaccess code through a function?
- Conditional tag is_page with a custom post type
- Add inline css to theme
- Shortcode with custom content attribute?
- Add a Post Thumbnail to an RSS Feed with custom size
- How can I rename the WordPress AJAX URL? [duplicate]
- How to add a rel attribute to images that contains their categories?
- Is it possible to be more page/post specific with admin_enqueue_script?
- Automatically add author’s name to post_tag
- Print Dashboard menu name and link
- radio button is checked but display not check
- Theme options WP Editor
- Enqueue styles after a plugin
- Develop function get_template_part in functions.php
- Properly applying nonce to a form using AJAX
- What is the $context in remove_meta_box function?
- Add external js file to footer with id
- Conditions for Users and Visitors
- add_filter priority problem
- Change comment_reply_link URL
- Ajaxing function in widget class
- wp_enqueue JavaScript in child-theme (ReferenceError) using Search & Go
- How can I enable uploading excel files?
- Super simple shortcode not working
- Using “Read More” link with custom excerpt
- Enqueue scripts not working with if is page conditional tag in functions.php
- what function can I use to automatically output og tags per page/post?
- Why does the ‘wp_nav_menu’ function work only until a menu is created?
- Add error message on password protected page ONLY when password introduced was incorrect
- Select pages by category
- How to customly read JWPlayer’s “Playlist” items by using its “playlistid”?
- Twentyten Child Theme: header images display messed up in admin panel
- Mute Debug Messages from Plugins
- Get Current Post ID in functions php, meta query filter
- Output and filter data from a XML url
- Where to start learning more about wordpress templates [closed]
- What did I do wrong in my functions code, that will not change the “Get New Password” text to “Send It”?
- How do I create a function that simulate the click on Update button for all posts?
- Jquery implementation not working on page reload
- Reuse variable in hook callback
- Multisite Ajax serialize return error [object Object]
- Move Custom Fields on General Settings Page to New Location
- PHP mixed with some JS code to update WordPress theme settings