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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>FC2ブログからWordPressにインポートしたらコメント文が変になった人が自己責任で実行するやつ</title> | |
<link rel="stylesheet" href="wp-admin/css/install.css" type="text/css" /> | |
</head> | |
<body> | |
<h1>FC2ブログからWordPressにインポートしたらコメント文が変になった人が自己責任で実行するやつ</h1> | |
<h2>SECRET: *とか、PASS: *******とかが出ちゃう人へ。。。</h2> |
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
if ( ! function_exists( 'mw_wp_form_colored_status' ) ) : | |
function mw_wp_form_colored_status( $classes, $class, $ID ) | |
{ | |
if ( ! in_array( 'mw-wp-form/mw-wp-form.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { | |
return $classes; | |
} | |
if ( 'edit.php' !== basename( $_SERVER['PHP_SELF'] ) ) { | |
return $classes; | |
} | |
if ( ! isset( $_REQUEST['post_type'] ) || ! post_type_exists( $_REQUEST['post_type'] ) || false === strpos( $_REQUEST['post_type'], MWF_Config::DBDATA ) ) { |
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 | |
/** | |
* A helper file for Laravel 5, to provide autocomplete information to your IDE | |
* Generated for Laravel 5.1.31 (LTS) on 2016-03-01. | |
* | |
* @author Barry vd. Heuvel <[email protected]> | |
* @see https://github.com/barryvdh/laravel-ide-helper | |
*/ | |
namespace { |
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
def lambda_handler(event, context): | |
region = context.invoked_function_arn.split(":")[3] | |
request_id = context.aws_request_id | |
log_group_name = context.log_group_name | |
log_stream_name = context.log_stream_name | |
log_url = "https://"+region+".console.aws.amazon.com/cloudwatch/home?region="+region+"#logEvent:group="+log_group_name+";stream="+log_stream_name | |
print log_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
<?php | |
function set_cpt_per_page( $query ) { | |
$cpt = 'news'; | |
$per_page = 10; | |
if ( ! is_admin() && $query->is_main_query() && is_post_type_archive( $cpt ) ) { | |
$query->set( 'posts_per_page', $per_page ); | |
} | |
} | |
add_action( 'pre_get_posts', 'set_cpt_per_page' ); | |
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
diff --git bin/php-build bin/php-build | |
index 273a11a..60fe31a 100755 | |
--- bin/php-build | |
+++ bin/php-build | |
@@ -334,6 +334,10 @@ function build_package() { | |
cd "$source_path" | |
{ | |
+ if which apxs > /dev/null 2>&1; then | |
+ _LIBEXECDIR=`apxs -q LIBEXECDIR` |
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: Plugin On Off | |
*/ | |
$poo = new Plugin_On_Off(); | |
$poo->register_hooks(); | |
class Plugin_On_Off { |
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 | |
function my_pre_get_avatar_data( $args, $id_or_email ) { | |
$args['scheme'] = 'https'; | |
return $args; | |
} | |
add_filter( 'pre_get_avatar_data', 'my_pre_get_avatar_data', 10, 2 ); |
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
#ブログ記事はコチラ:https://mt8.biz/953 | |
#==================== | |
#事前準備(Mac) | |
#==================== | |
#---手元のマシン(Mac)で鍵を作成--- | |
cd ~/.ssh/ | |
ssh-keygen -t rsa -f time4vps |
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 | |
//「今後の返信をメールで通知」の後にフック | |
add_action('bbp_theme_after_reply_form_subscription', 'my_bbp_theme_after_reply_form_subscription'); | |
/** | |
* トピック回答フォームの「今後の返信をメールで通知」項目の後のアクションフック処理 | |
*/ | |
function my_bbp_theme_after_reply_form_subscription() { | |
?> |
OlderNewer