| Server IP : 80.74.154.100 / Your IP : 216.73.217.0 Web Server : Apache System : Linux marissa.metanet.ch 4.18.0-553.141.2.lve.el7h.x86_64 #1 SMP Wed Jul 8 17:20:31 UTC 2026 x86_64 User : onlineadmin ( 10487) PHP Version : 8.5.7 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/httpd/vhosts/comeonline.ch/httpdocs/wp-content/plugins/wpsso/lib/ |
Upload File : |
<?php
/*
* License: GPLv3
* License URI: https://www.gnu.org/licenses/gpl.txt
* Copyright 2020-2026 Jean-Sebastien Morisset (https://wpsso.com/)
*/
if ( ! defined( 'ABSPATH' ) ) {
die( 'These aren\'t the droids you\'re looking for.' );
}
if ( ! defined( 'WPSSO_PLUGINDIR' ) ) {
die( 'Do. Or do not. There is no try.' );
}
if ( ! class_exists( 'WpssoEditValidators' ) ) {
class WpssoEditValidators {
private $p; // Wpsso class object.
public function __construct( &$plugin ) {
$this->p =& $plugin;
if ( $this->p->debug->enabled ) {
$this->p->debug->mark();
}
/*
* See WpssoAbstractWpMeta->get_document_sso_tabs().
*/
$this->p->util->add_plugin_filters( $this, array(
'mb_sso_validators_rows' => 4,
), PHP_INT_MIN ); // Run before any add-on filters.
}
public function filter_mb_sso_validators_rows( $table_rows, $form, $head_info, $mod ) {
$validators = $this->p->util->get_validators( $mod, $form );
foreach ( $validators as $key => $el ) {
if ( empty( $el[ 'type' ] ) ) {
continue;
}
$extra_msg = isset( $el[ 'extra_msg' ] ) ? $el[ 'extra_msg' ] : '';
$button_label = sprintf( _x( 'Validate %s', 'submit button', 'wpsso' ), $el[ 'type' ] );
$is_disabled = empty( $el[ 'url' ] ) ? true : false;
$table_rows[ 'validate_' . $key ] = '' .
$form->get_th_html( $el[ 'title' ], $css_class = 'medium' ) .
'<td class="validate">' . $this->p->msgs->get( 'info-meta-validate-' . $key ) . $extra_msg . '</td>' .
'<td class="validate">' . $form->get_button( $button_label, $css_class = 'button-secondary', $css_id = '',
$el[ 'url' ], $newtab = true, $is_disabled ) . '</td>';
}
$table_rows[ 'validate_info' ] = '<td class="validate" colspan="3">' . $this->p->msgs->get( 'info-meta-validate-footer' ) . '</td>';
return $table_rows;
}
}
}