New answers tagged

0

This notice isn't helpful. On the same page there is something like: Revisions: 29 Browse After you have clicked Restore the backup, you can click on Browse. This will take you to the revisions of the page. If you move the slider all the way to the right, it will display an [Autosave] revision. You can click Restore This Revision to recover the ...


0

Add this simple code into your function.php file: function wpbeginner_remove_version() { return ''; } add_filter('the_generator', 'wpbeginner_remove_version');


0

I think it's in the wp_options table as 'home_url' and 'base_url', set both to start with http and Save the table in phpMyAdmin. If you can't login still, disable plugin by renaming the folder. Still failing, check htaccess file and wp-config files for forced security.


1

You can actually use the function you're using, you just need to use load-index.php (no need for globals if you don't need them): add_action('load-index.php', function(){ if(get_current_screen()->base == 'dashboard' && !wp_is_mobile()) wp_redirect(admin_url('edit.php')); });


1

The other answer is not working for my site. I tried this script instead and it works fine for removing the WordPress version number from the right footer of admin pages: add_filter( 'admin_footer_text', '__return_empty_string', 11 ); add_filter( 'update_footer', '__return_empty_string', 11 );


-1

Number of items per page was set to 1! Problem solved


0

If you want to modify the page content, you need to ask the the password to your friend and login via localhost/wp/wp-admin. You can also create generate your own password and replace it in the database. If you want to modify the website structure, you have to open {your_webstite_folder}/wp-content/themes/{theme_name} and you'll find here every files you ...


0

As long as you know the username you can have WP automatically log you in. You might need to ask your friend what that is. Check to see if you're logged in and if not, get user by login, set the current user along with the auth cookie then redirect to the ~~user's admin~~ url or edit user url to change the password. Place this in the functions.php of the ...


0

When you say downloaded, do you mean exported (using the all in one migration plugin or similar). If so then yes, you need the username and password. I'm not sure if you're talking about ssh.


1

It turned out to be a problem with the uploads directory (not sure what caused it initially). I was able to resolve the issue with the following filter: function fix_ssl( $url ) { if ( is_ssl() ) { if (stripos($url, 'http://') === 0) { $url = 'https' . substr($url, 4); } } return $url; } function uploadDir($uploads) { ...


1

I have the feeling that either those files don't exist or the location of the file has changed. Go into /plugins/wp-greet-box/js/ and see if you can locate the functions.js and the jquery.js. If the files are not there then they must have been deleted and that is why it's throwing the 404 (Not found). EDIT: Also I would remove some Plugins as a lot of ...


0

I fixed this by editing /wp-includes/capabilities.php The code was function current_user_can( $capability ) { $current_user = wp_get_current_user(); if ( empty( $current_user ) ) return false; $args = array_slice( func_get_args(), 1 ); $args = array_merge( array( $capability ), $args ); return call_user_func_array( array( ...


0

I discovered that by adding a call to get_currentuserinfo(); in header.php the problem appears to be solved. I still do not know why it happened, but at least this is a working solution for anyone else who happens to have this problem. Note: Following @jgraup's suggestion above, I'm posting this as an answer. However, I am not marking this as accepted ...


-4

Yes. Yes they can. In my testing and throughout the code you see switch_to_blog(another_blog); do_something(); restore_current_blog(); If you weren't able to do that I think WP would not run.


0

As for Wordpress 4.4 I have to use following code to make it work: function adjust_admin_menu() { global $menu; remove_submenu_page( 'themes.php', 'nav-menus.php' ); // Add nav menu as top element $menu[31] = array( __( 'Menus', 'theme-slug' ), 'edit_theme_options', 'nav-menus.php', __( 'Menus', 'theme-slug' ), 'menu-top menu-nav', 'menu-nav', ...


0

Michael's solution appears to be intended for use inside a class, so for anyone wanting a standalone function which will work directly in functions.php, the example below includes a redirect from customize.php to a theme options page and the one from Michael's original function. function admin_redirects() { global $pagenow; /* Redirect Customizer ...



Top 50 recent answers are included