Esse exemplo mostra todos os arquivos alterados nos últimos dois dias, sem repetir:
git log --pretty=format: --name-only --since="2 days ago" | sort | uniq
function lower_wpseo_priority( $html ) | |
{ | |
return 'low'; | |
} | |
add_filter( 'wpseo_metabox_prio', 'lower_wpseo_priority' ); |
DELETE pm | |
FROM wp_postmeta pm | |
LEFT JOIN wp_posts wp ON wp.ID = pm.post_id | |
WHERE wp.ID IS NULL |
<?php | |
/** | |
* Get all terms of $tax_to taxonomy that posts in $term_from of $tax_from have. | |
* | |
* @param string $tax_from taxonomy name | |
* @param string $term_from term slug | |
* @param string $tax_to taxonomy name | |
* |
ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/sublime |
<?php | |
/* | |
* This scripts changes all occurrences of a URL in your WordPress database. | |
* | |
* It will compare the $newUrl against the URL saved on you wp_options table (site_url), or in the domain column of the wp_sites table for a Multi Site installation. | |
* | |
* It will handle serialized data and Objects stored in the database. | |
* | |
* | |
*/ |
{if $smarty.server.QUERY_STRING == "dispatch=products.view&product_id=301&stg"} | |
{foreach from=$navigation.tabs item=tab key=key name=tabs} | |
{if ((!$tabs_section && !$tab.section) || ($tabs_section == $tab.section)) && !$key|in_array:$empty_tab_ids} | |
{if !$active_tab} | |
{assign var="active_tab" value=$key} | |
{/if} | |
<div class="tabs clear cm-j-tabs"> | |
<ul {if $tabs_section}id="tabs_{$tabs_section}"{/if}> | |
<li id="{$key}" class="{if $tab.js}cm-js{elseif $tab.ajax}cm-js cm-ajax{/if}{if $key == $active_tab} cm-active{/if}"><a{if $tab.href} href="{$tab.href|fn_url}"{/if}>{$tab.title}</a></li> |
window.onbeforeunload = function(e) { | |
return "Atençao, existe uma tarefa em execuçao"; | |
}; |
white-space: nowrap; | |
overflow: hidden; | |
text-overflow: ellipsis; |
// Change ids to int. | |
foreach ($clientes as $key => $value) { | |
$clientes[$key] = (int) $value; | |
} | |
$args = array( | |
'post_type' => 'clientes', | |
'post_status' => 'publish', |