Evolution #134
a few modifications to help with full taxonomy support
| Status: | Nouveau | Start: | 07/09/2010 | |
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | - | |||
| Target version: | - | |||
Description
voici quelque changement que j'ai apporter a ma version. P-e qu'il peuvent vous etre pratique: ....... le reste est pareil ......... le reste est pareil
function ajaxLocalTags( $format = 'html_span' ) {
status_header( 200 ); // Send good header HTTP
header("Content-Type: text/javascript; charset=" . get_bloginfo('charset'));
if ((int) wp_count_terms($this->taxonomy, 'ignore_empty=true') 0 ) { // No tags to suggest
if ( $format 'html_span' ) {
echo '<p>'.__('No terms in your WordPress database.', 'simpletags').'</p>';
}
exit();
}
// Prepare search
$search = trim(stripslashes($_GET['q']));
$terms = array();
$taxonomies=get_taxonomies(array('public' => true,'_builtin' => true),'names','or');
foreach ($taxonomies as $taxonomy ) {
$terms = array_merge($terms, $this->getTermsForAjax( $taxonomy, $search, $format ));
}
Merci