Tiago Dias
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: [DMCA Protection Badge] Causing ErrorsThis appears to be resolved in the latest version, if not, see: class-plugin-base.php in dmca-badge/tags/2.1.56/libraries/sidecar/classes – WordPress Plugin Repository
Line 1985
load_plugin_textdomain( $this->plugin_slug, false, '/' . basename( dirname( $this->plugin_file ) ) . '/languages' );the bug is on the part “$this->plugin_slug”, replace it by
$slug = basename( dirname( $this->plugin_file ) );
$relative_path = '/' . $slug . '/languages';load_plugin_textdomain( $slug, false, $relative_path );And that should solve the error. If not, there is a new bug that I have not seen yet.
Forum: Plugins
In reply to: [DMCA Protection Badge] DMCA Badge not compatible with WordPress 6.5Forum: Plugins
In reply to: [DMCA Protection Badge] Causing Errorson line: class-plugin-base.php in dmca-badge/trunk/libraries/sidecar/classes – WordPress Plugin Repository
replace line with the following content:
/** * @var string $slug */ $slug = (string) basename( dirname( $this->plugin_file ) ); /** * @var bool $deprecated */ $deprecated = (bool) false; /** * @var bool $relative_path */ $relative_path = (string) '/' . $slug . '/languages'; $args = array( $slug, $deprecated, $relative_path ); call_user_func_array("load_plugin_textdomain",$args);
Viewing 3 replies - 1 through 3 (of 3 total)