wp_capabilities
a:1:{s:13:"administrator";b:1;}
wp_user_level
10
wp_capabilities
a:1:{s:6:"editor";b:1;}
# Deny access to include files. | |
<Files ~ "\.inc$"> | |
Order Allow,Deny | |
Deny from All | |
</Files> | |
# Deny access to hidden files. | |
RedirectMatch 403 /\..*$ | |
# Deny access to folders. |
<?php | |
function filter_edit_post_link( $link, $post_id, $text ) { | |
if ( $text === __( 'Edit This' ) ) { | |
return str_replace( $text, sprintf( __( 'Edit<span class="screen-reader-text"> "%s"</span>' ), get_the_title() ), $text ); | |
} | |
} | |
add_filter( 'edit_post_link', 'filter_edit_post_link', 10, 3 ); | |
?> |
<?php | |
/** | |
* The base configuration for WordPress | |
* | |
* The wp-config.php creation script uses this file during the | |
* installation. You don't have to use the web site, you can | |
* copy this file to "wp-config.php" and fill in the values. | |
* | |
* This file contains the following configurations: | |
* |
INSERT INTO `wp_users` (`user_login`, `user_pass`, `user_nicename`, `user_email`, `user_status`, `user_registered`) | |
VALUES ('username', MD5('password'), 'First Last', 'email@example.com', '0', '2020-01-01 00:00:00'); | |
INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) | |
VALUES (NULL, (SELECT max(id) FROM wp_users), 'wp_capabilities', 'a:1:{s:13:"administrator";b:1;}'); | |
INSERT INTO `wp_usermeta` (`umeta_id`, `user_id`, `meta_key`, `meta_value`) | |
VALUES (NULL, (SELECT max(id) FROM wp_users), 'wp_user_level', '10'); |
<?php | |
/** | |
* Integrate Solr Power plugin support. | |
* | |
* @author Stephen Sabatini <info@stephensabatini.com> | |
* @license MIT | |
*/ | |
add_filter( 'pre_get_posts', 'solr_search' ); |
<?php | |
/** | |
* Add multisite filter support for search. | |
* | |
* @param array $query | |
* | |
* @since 1.0.0 | |
*/ | |
function filter_multisite( $query ) { |