{"id":5918,"date":"2010-08-04T22:14:42","date_gmt":"2010-08-04T22:14:42","guid":{"rendered":"https:\/\/br.wordpress.org\/support\/topic\/notificacao-de-falha-do-wordpress\/"},"modified":"2016-08-06T01:09:31","modified_gmt":"2016-08-06T01:09:31","slug":"notificacao-de-falha-do-wordpress","status":"closed","type":"topic","link":"https:\/\/br.wordpress.org\/support\/topic\/notificacao-de-falha-do-wordpress\/","title":{"rendered":"&quot;Notifica\u00e7\u00e3o de falha do WordPress&quot;"},"content":{"rendered":"<p>Ol\u00e1, <\/p>\n<p>Eu estou criando um portal em WordPress e coloquei uma box personalizada para o usu\u00e1rio se logar.<\/p>\n<p>Segue o c\u00f3digo abaixo<\/p>\n<pre><code>&lt;?php\n\t\t\t\t  global $user_ID, $user_identity;\n\t\t\t\t  get_currentuserinfo();\n\t\t\t\t  if (!$user_ID):\n\t\t\t\t?&gt;\n\t\t\t\t  \t&lt;form name=&quot;loginform&quot; id=&quot;loginform&quot; action=&quot;&lt;?php echo get_settings(&#039;siteurl&#039;); ?&gt;\/wp-login.php&quot; method=&quot;post&quot;&gt;\n\t\t\t\t\t&lt;div&gt;\n\t\t\t\t\t\t&lt;label&gt;\n\t\t\t\t\t\t\t&lt;div class=&quot;login-item&quot;&gt;\n\t\t\t\t\t\t\t&lt;span class=&quot;login-senha&quot;&gt;&lt;?php _e(&#039;Login&#039;) ?&gt;:&lt;\/span&gt;\n\t\t\t\t\t\t\t&lt;input class=&quot;login&quot; type=&quot;text&quot; name=&quot;log&quot; id=&quot;log&quot; value=&quot;&quot; size=&quot;20&quot; tabindex=&quot;7&quot; \/&gt;\n\t\t\t\t\t\t\t&lt;\/div&gt;&lt;!-- end login-item --&gt;\n\t\t\t\t\t\t&lt;\/label&gt;\n\t\t\t\t\t\t&lt;br \/&gt;\n\n\t\t\t\t\t\t&lt;label&gt;\n\t\t\t\t\t\t\t&lt;div class=&quot;login-item&quot;&gt;\n\t\t\t\t\t\t\t&lt;span class=&quot;login-senha&quot;&gt;&lt;?php _e(&#039;Senha&#039;) ?&gt;:&lt;\/span&gt;\n\t\t\t\t\t\t\t&lt;input class=&quot;senha&quot; type=&quot;password&quot; name=&quot;pwd&quot; id=&quot;pwd&quot; value=&quot;&quot; size=&quot;20&quot; tabindex=&quot;8&quot; \/&gt;\n\t\t\t\t\t\t\t&lt;\/div&gt;&lt;!-- end login-item --&gt;\n\t\t\t\t\t\t&lt;\/label&gt;\n\t\t\t\t\t\t&lt;br \/&gt;\n\n\t\t\t\t\t\t&lt;label class=&quot;rememberme&quot;&gt;\n\t\t\t\t\t\t\t&lt;input type=&quot;checkbox&quot; name=&quot;rememberme&quot; value=&quot;forever&quot; tabindex=&quot;9&quot; \/&gt; &lt;?php _e(&quot;Lembrar-me&quot;); ?&gt;\n\t\t\t\t\t\t&lt;\/label&gt;\n\t\t\t\t\t\t&lt;br \/&gt;\n\n\t\t\t\t\t\t&lt;div class=&quot;user&quot;&gt;\n\t\t\t\t\t\t\t&lt;?php wp_register(&#039;&#039;, &#039;&#039;); ?&gt;&lt;br \/&gt;\n\t\t\t\t\t\t\t&lt;a href=&quot;&lt;?php echo wp_lostpassword_url(); ?&gt;&quot; title=&quot;Esqueceu a senha?&quot;&gt;Esqueceu a sua senha?&lt;\/a&gt;\n\t\t\t\t\t\t&lt;\/div&gt;\n\n\t\t\t\t\t\t&lt;input class=&quot;submit&quot; type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;&lt;?php _e(&#039;Logar&#039;); ?&gt;&quot; tabindex=&quot;10&quot; \/&gt;\n\t\t\t\t\t\t&lt;input type=&quot;hidden&quot; name=&quot;redirect_to&quot; value=&quot;&lt;?php echo $_SERVER[&#039;REQUEST_URI&#039;]; ?&gt;&quot;\/&gt;\n\n\t\t\t\t\t&lt;\/div&gt;\n\t\t\t\t\t&lt;\/form&gt;\n\t\t\t\t&lt;?php else: ?&gt;\n\n\t\t\t\t&lt;div class=&quot;logado&quot;&gt;\n\t\t\t\t  &lt;span class=&quot;logado-como&quot;&gt;&lt;strong class=&quot;logado-como&quot;&gt;&lt;?php _e(&#039;Logado como&#039;) ?&gt;:&lt;\/strong&gt; &lt;?php echo $user_identity; ?&gt;&lt;\/span&gt;\n\t\t\t\t\t&lt;br&gt;\n\t\t\t\t\t&lt;span class=&quot;logado-como&quot;&gt;&lt;a href=&quot;&lt;?php echo get_option(&#039;home&#039;);?&gt;\/wp-admin\/&quot; title=&quot;Painel do Usu\u00e1rio&quot;&gt;Painel do Usu\u00e1rio&lt;\/a&gt;&lt;\/span&gt;\n\t\t\t\t\t&lt;br&gt;\n\t\t\t\t\t&lt;a href=&quot;&lt;?php echo get_settings(&#039;siteurl&#039;) . &#039;\/wp-login.php?action=logout&amp;redirect_to=&#039; . $_SERVER[&#039;REQUEST_URI&#039;]; ?&gt;&quot;&gt;&lt;input class=&quot;submit&quot; type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;&lt;?php _e(&#039;Logout&#039;); ?&gt;&quot; tabindex=&quot;10&quot; \/&gt;&lt;\/a&gt;\n\n\t\t\t\t&lt;\/div&gt;&lt;!-- end login-item --&gt;\n\t\t\t\t&lt;?php endif; ?&gt;<\/code><\/pre>\n<p>Para logar \u00e9 uma beleza, n\u00e3o da problema nenhum, mas na hora de deslogar acontece que ele passa por uma p\u00e1gina que diz isso:<\/p>\n<pre><code>voc\u00ea est\u00e1 tentando fazer o logout de Nosso Sport\n\nVoc\u00ea quer mesmo desconectar?<\/code><\/pre>\n<p>que tem por t\u00edtulo &#8216;Notifica\u00e7\u00e3o de Falha do WordPress&#8217;.<\/p>\n<p>Eu gostaria de tirar isso e que quando o bot\u00e3o de deslogar fosse acionado fosse deslogado automaticamente, e n\u00e3o passando por essa p\u00e1gina.<\/p>\n<p>Algu\u00e9m sabe como fazer?<\/p>\n","protected":false},"template":"","class_list":["post-5918","topic","type-topic","status-closed","hentry","topic-tag-falha","topic-tag-login","topic-tag-notificacao","topic-tag-portal","topic-tag-registro","topic-tag-senha"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5918","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5918\/revisions"}],"wp:attachment":[{"href":"https:\/\/br.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5918"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}