Making WordPress.org

Changeset 14926


Ignore:
Timestamp:
06/02/2026 02:48:56 AM (4 months ago)
Author:
dd32
Message:

Plugin Directory: Fix malformed viewBox attribute on generated geopattern icons

Props slaFFik.
Closes ​https://github.com/WordPress/wordpress.org/pull/658.
See #8270.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-geopattern-svg.php

    r6287 r14926  
    3535        protected function getSvgHeader() {
    3636                if ( $this->viewbox ) {
    37                         return "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"{$this->width}\" height=\"{$this->height}\" viewbox=\"{$this->viewbox}\" preserveAspectRatio=\"none\">";
     37                        return "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"{$this->width}\" height=\"{$this->height}\" viewBox=\"{$this->viewbox}\" preserveAspectRatio=\"none\">";
    3838                } else {
    3939                        return "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"{$this->width}\" height=\"{$this->height}\">";
Note: See TracChangeset for help on using the changeset viewer.