Use jetpack autoloader and composer instead of namespace rewrite
This commit is contained in:
11
patches/berlindb-core-src-database-query-php.patch
Normal file
11
patches/berlindb-core-src-database-query-php.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- /dev/null
|
||||
+++ ../src/Database/Query.php
|
||||
@@ -2169,7 +2169,7 @@
|
||||
$caps = $this->get_column_field( array( 'name' => $key ), 'caps' );
|
||||
|
||||
// Unset if not explicitly allowed
|
||||
- if ( empty( $caps[ $method ] ) || ! current_user_can( $caps[ $method ] ) ) {
|
||||
+ if ( empty( $caps[ $method ] ) ) {
|
||||
if ( is_array( $item ) ) {
|
||||
unset( $item[ $key ] );
|
||||
} elseif ( is_object( $item ) ) {
|
Reference in New Issue
Block a user