{"id":26765,"date":"2021-04-27T13:48:00","date_gmt":"2021-04-27T10:48:00","guid":{"rendered":"https:\/\/themewp.inform.click\/?p=26765"},"modified":"2025-02-12T05:49:11","modified_gmt":"2025-02-12T02:49:11","slug":"posibnyk-iz-pokrashchennia-standartiv-koduvannia-wordpress","status":"publish","type":"post","link":"https:\/\/themewp.inform.click\/uk\/posibnyk-iz-pokrashchennia-standartiv-koduvannia-wordpress\/","title":{"rendered":"\u041f\u043e\u0441\u0456\u0431\u043d\u0438\u043a \u0456\u0437 \u043f\u043e\u043a\u0440\u0430\u0449\u0435\u043d\u043d\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0456\u0432 \u043a\u043e\u0434\u0443\u0432\u0430\u043d\u043d\u044f WordPress"},"content":{"rendered":"<p>\u042f\u043a\u0449\u043e \u0432\u0438 \u0440\u043e\u0437\u0440\u043e\u0431\u043d\u0438\u043a, \u0442\u043e, \u0431\u0435\u0437\u0443\u043c\u043e\u0432\u043d\u043e, \u0432\u0438 \u043f\u0440\u0430\u0433\u043d\u0435\u0442\u0435 \u0432\u0434\u043e\u0441\u043a\u043e\u043d\u0430\u043b\u0438\u0442\u0438 \u0441\u0432\u043e\u0457 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0438 \u043a\u043e\u0434\u0443\u0432\u0430\u043d\u043d\u044f. \u041a\u043e\u0436\u043d\u0430 \u043c\u043e\u0432\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0443\u0432\u0430\u043d\u043d\u044f \u0442\u0430 \u0457\u0445 CMS \/ Frameworks \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 \u0441\u0432\u043e\u0457 \u0432\u043b\u0430\u0441\u043d\u0456 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0438 \u043a\u043e\u0434\u0443\u0432\u0430\u043d\u043d\u044f. \u0423 \u0446\u0456\u0439 \u0441\u0442\u0430\u0442\u0442\u0456 \u043c\u0438 \u0432\u0438\u0432\u0447\u0430\u0454\u043c\u043e, \u044f\u043a \u0432\u0434\u043e\u0441\u043a\u043e\u043d\u0430\u043b\u0438\u0442\u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0438 \u043a\u043e\u0434\u0443\u0432\u0430\u043d\u043d\u044f WordPress.<\/p>\n<p>\u041c\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043b\u0438 \u0441\u0442\u0430\u0442\u0442\u044e \u043f\u0440\u043e <a href=\"https:\/\/themewp.inform.click\/uk\/php_codesniffer-biblioteka-dlja-vdoskonalennja-vashih-standartiv-koduvannja-php\/\" title=\"\u0432\u0434\u043e\u0441\u043a\u043e\u043d\u0430\u043b\u0435\u043d\u043d\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0456\u0432 \u043a\u043e\u0434\u0443\u0432\u0430\u043d\u043d\u044f PHP\" >\u0432\u0434\u043e\u0441\u043a\u043e\u043d\u0430\u043b\u0435\u043d\u043d\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0456\u0432 \u043a\u043e\u0434\u0443\u0432\u0430\u043d\u043d\u044f PHP<\/a>. \u0421\u043f\u043e\u0447\u0430\u0442\u043a\u0443 \u0441\u043b\u0456\u0434 \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438 \u0446\u044e \u0441\u0442\u0430\u0442\u0442\u044e, \u043f\u0435\u0440\u0448 \u043d\u0456\u0436 \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0442\u0438 \u0434\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0456\u0432 \u043a\u043e\u0434\u0443\u0432\u0430\u043d\u043d\u044f \u0434\u043b\u044f \u0440\u043e\u0437\u0440\u043e\u0431\u043a\u0438 WordPress.<\/p>\n<h3>\u041f\u043e\u043c\u0438\u043b\u043a\u0438, \u044f\u043a\u0456 \u043c\u0438 \u0440\u043e\u0431\u0438\u043c\u043e \u043f\u0456\u0434 \u0447\u0430\u0441 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0443\u0432\u0430\u043d\u043d\u044f WordPress<\/h3>\n<p>\u041a\u043e\u0436\u043d\u0430 \u0440\u043e\u0437\u0440\u043e\u0431\u043a\u0430 \u043c\u0430\u0454 \u0440\u0456\u0437\u043d\u0456 \u0440\u0456\u0448\u0435\u043d\u043d\u044f. \u041c\u043e\u0436\u043b\u0438\u0432\u043e, \u043a\u043e\u0436\u0435\u043d \u0440\u043e\u0437\u0440\u043e\u0431\u043d\u0438\u043a \u0440\u0435\u0430\u043b\u0456\u0437\u0443\u0454 \u0440\u0456\u0437\u043d\u0438\u0439 \u0441\u043f\u043e\u0441\u0456\u0431 \/ \u043b\u043e\u0433\u0456\u043a\u0443 \u0434\u043b\u044f \u043e\u0442\u0440\u0438\u043c\u0430\u043d\u043d\u044f \u043e\u0434\u043d\u0430\u043a\u043e\u0432\u0438\u0445 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0456\u0432. \u0426\u0435 \u043f\u0440\u0438\u0440\u043e\u0434\u043d\u043e \u0443 \u0441\u0432\u0456\u0442\u0456 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0443\u0432\u0430\u043d\u043d\u044f.<\/p>\n<p>\u041d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434, \u0441\u043a\u0430\u0436\u0456\u043c\u043e, \u043c\u0438 \u0434\u043e\u0434\u0430\u043b\u0438 nonce \u0443 \u043d\u0430\u0448\u0443 \u0444\u043e\u0440\u043c\u0443 \u0440\u0435\u0454\u0441\u0442\u0440\u0430\u0446\u0456\u0457, \u0449\u043e\u0431 \u0443\u043d\u0438\u043a\u043d\u0443\u0442\u0438 \u0430\u0442\u0430\u043a CSRF.<\/p>\n<pre><code>&lt;form method=\"post\"&gt;\n&lt;?php wp_nonce_field( 'signup_nonce', 'signup_form_nonce' ); ?&gt;\n&lt;\/form&gt;<\/code><\/pre>\n<p>\u041f\u043e\u0434\u0430\u044e\u0447\u0438 \u0444\u043e\u0440\u043c\u0443, \u043c\u0438 \u043f\u043e\u0432\u0438\u043d\u043d\u0456 \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438, \u0447\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0438\u0439 nonce \u0447\u0438 \u043d\u0456. \u0417\u0430\u0437\u0432\u0438\u0447\u0430\u0439 \u0440\u043e\u0437\u0440\u043e\u0431\u043d\u0438\u043a, \u044f\u043a\u0438\u0439 \u043d\u0435 \u0437\u043d\u0430\u0454 \u043f\u0440\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0438 \u043a\u043e\u0434\u0443\u0432\u0430\u043d\u043d\u044f, \u0440\u043e\u0431\u0438\u0442\u044c \u0446\u0435 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0438\u043c \u0447\u0438\u043d\u043e\u043c.<\/p>\n<pre><code>&lt;?php\nif (! isset( $_POST['signup_form_nonce']) ||! wp_verify_nonce( $_POST['signup_form_nonce'], 'signup_nonce')) {\n\u00a0\n\u00a0\u00a0\u00a0print 'Sorry, your nonce did not verify.';\n\u00a0\u00a0\u00a0exit;\n\u00a0\n} else {\n\u00a0\n\u00a0\u00a0\u00a0\/\/ process form data\n}\n?&gt;<\/code><\/pre>\n<p>\u0423 \u043d\u0430\u0432\u0435\u0434\u0435\u043d\u043e\u043c\u0443 \u0432\u0438\u0449\u0435 \u043a\u043e\u0434\u0456 \u043d\u0435\u043c\u0430\u0454 \u043d\u0456\u0447\u043e\u0433\u043e \u043f\u043e\u0433\u0430\u043d\u043e\u0433\u043e. \u0410\u043b\u0435 \u0446\u0435 \u043f\u043e\u0433\u0430\u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0430. \u041e\u0442\u0440\u0438\u043c\u0443\u044e\u0447\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u043b\u044f, \u043c\u0438 \u043f\u043e\u0432\u0438\u043d\u043d\u0456 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 <code>sanitize_text_field()<\/code>\u0442\u0430 <code>wp_unslash()<\/code>\u0444\u0443\u043d\u043a\u0446\u0456\u043e\u043d\u0443\u0432\u0430\u0442\u0438 \u043d\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f\u0445 \u043f\u043e\u043b\u044f \u0432\u0432\u0435\u0434\u0435\u043d\u043d\u044f.<\/p>\n<p><a href=\"https:\/\/codex.wordpress.org\/Validating_Sanitizing_and_Escaping_User_Data\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external\"><\/a>\u041c\u0435\u0442\u043e\u0434 <a href=\"https:\/\/codex.wordpress.org\/Validating_Sanitizing_and_Escaping_User_Data\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">sanitize_text_field<\/a> \u0432\u0438\u043a\u043e\u043d\u0443\u0454 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0438\u0439 \u043f\u0440\u043e\u0446\u0435\u0441 \u0443 \u0444\u043e\u043d\u043e\u0432\u043e\u043c\u0443 \u0440\u0435\u0436\u0438\u043c\u0456.<\/p>\n<ul>\n<li>\u041f\u0435\u0440\u0435\u0432\u0456\u0440\u043a\u0438 \u043d\u0430 \u043d\u0430\u044f\u0432\u043d\u0456\u0441\u0442\u044c \u043d\u0435\u0434\u0456\u0439\u0441\u043d\u0438\u0445 UTF-8<\/li>\n<li>\u041f\u0435\u0440\u0435\u0442\u0432\u043e\u0440\u044e\u0454 \u043e\u0434\u0438\u043d\u0438\u0447\u043d\u0456 &lt;\u0441\u0438\u043c\u0432\u043e\u043b\u0438 \u0432 \u0441\u0443\u0442\u043d\u0456\u0441\u0442\u044c<\/li>\n<li>\u0412\u0438\u0434\u0430\u043b\u044f\u0454 \u0432\u0441\u0456 \u0442\u0435\u0433\u0438<\/li>\n<li>\u0412\u0438\u0434\u0430\u043b\u0456\u0442\u044c \u0440\u043e\u0437\u0440\u0438\u0432\u0438 \u0440\u044f\u0434\u043a\u0456\u0432, \u0432\u043a\u043b\u0430\u0434\u043a\u0438 \u0442\u0430 \u0437\u0430\u0439\u0432\u0438\u0439 \u043f\u0440\u043e\u0431\u0456\u043b<\/li>\n<li>\u0421\u043c\u0443\u0436\u043a\u043e\u0432\u0456 \u043e\u043a\u0442\u0435\u0442\u0438<\/li>\n<\/ul>\n<p><a href=\"https:\/\/codex.wordpress.org\/Function_Reference\/wp_unslash\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external\"><\/a>\u041c\u0435\u0442\u043e\u0434 <a href=\"https:\/\/codex.wordpress.org\/Function_Reference\/wp_unslash\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">wp_unsplash<\/a> \u0432\u0438\u0434\u0430\u043b\u044f\u0454 \u0441\u043a\u0456\u0441\u043d\u0456 \u0440\u0438\u0441\u043a\u0438 \u0437 \u0440\u044f\u0434\u043a\u0430 \u0430\u0431\u043e \u043c\u0430\u0441\u0438\u0432\u0443 \u0440\u044f\u0434\u043a\u0456\u0432.<\/p>\n<p>\u0421\u043a\u0430\u0437\u0430\u0432\u0448\u0438 \u0446\u0435, \u043d\u0430\u0448 \u043f\u043e\u043f\u0435\u0440\u0435\u0434\u043d\u0456\u0439 \u043a\u043e\u0434 \u043f\u043e\u0432\u0438\u043d\u0435\u043d \u0441\u043f\u043e\u0434\u043e\u0431\u0430\u0442\u0438\u0441\u044f \u043d\u0438\u0436\u0447\u0435.<\/p>\n<pre><code>&lt;?php\nif (! isset( $_POST['signup_form_nonce']) ||! wp_verify_nonce( sanitize_text_field( wp_unslash( $_POST['signup_form_nonce']) ), 'signup_nonce')) {\n\u00a0\n\u00a0\u00a0\u00a0print 'Sorry, your nonce did not verify.';\n\u00a0\u00a0\u00a0exit;\n\u00a0\n} else {\n\u00a0\n\u00a0\u00a0\u00a0\/\/ process form data\n}\n?&gt;<\/code><\/pre>\n<p>\u0426\u0435 \u043e\u0434\u0438\u043d \u0456\u0437 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u0456\u0432. \u0404 \u0449\u0435 \u043a\u0456\u043b\u044c\u043a\u0430 \u043f\u043e\u043c\u0438\u043b\u043e\u043a, \u044f\u043a\u0456 \u043c\u0438 \u0440\u043e\u0431\u0438\u043c\u043e \u0432 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0443\u0432\u0430\u043d\u043d\u0456 WordPress.<\/p>\n<h3>\u0412\u0441\u0442\u0430\u043d\u043e\u0432\u0456\u0442\u044c \u0431\u0456\u0431\u043b\u0456\u043e\u0442\u0435\u043a\u0443 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0456\u0432 \u043a\u043e\u0434\u0443\u0432\u0430\u043d\u043d\u044f WordPress<\/h3>\n<p><a href=\"https:\/\/github.com\/WordPress-Coding-Standards\/WordPress-Coding-Standards\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">\u0426\u044f \u0431\u0456\u0431\u043b\u0456\u043e\u0442\u0435\u043a\u0430<\/a> \u0434\u043e\u043f\u043e\u043c\u043e\u0436\u0435 \u043d\u0430\u043c \u0432\u0434\u043e\u0441\u043a\u043e\u043d\u0430\u043b\u0438\u0442\u0438 \u043d\u0430\u0448\u0456 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0438 \u043a\u043e\u0434\u0443\u0432\u0430\u043d\u043d\u044f \u0432 \u0440\u043e\u0437\u0440\u043e\u0431\u0446\u0456 WordPress \u0456 \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438 \u043d\u0430\u0441 \u044f\u043a \u043a\u0440\u0430\u0449\u043e\u0433\u043e \u0440\u043e\u0437\u0440\u043e\u0431\u043d\u0438\u043a\u0430 WordPress.<\/p>\n<p>\u0429\u043e\u0431 \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0438 \u0446\u044e \u0431\u0456\u0431\u043b\u0456\u043e\u0442\u0435\u043a\u0443, \u0432\u0456\u0434\u043a\u0440\u0438\u0439\u0442\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u0438\u0439 \u0440\u044f\u0434\u043e\u043a \u0443 \u043a\u043e\u0440\u0435\u043d\u0435\u0432\u043e\u043c\u0443 \u043a\u0430\u0442\u0430\u043b\u043e\u0437\u0456 \u043f\u0440\u043e\u0435\u043a\u0442\u0443 \u0442\u0430 \u0437\u0430\u043f\u0443\u0441\u0442\u0456\u0442\u044c \u043d\u0430\u0432\u0435\u0434\u0435\u043d\u0443 \u043d\u0438\u0436\u0447\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u0443.<\/p>\n<p><code>composer create-project wp-coding-standards\/wpcs --no-dev<\/code><\/p>\n<p><strong>\u041f\u0440\u0438\u043c\u0456\u0442\u043a\u0430:<\/strong> \u0414\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0443 \u043d\u0430\u0432\u0435\u0434\u0435\u043d\u043e\u0457 \u0432\u0438\u0449\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u0438 \u0443 \u0432\u0430\u0448\u0456\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0456 \u043f\u043e\u0432\u0438\u043d\u0435\u043d \u0431\u0443\u0442\u0438 \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439 <a href=\"https:\/\/getcomposer.org\/\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">\u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0442\u043e\u0440<\/a>.<\/p>\n<p>\u041f\u0456\u0441\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u0438 \u0432\u043e\u043d\u0430 \u0441\u0442\u0432\u043e\u0440\u0438\u0442\u044c \u043f\u0430\u043f\u043a\u0443 \u0437 \u043d\u0430\u0437\u0432\u043e\u044e &#8216;wpcs&#8217; \u0443 \u0432\u0430\u0448\u043e\u043c\u0443 \u043a\u043e\u0440\u0435\u043d\u0435\u0432\u043e\u043c\u0443 \u043a\u0430\u0442\u0430\u043b\u043e\u0437\u0456 \u043f\u0440\u043e\u0435\u043a\u0442\u0443.<\/p>\n<p>\u041c\u0438 \u043f\u0440\u0438\u043f\u0443\u0441\u043a\u0430\u0454\u043c\u043e, \u0449\u043e \u0432\u0438 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043b\u0438 \u043d\u0430\u0448\u0443 \u0441\u0442\u0430\u0442\u0442\u044e \u043f\u0440\u043e <a href=\"https:\/\/themewp.inform.click\/uk\/php_codesniffer-biblioteka-dlja-vdoskonalennja-vashih-standartiv-koduvannja-php\/\" title=\"\u0432\u0434\u043e\u0441\u043a\u043e\u043d\u0430\u043b\u0435\u043d\u043d\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0456\u0432 \u043a\u043e\u0434\u0443\u0432\u0430\u043d\u043d\u044f PHP,\">\u0432\u0434\u043e\u0441\u043a\u043e\u043d\u0430\u043b\u0435\u043d\u043d\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0456\u0432 \u043a\u043e\u0434\u0443\u0432\u0430\u043d\u043d\u044f PHP,<\/a> \u0456 \u0432\u0438 \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 \u0431\u0456\u0431\u043b\u0456\u043e\u0442\u0435\u043a\u0443 PHP_CodeSniffer \u0432\u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0456 \u043f\u0430\u043f\u043a\u0438 &#8216;php_codesniffer&#8217; \u0432 \u043a\u043e\u0440\u0435\u043d\u0435\u0432\u043e\u043c\u0443 \u043a\u0430\u0442\u0430\u043b\u043e\u0437\u0456 \u043f\u0440\u043e\u0435\u043a\u0442\u0443.<\/p>\n<p>\u0414\u0430\u043b\u0456 \u043d\u0430\u043c \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0437\u0430\u0440\u0435\u0454\u0441\u0442\u0440\u0443\u0432\u0430\u0442\u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0438 WordPress \u0443 \u043a\u043e\u043d\u0444\u0456\u0433\u0443\u0440\u0430\u0446\u0456\u0457 PHP_CodeSniffer. \u0412\u0456\u0434\u043a\u0440\u0438\u0439\u0442\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u0438\u0439 \u0440\u044f\u0434\u043e\u043a \u0443 \u0440\u043e\u0437\u0434\u0456\u043b\u0456 &#8216;php_codesniffer \/ vendor \/ bin&#8217; \u0456 \u0437\u0430\u043f\u0443\u0441\u0442\u0456\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u043d\u0438\u0436\u0447\u0435.<\/p>\n<p><code>phpcs --config-set installed_paths \/path\/to\/wpcs<\/code><\/p>\n<p>\u0417\u0430\u043c\u0456\u043d\u0456\u0442\u044c &#8216;\/ path \/ to \/ wpcs&#8217; \u0432\u0430\u0448\u0438\u043c \u0448\u043b\u044f\u0445\u043e\u043c. \u0423 \u043d\u0430\u0448\u043e\u043c\u0443 \u0432\u0438\u043f\u0430\u0434\u043a\u0443 \u043d\u0430 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0456 Windows \u043c\u0438 \u043f\u0438\u0448\u0435\u043c\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0438\u043c \u0447\u0438\u043d\u043e\u043c.<\/p>\n<p><code>phpcs --config-set installed_paths D:wampwwwwp1wpcs<\/code><\/p>\n<h3>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0437&#8217;\u044f\u0441\u0443\u0454\u043c\u043e \u043d\u0430\u0448\u0456 \u043f\u043e\u043c\u0438\u043b\u043a\u0438 \u0442\u0430 \u0432\u0434\u043e\u0441\u043a\u043e\u043d\u0430\u043b\u0438\u043c\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0438 \u043a\u043e\u0434\u0443\u0432\u0430\u043d\u043d\u044f WordPress<\/h3>\n<p>\u041c\u0438 \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 \u0437 \u043d\u0430\u0448\u043e\u044e \u0431\u0456\u0431\u043b\u0456\u043e\u0442\u0435\u043a\u043e\u044e. \u0422\u0435\u043f\u0435\u0440 \u043d\u0430\u0441\u0442\u0430\u0432 \u0447\u0430\u0441 \u0437\u043d\u0430\u0439\u0442\u0438 \u0441\u0432\u043e\u0457 \u043f\u043e\u043c\u0438\u043b\u043a\u0438 \u0442\u0430 \u0443\u043d\u0438\u043a\u043d\u0443\u0442\u0438 \u0457\u0445 \u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u0443.<\/p>\n<p>\u0421\u043a\u0430\u0436\u0456\u043c\u043e, \u043c\u0438 \u0441\u0442\u0432\u043e\u0440\u0438\u043b\u0438 \u043f\u043b\u0430\u0433\u0456\u043d &#8216;test-plugin&#8217; \u0456 \u043c\u0438 \u043f\u043e\u0432\u0438\u043d\u043d\u0456 \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438 \u0444\u0430\u0439\u043b \u043f\u0456\u0434 \u043d\u0430\u0437\u0432\u043e\u044e &#8216;core.php&#8217;.<\/p>\n<p>\u0412\u0456\u0434\u043a\u0440\u0438\u0439\u0442\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u0438\u0439 \u0440\u044f\u0434\u043e\u043a \u0443 \u043a\u0430\u0442\u0430\u043b\u043e\u0437\u0456 &#8216;wpcs \/ vendor \/ bin&#8217; \u0456 \u0437\u0430\u043f\u0443\u0441\u0442\u0456\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u043d\u0438\u0436\u0447\u0435.<\/p>\n<p><code>phpcs --standard=WordPress D:wampwwwwp1wp-contentpluginstest-plugincore.php<\/code><\/p>\n<p>\u041f\u0456\u0441\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u0438 \u0432\u0438 \u043e\u0442\u0440\u0438\u043c\u0430\u0454\u0442\u0435 \u0437\u0430\u043f\u0438\u0442 \u043f\u0440\u043e \u043f\u043e\u043c\u0438\u043b\u043a\u0438 \u0442\u0430 \u043f\u043e\u043f\u0435\u0440\u0435\u0434\u0436\u0435\u043d\u043d\u044f. \u0423\u0441\u0456 \u0446\u0456 \u043f\u043e\u043c\u0438\u043b\u043a\u0438 \u0442\u0430 \u043f\u043e\u043f\u0435\u0440\u0435\u0434\u0436\u0435\u043d\u043d\u044f \u0432\u0438\u0434\u043d\u043e, \u043e\u0441\u043a\u0456\u043b\u044c\u043a\u0438 \u043c\u0438 \u043d\u0435 \u0434\u043e\u0442\u0440\u0438\u043c\u0443\u0432\u0430\u043b\u0438\u0441\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u0438\u0445 \u043f\u0440\u0430\u043a\u0442\u0438\u043a \u043a\u043e\u0434\u0443\u0432\u0430\u043d\u043d\u044f \u0434\u043b\u044f \u0440\u043e\u0437\u0440\u043e\u0431\u043a\u0438 WordPress.<\/p>\n<p>\u0425\u043e\u0440\u043e\u0448\u0430 \u0447\u0430\u0441\u0442\u0438\u043d\u0430 \u043f\u043e\u043b\u044f\u0433\u0430\u0454 \u0432 \u0442\u043e\u043c\u0443, \u0449\u043e \u043c\u0438 \u043e\u0442\u0440\u0438\u043c\u0443\u0454\u043c\u043e \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u0438\u0439 \u0437\u0432\u0456\u0442 \u043f\u0440\u043e \u043d\u043e\u043c\u0435\u0440\u0438 \u0440\u044f\u0434\u043a\u0456\u0432 \u0442\u0430 \u0441\u043f\u043e\u0441\u043e\u0431\u0438 \u0432\u0438\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044f \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0457 \u043f\u043e\u043c\u0438\u043b\u043a\u0438. \u041d\u0430\u043c \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0432\u0438\u0432\u0447\u0438\u0442\u0438 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0456\u0457 \u0442\u0430 \u0432\u0438\u043f\u0440\u0430\u0432\u0438\u0442\u0438 \u043f\u043e\u043c\u0438\u043b\u043a\u0438 \u043f\u043e \u0447\u0435\u0440\u0437\u0456.<\/p>\n<p><code>phpcbf<\/code> \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0442\u0430\u043a\u043e\u0436 \u043c\u043e\u0436\u0435 \u0432\u0438\u043f\u0440\u0430\u0432\u0438\u0442\u0438 \u0434\u0435\u044f\u043a\u0456 \u043d\u0435\u0437\u043d\u0430\u0447\u043d\u0456 \u043f\u043e\u043c\u0438\u043b\u043a\u0438, \u0442\u0430\u043a\u0456 \u044f\u043a \u0432\u0456\u0434\u0441\u0442\u0443\u043f, \u043f\u0440\u043e\u0431\u0456\u043b\u0438 \u0442\u043e\u0449\u043e.<\/p>\n<p><code>phpcbf --standard=WordPress D:wampwwwwp1wp-contentpluginstest-plugincore.php<\/code><\/p>\n<p>\u041c\u0438 \u0441\u043f\u043e\u0434\u0456\u0432\u0430\u0454\u043c\u043e\u0441\u044c, \u0432\u0438 \u0440\u043e\u0437\u0443\u043c\u0456\u0454\u0442\u0435, \u044f\u043a \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0431\u0456\u0431\u043b\u0456\u043e\u0442\u0435\u043a\u0443 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0456\u0432 \u043a\u043e\u0434\u0443\u0432\u0430\u043d\u043d\u044f WordPress \u0434\u043b\u044f \u0432\u0434\u043e\u0441\u043a\u043e\u043d\u0430\u043b\u0435\u043d\u043d\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0456\u0432 \u043a\u043e\u0434\u0443\u0432\u0430\u043d\u043d\u044f WordPress. \u042f\u043a\u0449\u043e \u0443 \u0432\u0430\u0441 \u0454 \u044f\u043a\u0456\u0441\u044c \u0437\u0430\u043f\u0438\u0442\u0430\u043d\u043d\u044f \u0447\u0438 \u043f\u0440\u043e\u043f\u043e\u0437\u0438\u0446\u0456\u0457, \u0437\u0430\u043b\u0438\u0448\u0442\u0435 \u043a\u043e\u043c\u0435\u043d\u0442\u0430\u0440 \u043d\u0438\u0436\u0447\u0435.<\/p>\n<p><div id=\"PostUnique_PostSource\" style=\"padding-top: 50px\">\u0414\u0436\u0435\u0440\u0435\u043b\u043e \u0437\u0430\u043f\u0438\u0441\u0443: artisansweb.net<\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0425\u043e\u0447\u0435\u0442\u0435 \u0432\u0434\u043e\u0441\u043a\u043e\u043d\u0430\u043b\u0438\u0442\u0438 \u0441\u0432\u043e\u0457 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0438 \u043a\u043e\u0434\u0443\u0432\u0430\u043d\u043d\u044f WordPress? \u0423 \u0446\u0456\u0439 \u0441\u0442\u0430\u0442\u0442\u0456 \u043c\u0438 \u043f\u043e\u043a\u0430\u0436\u0435\u043c\u043e \u0432\u0430\u043c, \u044f\u043a \u0432\u0438\u044f\u0432\u0438\u0442\u0438 \u043f\u043e\u043c\u0438\u043b\u043a\u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0456\u0432 \u043a\u043e\u0434\u0443\u0432\u0430\u043d\u043d\u044f \u0432 \u043d\u0430\u0448\u043e\u043c\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0443\u0432\u0430\u043d\u043d\u0456 WordPress \u0442\u0430<\/p>\n","protected":false},"author":1,"featured_media":21633,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_wp_rev_ctl_limit":""},"categories":[419,1],"tags":[851],"class_list":["post-26765","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-rizne","category-bez-kategorii","tag-affiai-uk"],"_links":{"self":[{"href":"https:\/\/themewp.inform.click\/uk\/wp-json\/wp\/v2\/posts\/26765","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/themewp.inform.click\/uk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/themewp.inform.click\/uk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/themewp.inform.click\/uk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/themewp.inform.click\/uk\/wp-json\/wp\/v2\/comments?post=26765"}],"version-history":[{"count":1,"href":"https:\/\/themewp.inform.click\/uk\/wp-json\/wp\/v2\/posts\/26765\/revisions"}],"predecessor-version":[{"id":513236,"href":"https:\/\/themewp.inform.click\/uk\/wp-json\/wp\/v2\/posts\/26765\/revisions\/513236"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/themewp.inform.click\/uk\/wp-json\/wp\/v2\/media\/21633"}],"wp:attachment":[{"href":"https:\/\/themewp.inform.click\/uk\/wp-json\/wp\/v2\/media?parent=26765"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/themewp.inform.click\/uk\/wp-json\/wp\/v2\/categories?post=26765"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/themewp.inform.click\/uk\/wp-json\/wp\/v2\/tags?post=26765"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}