/home/fortodpl/hairandtattoo.com/wp-content/plugins/wordpress-seo/admin
NameSizeModeActions
ajax/-0755rm
capabilities/-0755rm
endpoints/-0755rm
exceptions/-0755rm
filters/-0755rm
formatter/-0755rm
google_search_console/-0755rm
import/-0755rm
listeners/-0755rm
menu/-0755rm
metabox/-0755rm
notifiers/-0755rm
pages/-0755rm
roles/-0755rm
services/-0755rm
statistics/-0755rm
taxonomy/-0755rm
tracking/-0755rm
views/-0755rm
watchers/-0755rm
admin-settings-changed-listener.php24450644editdlrm
ajax.php120250644editdlrm
class-admin-asset-analysis-worker-location.php18500644editdlrm
class-admin-asset-dev-server-location.php16440644editdlrm
class-admin-asset-location.php4880644editdlrm
class-admin-asset-manager.php214560644editdlrm
class-admin-asset-seo-location.php21260644editdlrm
class-admin-editor-specific-replace-vars.php64990644editdlrm
class-admin-gutenberg-compatibility-notification.php26120644editdlrm
class-admin-help-panel.php27620644editdlrm
class-admin-init.php109740644editdlrm
class-admin-recommended-replace-vars.php61280644editdlrm
class-admin-user-profile.php31310644editdlrm
class-admin-utils.php22010644editdlrm
class-admin.php130360644editdlrm
class-asset.php44050644editdlrm
class-bulk-description-editor-list-table.php21960644editdlrm
class-bulk-editor-list-table.php302420644editdlrm
class-bulk-title-editor-list-table.php23820644editdlrm
class-collector.php10050644editdlrm
class-config.php49470644editdlrm
class-database-proxy.php76880644editdlrm
class-export.php35450644editdlrm
class-expose-shortlinks.php72550644editdlrm
class-gutenberg-compatibility.php25290644editdlrm
class-meta-columns.php279590644editdlrm
class-my-yoast-proxy.php62870644editdlrm
class-option-tab.php22680644editdlrm
class-option-tabs-formatter.php29060644editdlrm
class-option-tabs.php23110644editdlrm
class-paper-presenter.php36000644editdlrm
class-plugin-availability.php103060644editdlrm
class-plugin-conflict.php41410644editdlrm
class-premium-popup.php28750644editdlrm
class-premium-upsell-admin-block.php80200644editdlrm
class-primary-term-admin.php74940644editdlrm
class-product-upsell-notice.php58920644editdlrm
class-remote-request.php32030644editdlrm
class-schema-person-upgrade-notification.php22860644editdlrm
class-suggested-plugins.php44320644editdlrm
class-wincher-dashboard-widget.php36160644editdlrm
class-yoast-columns.php36060644editdlrm
class-yoast-dashboard-widget.php40220644editdlrm
class-yoast-form.php365840644editdlrm
class-yoast-input-validation.php73780644editdlrm
class-yoast-network-admin.php102110644editdlrm
class-yoast-network-settings-api.php42420644editdlrm
class-yoast-notification-center.php266480644editdlrm
class-yoast-notification.php103400644editdlrm
class-yoast-notifications.php78130644editdlrm
class-yoast-plugin-conflict.php105350644editdlrm
index.php380644editdlrm
interface-collection.php2570644editdlrm
interface-installable.php2540644editdlrm
Edit: /home/fortodpl/hairandtattoo.com/wp-content/plugins/wordpress-seo/admin/class-database-proxy.php (7688B)
table_name = $table_name; $this->suppress_errors = (bool) $suppress_errors; $this->is_multisite_table = (bool) $is_multisite_table; $this->database = $database; // If the table prefix was provided, strip it as it's handled automatically. $table_prefix = $this->get_table_prefix(); if ( ! empty( $table_prefix ) && strpos( $this->table_name, $table_prefix ) === 0 ) { $this->table_prefix = substr( $this->table_name, strlen( $table_prefix ) ); } if ( ! $this->is_table_registered() ) { $this->register_table(); } } /** * Inserts data into the database. * * @param array $data Data to insert. * @param array|string|null $format Formats for the data. * * @return int|false Total amount of inserted rows or false on error. */ public function insert( array $data, $format = null ) { $this->pre_execution(); $result = $this->database->insert( $this->get_table_name(), $data, $format ); $this->post_execution(); return $result; } /** * Updates data in the database. * * @param array $data Data to update on the table. * @param array $where Where condition as key => value array. * @param array|string|null $format Optional. Data prepare format. * @param array|string|null $where_format Optional. Where prepare format. * * @return int|false False when the update request is invalid, int on number of rows changed. */ public function update( array $data, array $where, $format = null, $where_format = null ) { $this->pre_execution(); $result = $this->database->update( $this->get_table_name(), $data, $where, $format, $where_format ); $this->post_execution(); return $result; } /** * Upserts data in the database. * * Performs an insert into and if key is duplicate it will update the existing record. * * @param array $data Data to update on the table. * @param array|null $where Unused. Where condition as key => value array. * @param array|string|null $format Optional. Data prepare format. * @param array|string|null $where_format Optional. Where prepare format. * * @return int|false False when the upsert request is invalid, int on number of rows changed. */ public function upsert( array $data, ?array $where = null, $format = null, $where_format = null ) { if ( $where_format !== null ) { _deprecated_argument( __METHOD__, '7.7.0', 'The where_format argument is deprecated' ); } $this->pre_execution(); $update = []; $keys = []; $columns = array_keys( $data ); foreach ( $columns as $column ) { $keys[] = '`' . $column . '`'; $update[] = sprintf( '`%1$s` = VALUES(`%1$s`)', $column ); } $query = sprintf( 'INSERT INTO `%1$s` (%2$s) VALUES ( %3$s ) ON DUPLICATE KEY UPDATE %4$s', $this->get_table_name(), implode( ', ', $keys ), implode( ', ', array_fill( 0, count( $data ), '%s' ) ), implode( ', ', $update ), ); $result = $this->database->query( $this->database->prepare( $query, array_values( $data ), ), ); $this->post_execution(); return $result; } /** * Deletes a record from the database. * * @param array $where Where clauses for the query. * @param array|string|null $format Formats for the data. * * @return int|false */ public function delete( array $where, $format = null ) { $this->pre_execution(); $result = $this->database->delete( $this->get_table_name(), $where, $format ); $this->post_execution(); return $result; } /** * Executes the given query and returns the results. * * @param string $query The query to execute. * * @return array|object|null The resultset */ public function get_results( $query ) { $this->pre_execution(); $results = $this->database->get_results( $query ); $this->post_execution(); return $results; } /** * Creates a table to the database. * * @param array $columns The columns to create. * @param array $indexes The indexes to use. * * @return bool True when creation is successful. */ public function create_table( array $columns, array $indexes = [] ) { $create_table = sprintf( 'CREATE TABLE IF NOT EXISTS %1$s ( %2$s ) %3$s', $this->get_table_name(), implode( ',', array_merge( $columns, $indexes ) ), $this->database->get_charset_collate(), ); $this->pre_execution(); $is_created = (bool) $this->database->query( $create_table ); $this->post_execution(); return $is_created; } /** * Checks if there is an error. * * @return bool Returns true when there is an error. */ public function has_error() { return ( $this->database->last_error !== '' ); } /** * Executed before a query will be ran. * * @return void */ protected function pre_execution() { if ( $this->suppress_errors ) { $this->last_suppressed_state = $this->database->suppress_errors(); } } /** * Executed after a query has been ran. * * @return void */ protected function post_execution() { if ( $this->suppress_errors ) { $this->database->suppress_errors( $this->last_suppressed_state ); } } /** * Returns the full table name. * * @return string Full table name including prefix. */ public function get_table_name() { return $this->get_table_prefix() . $this->table_name; } /** * Returns the prefix to use for the table. * * @return string The table prefix depending on the database context. */ protected function get_table_prefix() { if ( $this->is_multisite_table ) { return $this->database->base_prefix; } return $this->database->get_blog_prefix(); } /** * Registers the table with WordPress. * * @return void */ protected function register_table() { $table_name = $this->table_name; $full_table_name = $this->get_table_name(); $this->database->$table_name = $full_table_name; if ( $this->is_multisite_table ) { $this->database->ms_global_tables[] = $table_name; return; } $this->database->tables[] = $table_name; } /** * Checks if the table has been registered with WordPress. * * @return bool True if the table is registered, false otherwise. */ protected function is_table_registered() { if ( $this->is_multisite_table ) { return in_array( $this->table_name, $this->database->ms_global_tables, true ); } return in_array( $this->table_name, $this->database->tables, true ); } }