<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>WordPress Hacks &#187; WordPress 28</title> <atom:link href="http://wordpress-hacks.com/tag/wordpress-28/feed" rel="self" type="application/rss+xml" /><link>http://wordpress-hacks.com</link> <description>Tips y consejos de WordPress en español</description> <lastBuildDate>Fri, 23 Jul 2010 11:36:18 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <item><title>Eliminar meta name=&#8221;generator&#8221; content=&#8221;WordPress 2.8&#8243;</title><link>http://wordpress-hacks.com/eliminar-meta-name-generator-content-wordpress-2-8.php</link> <comments>http://wordpress-hacks.com/eliminar-meta-name-generator-content-wordpress-2-8.php#comments</comments> <pubDate>Wed, 17 Jun 2009 23:08:16 +0000</pubDate> <dc:creator>Neri Aispuro</dc:creator> <category><![CDATA[Hacks]]></category> <category><![CDATA[function get_the_generator]]></category> <category><![CDATA[WordPress 28]]></category><guid
isPermaLink="false">http://wordpress-hacks.com/?p=369</guid> <description><![CDATA[Los chicos de Automattic, en la versión 2.8 de WordPress, nos mandaron la etiqueta &#60;meta name=&#8221;generator&#8221; content=&#8221;WordPress 2.8&#8243; /&#62; junto con todo el paquete. La etiqueta es para estadísticas supuestamente y sacarla no está bien, pero pensándolo del lado que, si llega a salir alguna vulnerabilidad seguramente muchas nenas muchos kackers buscarían la versión de [...]]]></description> <content:encoded><![CDATA[<p>Los chicos de Automattic, en la versión 2.8 de WordPress, nos mandaron la etiqueta <strong>&lt;meta name=&#8221;generator&#8221; content=&#8221;WordPress 2.8&#8243; /&gt;</strong> junto con todo el paquete.</p><p><center><img
src="http://wordpress-hacks.com/wp-content/uploads/2009/06/meta-name-generator.png" alt="meta-name-generator" title="meta-name-generator" width="433" height="55" class="alignnone size-full wp-image-371" /></center></p><p>La etiqueta es <strong>para estadísticas</strong> supuestamente y sacarla <strong>no está bien</strong>, pero pensándolo del lado que, si llega a salir alguna vulnerabilidad seguramente <del
datetime="2009-06-17T22:52:41+00:00">muchas nenas</del> muchos kackers buscarían la versión de nuestro wp para jodernos, no está nada mal pensar en eliminarla.</p><p>Anteriormente, la llamada a la versión del wp que estábamos usando venía en el theme y se podía eliminar del theme y chau problema, pero ahora el equipo de Matt, nos las manda en el mismo Wp.</p><p>Bueno, ¿y como eliminarla?<br
/> Vamos al archivo <strong>general-template.php</strong> que se encuentra en /wp-includes.<br
/> En la linea 2021 del archivo general-template.php empieza este código:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
</pre></td><td
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> get_the_generator<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$type</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">switch</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$type</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'html'</span><span style="color: #339933;">:</span>
			<span style="color: #000088;">$gen</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;meta name=&quot;generator&quot; content=&quot;WordPress '</span> <span style="color: #339933;">.</span> get_bloginfo<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'version'</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot;&gt;'</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'xhtml'</span><span style="color: #339933;">:</span>
			<span style="color: #000088;">$gen</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;meta name=&quot;generator&quot; content=&quot;WordPress '</span> <span style="color: #339933;">.</span> get_bloginfo<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'version'</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot; /&gt;'</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'atom'</span><span style="color: #339933;">:</span>
			<span style="color: #000088;">$gen</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;generator uri=&quot;http://wordpress.org/&quot; version=&quot;'</span> <span style="color: #339933;">.</span> get_bloginfo_rss<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'version'</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot;&gt;WordPress&lt;/generator&gt;'</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'rss2'</span><span style="color: #339933;">:</span>
			<span style="color: #000088;">$gen</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;generator&gt;http://wordpress.org/?v='</span> <span style="color: #339933;">.</span> get_bloginfo_rss<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'version'</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;/generator&gt;'</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'rdf'</span><span style="color: #339933;">:</span>
			<span style="color: #000088;">$gen</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;admin:generatorAgent rdf:resource=&quot;http://wordpress.org/?v='</span> <span style="color: #339933;">.</span> get_bloginfo_rss<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'version'</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot; /&gt;'</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'comment'</span><span style="color: #339933;">:</span>
			<span style="color: #000088;">$gen</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;!-- generator=&quot;WordPress/'</span> <span style="color: #339933;">.</span> get_bloginfo<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'version'</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot; --&gt;'</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'export'</span><span style="color: #339933;">:</span>
			<span style="color: #000088;">$gen</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;!-- generator=&quot;WordPress/'</span> <span style="color: #339933;">.</span> get_bloginfo_rss<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'version'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot; created=&quot;'</span><span style="color: #339933;">.</span> <span style="color: #990000;">date</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Y-m-d H:i'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot;--&gt;'</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">return</span> apply_filters<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;get_the_generator_<span style="color: #006699; font-weight: bold;">{$type}</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$gen</span><span style="color: #339933;">,</span> <span style="color: #000088;">$type</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div><p>Nosotros vamos a eliminar de la línea 2024 hasta la 2028 inclusive. Debería quedar así la función:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
