PHP.DiscouragedPHPFunctions.obfuscation_base64_encode return base64_encode( $string ); } /** * Retrieve a row from the database based on a given row ID. * * @since 1.5.9 * * @param int $meta_id Meta ID. * * @return null|object * @noinspection PhpParameterNameChangedDuringInheritanceInspection */ public function get( $meta_id ) { $meta = parent::get( $meta_id ); if ( empty( $meta ) || empty( $meta->data ) ) { return $meta; } // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_decode $decoded = base64_decode( $meta->data ); if ( $decoded === false || ! is_string( $decoded ) ) { $meta->data = ''; } else { $meta->data = json_decode( $decoded, true ); } return $meta; } /** * Get meta ID by action name and params. * * @since 1.7.0 * * @param string $action Action name. * @param array $params Action params. * * @return int */ public function get_meta_id( $action, $params ) { global $wpdb; $table = self::get_table_name(); $action = sanitize_key( $action ); $data = $this->prepare_data( array_values( $params ) ); return absint( // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching $wpdb->get_var( $wpdb->prepare( "SELECT id FROM $table WHERE action = %s AND data = %s LIMIT 1", // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared $action, $data ) ) ); } } PHP.DiscouragedPHPFunctions.obfuscation_base64_encode return base64_encode( $string ); } /** * Retrieve a row from the database based on a given row ID. * * @since 1.5.9 * * @param int $meta_id Meta ID. * * @return null|object * @noinspection PhpParameterNameChangedDuringInheritanceInspection */ public function get( $meta_id ) { $meta = parent::get( $meta_id ); if ( empty( $meta ) || empty( $meta->data ) ) { return $meta; } // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_decode $decoded = base64_decode( $meta->data ); if ( $decoded === false || ! is_string( $decoded ) ) { $meta->data = ''; } else { $meta->data = json_decode( $decoded, true ); } return $meta; } /** * Get meta ID by action name and params. * * @since 1.7.0 * * @param string $action Action name. * @param array $params Action params. * * @return int */ public function get_meta_id( $action, $params ) { global $wpdb; $table = self::get_table_name(); $action = sanitize_key( $action ); $data = $this->prepare_data( array_values( $params ) ); return absint( // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching $wpdb->get_var( $wpdb->prepare( "SELECT id FROM $table WHERE action = %s AND data = %s LIMIT 1", // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared $action, $data ) ) ); } }
Fatal error: Uncaught Error: Class "WPForms\Tasks\Meta" not found in /htdocs/tapicarpro.com/wp-content/plugins/wpforms-lite/src/Tasks/Task.php:124 Stack trace: #0 /htdocs/tapicarpro.com/wp-content/plugins/wpforms-lite/src/Tasks/Actions/EntryEmailsMetaCleanupTask.php(29): WPForms\Tasks\Task->__construct('wpforms_process...') #1 /htdocs/tapicarpro.com/wp-content/plugins/wpforms-lite/src/Tasks/Tasks.php(60): WPForms\Tasks\Actions\EntryEmailsMetaCleanupTask->__construct() #2 /htdocs/tapicarpro.com/wp-content/plugins/wpforms-lite/src/WPForms.php(368): WPForms\Tasks\Tasks->init() #3 /htdocs/tapicarpro.com/wp-includes/class-wp-hook.php(324): WPForms\WPForms->WPForms\{closure}('') #4 /htdocs/tapicarpro.com/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #5 /htdocs/tapicarpro.com/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #6 /htdocs/tapicarpro.com/wp-settings.php(704): do_action('init') #7 /htdocs/tapicarpro.com/wp-config.php(98): require_once('/htdocs/tapicar...') #8 /htdocs/tapicarpro.com/wp-load.php(50): require_once('/htdocs/tapicar...') #9 /htdocs/tapicarpro.com/wp-blog-header.php(13): require_once('/htdocs/tapicar...') #10 /htdocs/tapicarpro.com/index.php(17): require('/htdocs/tapicar...') #11 {main} thrown in /htdocs/tapicarpro.com/wp-content/plugins/wpforms-lite/src/Tasks/Task.php on line 124