Giter VIP home page Giter VIP logo

wp-sanitize-accented-uploads's Issues

Metadata values for uploads are replaced incorrectly

$ wp sanitize all will change the metadata of your files incorrectly in some cases.

Here's example of metadata from my site:

wp eval "var_dump(wp_get_attachment_metadata(9));"
array(5) {
  ["width"]=>
  int(418)
  ["height"]=>
  int(280)
  ["file"]=>
  string(17) "2014/11/test1.jpg"
  ["sizes"]=>
  array(5) {
    ["thumbnail"]=>
    array(4) {
      ["file"]=>
      string(17) "test1-150x150.jpg"
      ["width"]=>
      int(150)
      ["height"]=>
      int(150)
      ["mime-type"]=>
      string(10) "image/jpeg"
    }
    ["medium"]=>
    array(4) {
      ["file"]=>
      string(17) "test1-280x160.jpg"
      ["width"]=>
      int(280)
      ["height"]=>
      int(160)
      ["mime-type"]=>
      string(10) "image/jpeg"
    }
    ["small"]=>
    array(4) {
      ["file"]=>
      string(16) "test1-107x75.jpg"
      ["width"]=>
      int(107)
      ["height"]=>
      int(75)
      ["mime-type"]=>
      string(10) "image/jpeg"
    }
    ["map-img"]=>
    array(4) {
      ["file"]=>
      string(17) "test1-152x108.jpg"
      ["width"]=>
      int(152)
      ["height"]=>
      int(108)
      ["mime-type"]=>
      string(10) "image/jpeg"
    }
    ["custom-size"]=>
    array(4) {
      ["file"]=>
      string(17) "test1-418x200.jpg"
      ["width"]=>
      int(418)
      ["height"]=>
      int(200)
      ["mime-type"]=>
      string(10) "image/jpeg"
    }
  }
  ["image_meta"]=>
  array(11) {
    ["aperture"]=>
    int(0)
    ["credit"]=>
    string(0) ""
    ["camera"]=>
    string(0) ""
    ["caption"]=>
    string(0) ""
    ["created_timestamp"]=>
    int(0)
    ["copyright"]=>
    string(0) ""
    ["focal_length"]=>
    int(0)
    ["iso"]=>
    int(0)
    ["shutter_speed"]=>
    int(0)
    ["title"]=>
    string(0) ""
    ["orientation"]=>
    int(1)
  }
}

Using the plugin visually?

I want to use visually plugin from the wp-admin wordpress, how do I do?
PS: No I have access to WP-CLI

Problem with a PDF file

I tried to fix existing files with the command line tool but the tool ran into some error on a PDF file. The file didn't have any special characters. 21 characters, with one uppercase character and an underscore.

Unfortunately I was quite busy at the time and didn't have time to troubleshoot, so I don't have any more details to tell about this possible bug. I didn't even save the error message anywhere ๐Ÿ˜‘ I just renamed that file manually and after that the command line tool worked well.

This ticket is only a small reminder that there might be a problem with PDF files. I will report more if I ever run into the problem again or have time to recreate the problem somehow.

Problems with .mp4 files

used the CLI command to process old files, and for some reason all uploaded mp4 files broke miserably and were deleted.

Thank god for backups.

Force sanitize database entries

I have a larger site and for some reason wp sanitize all didn't go through as expected, so I have everything right in Media Library, but in articles the images are in the old format, capitalized and with wrong letters - so lots of 404s. Any way to force sanitize all db entries?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.