/home/vianto5/distritosatelite.mx/wp-content/plugins/wp-mail-smtp/src
NameSizeModeActions
Abilities/-0755rm
Admin/-0755rm
Compatibility/-0755rm
Helpers/-0755rm
Integrations/-0755rm
Providers/-0755rm
Queue/-0755rm
Reports/-0755rm
Tasks/-0755rm
TestEmail/-0755rm
UsageTracking/-0755rm
WPCLI/-0755rm
AbstractConnection.php11160644editdlrm
Conflicts.php170500644editdlrm
Connect.php94040644editdlrm
Connection.php9640644editdlrm
ConnectionInterface.php10380644editdlrm
ConnectionsManager.php7650644editdlrm
Core.php346500644editdlrm
DBRepair.php65170644editdlrm
Debug.php43370644editdlrm
EmailSendingDebug.php49390644editdlrm
Geo.php69200644editdlrm
MailCatcher.php13950644editdlrm
MailCatcherInterface.php11850644editdlrm
MailCatcherTrait.php281000644editdlrm
MailCatcherV6.php12320644editdlrm
Migration.php123980644editdlrm
MigrationAbstract.php32880644editdlrm
Migrations.php42210644editdlrm
OptimizedEmailSending.php11950644editdlrm
Options.php495220644editdlrm
Processor.php144480644editdlrm
SiteHealth.php129670644editdlrm
Upgrade.php15870644editdlrm
Uploads.php55660644editdlrm
WP.php250890644editdlrm
WPMailArgs.php45490644editdlrm
WPMailInitiator.php44850644editdlrm
Edit: /home/vianto5/distritosatelite.mx/wp-content/plugins/wp-mail-smtp/src/EmailSendingDebug.php (4939B)
` + EOL + ``, or an empty string when * the record does not exist or has no error_message. * * @since 4.9.0 * * @param string $connection_id Connection id. * * @return string */ public static function get_message( $connection_id ) { return self::format_record( self::get( $connection_id ) ); } /** * Return formatted failure messages for every connection with a non-empty * `error_message`. Each entry is formatted as `Mailer: ` + EOL + * `<error_message>`. * * @since 4.9.0 * * @return string[] */ public static function get_messages() { $messages = []; foreach ( self::get() as $record ) { $formatted = self::format_record( $record ); if ( $formatted !== '' ) { $messages[] = $formatted; } } return $messages; } /** * Build the `Mailer: <title>` + EOL + `<error_message>` string for a single * failure record. Returns an empty string when the record is empty or has * no `error_message`. * * @since 4.9.0 * * @param array $record Failure-record payload. * * @return string */ private static function format_record( $record ) { if ( empty( $record['error_message'] ) ) { return ''; } $options = ! empty( $record['mailer'] ) ? wp_mail_smtp()->get_providers()->get_options( $record['mailer'] ) : null; $mailer_title = ! empty( $options ) ? $options->get_title() : esc_html__( 'Unknown', 'wp-mail-smtp' ); return 'Mailer: ' . $mailer_title . WP::EOL . (string) $record['error_message']; } /** * Read failure records. Returns the full map when `$connection_id` is null, * otherwise that connection's record (or an empty array when none stored). * * @since 4.9.0 * * @param string|null $connection_id Optional connection id. * * @return array */ public static function get( $connection_id = null ) { $all = self::get_raw(); if ( $connection_id === null ) { return $all; } return isset( $all[ $connection_id ] ) ? $all[ $connection_id ] : []; } /** * Raw read with in-memory caching. * * @since 4.9.0 * * @return array */ private static function get_raw() { if ( self::$cached !== null ) { return self::$cached; } $all = get_option( self::OPTION_KEY, [] ); if ( ! is_array( $all ) ) { $all = []; } self::$cached = $all; return $all; } }