2025-06-12
- sauvegarde les changements en vrac avant de tester les modifications demandées par Manon
This commit is contained in:
parent
5c53e17225
commit
e0e7bf18f2
15 changed files with 767 additions and 424 deletions
|
|
@ -4,7 +4,7 @@ namespace Carbon_Fields;
|
|||
|
||||
# Define version constant
|
||||
if ( ! defined( __NAMESPACE__ . '\VERSION' ) ) {
|
||||
define( __NAMESPACE__ . '\VERSION', '3.6.6' );
|
||||
define( __NAMESPACE__ . '\VERSION', '3.6.9' );
|
||||
}
|
||||
|
||||
# Define root directory
|
||||
|
|
|
|||
|
|
@ -449,9 +449,7 @@ class Block_Container extends Container {
|
|||
unset($attributes['data']);
|
||||
ob_start();
|
||||
call_user_func( $this->render_callback , $fields, $attributes, $content, $post_id, $block );
|
||||
$toReturn = ob_get_contents();
|
||||
ob_clean();
|
||||
return $toReturn;
|
||||
return ob_get_clean();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -100,11 +100,14 @@ class Meta_Query_Service extends Service {
|
|||
}
|
||||
|
||||
public function filter_get_meta_sql( $sql ) {
|
||||
if ( strpos( $sql['where'], static::META_KEY_PREFIX ) !== false ) {
|
||||
$sql['where'] = preg_replace( $this->get_meta_key_replace_regex(), '$1 LIKE $2', $sql['where'] );
|
||||
}
|
||||
return $sql;
|
||||
}
|
||||
if ( strpos( $sql['where'], static::META_KEY_PREFIX ) !== false ) {
|
||||
$sql['where'] = preg_replace( $this->get_meta_key_replace_regex(), '$1 LIKE $2', $sql['where'] );
|
||||
}
|
||||
if ( strpos( $sql['join'], static::META_KEY_PREFIX ) !== false ) {
|
||||
$sql['join'] = str_replace( static::META_KEY_PREFIX, '', $sql['join'] );
|
||||
}
|
||||
return $sql;
|
||||
}
|
||||
|
||||
/**************************************************
|
||||
* WP_QUERY *
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "carbon-fields",
|
||||
"version": "3.6.6",
|
||||
"version": "3.6.9",
|
||||
"description": "WordPress developer-friendly custom fields for post types, taxonomy terms, users, comments, widgets, options, navigation menus and more.",
|
||||
"directories": {
|
||||
"test": "tests"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue