-
Open Ampps Application -> MySQL Tab -> Configuration.
-
In [mysqld] section, add the following line:
innodb_force_recovery = 1
-
Save the file and try starting MySQL
-
Remove that line which you just added and Save.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('nav_menu_link_attributes' , 'att_add_menu_id', 3, 10); | |
if ( !function_exists( 'att_add_menu_id') ) { | |
function att_add_menu_id($atts, $item, $args) { | |
if( 'page' == $item->object ){ | |
$id = $item->object_id; | |
$id = 'page-'. esc_attr( basename( get_permalink( $id ) ) ); | |
$atts['id'] = $id; | |
} | |
return $atts; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For more details, see http://code.garyjones.co.uk/install-wordpress-ssh/ | |
wget http://wordpress.org/latest.tar.gz | |
tar zxf latest.tar.gz | |
cd wordpress | |
cp -rpf * ../ | |
cd ../ | |
rm -rf wordpress/ | |
rm -f latest.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
################################################################################ | |
// Custom WordPress Local Config | |
// Use only for Development | |
// https://gist.github.com/bhubbard/8428583 | |
################################################################################ | |
/* Database Connection Info */ | |
define('DB_NAME', ''); | |
define('DB_USER', ''); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget --mirror --page-requisites --continue --convert-links --user-agent="" --execute robots=off --wait 1 URL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hi there! | |
Thanks for creating a WordPress theme and submitting it to the WordPress.org directory! Since your theme also includes the accessibility-ready tag, I've also reviewed it according to those requirements, which you can find here: https://make.wordpress.org/themes/handbook/review/accessibility/ | |
Required | |
Anything in this section will need to be fixed before the theme can be approved. | |
Keyboard Navigation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($) { | |
// Any generic functions can go here... | |
$(document).ready(function($){ | |
// Anything that needs to wait for the document to be ready goes here | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Convert ACF PHP to JSON | |
* Description: Convert Advanced Custom Fields Pro configuration from PHP to JSON. | |
*/ | |
namespace ConvertAcfPhpToJson; | |
/** | |
* Add submenu item under 'Custom Fields' |
OlderNewer