</pre></td><td
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> get_the_generator<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$type</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">switch</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$type</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'atom'</span><span style="color: #339933;">:</span>
			<span style="color: #000088;">$gen</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;generator uri=&quot;http://wordpress.org/&quot; version=&quot;'</span> <span style="color: #339933;">.</span> get_bloginfo_rss<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'version'</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot;&gt;WordPress&lt;/generator&gt;'</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'rss2'</span><span style="color: #339933;">:</span>
			<span style="color: #000088;">$gen</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;generator&gt;http://wordpress.org/?v='</span> <span style="color: #339933;">.</span> get_bloginfo_rss<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'version'</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;/generator&gt;'</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'export'</span><span style="color: #339933;">:</span>
			<span style="color: #000088;">$gen</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;!-- generator=&quot;WordPress/'</span> <span style="color: #339933;">.</span> get_bloginfo_rss<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'version'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot; created=&quot;'</span><span style="color: #339933;">.</span> <span style="color: #990000;">date</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Y-m-d H:i'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot;--&gt;'</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">return</span> apply_filters<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;get_the_generator_<span style="color: #006699; font-weight: bold;">{$type}</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$gen</span><span style="color: #339933;">,</span> <span style="color: #000088;">$type</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>]]></content:encoded> <wfw:commentRss>http://wordpress-hacks.com/eliminar-meta-name-generator-content-wordpress-2-8.php/feed</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Tags Descriptions en WordPress 2.8</title><link>http://wordpress-hacks.com/tags-descriptions-en-wordpress-28.php</link> <comments>http://wordpress-hacks.com/tags-descriptions-en-wordpress-28.php#comments</comments> <pubDate>Fri, 08 May 2009 11:59:04 +0000</pubDate> <dc:creator>Neri Aispuro</dc:creator> <category><![CDATA[WordPress]]></category> <category><![CDATA[Tags Descriptions]]></category> <category><![CDATA[WordPress 28]]></category><guid
isPermaLink="false">http://wordpress-hacks.com/?p=210</guid> <description><![CDATA[No suelo comentar noticias ni nada por el estilo porque no me gustan y me resulta cansador leer títulos como &#8220;WordPress bla bla traerá bla bla cosa&#8221;, pero esta noticia para mí no es una más, sino que algo que estuve esperando -y que se me ocurrió- hace mucho, se trata de las descripciones en [...]]]></description> <content:encoded><![CDATA[<p
style="text-align: center;"><img
class="size-full wp-image-212 aligncenter" title="WordPress" src="http://wordpress-hacks.com/wp-content/uploads/2009/05/wp1.jpg" alt="WordPress" width="490" height="200" /></p><p>No suelo comentar noticias ni nada por el estilo porque <strong>no me gustan</strong> y me resulta cansador leer títulos como &#8220;WordPress bla bla traerá bla bla cosa&#8221;, pero esta noticia para mí no es una más, sino que algo que estuve esperando -y que se me ocurrió- hace mucho, se trata de las <strong>descripciones en las Tags</strong> por defecto en Wp, algo como lo que Wp viene haciendo ya hace mucho con las categorías, eso es muy importante para el <a
title="WordPress SEO" href="http://wordpress-hacks.com/?s=Seo+en+WordPress">Seo en WordPress</a>, y mucho mas interesante resulta viniendo de las tags.<br
/> Se puede ver &#8220;un avance&#8221; <a
href="http://codex.wordpress.org/Template_Tags/tag_description">en el Codex</a>.</p><p>Vía &#8211; <a
href="http://justintadlock.com/archives/2009/04/30/tag-descriptions-in-wordpress-28">El blog de Justin</a><br
/> ¿Opiniones?</p> ]]></content:encoded> <wfw:commentRss>http://wordpress-hacks.com/tags-descriptions-en-wordpress-28.php/feed</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 5/11 queries in 0.008 seconds using disk

Served from: wordpress-hacks.com @ 2010-07-31 22:34:46 -->