wp-sync-db / wp-sync-db-media-files

Sync media libraries between WordPress installations - an addon for wp-sync-db
GNU General Public License v2.0
530 stars 142 forks source link

"Media Files" check not showing up #31

Closed lucrus73 closed 7 years ago

lucrus73 commented 7 years ago

I've installed this extension along with wp-sync-db in three different WP instances. None of them show the "Media Files" checkbox. I suspect I'm not installing this the right way, but installation is not documented. Isn't it enouhg to download and unzip into wp-content/plugins?

ghost commented 7 years ago

There seems to be some inline CSS hiding the check box. got in the the plugin folder for wp-sync-db and add this to the style.css

.media-files-options { display: block !important; }

lucrus73 commented 7 years ago

You're right, thanks for the hint. However I believe that when someone inlined a display: none he did that for a reason, and overriding it could lead to more trouble. So I've debugged the js and I've found this is a feature rather than a bug, albeit it seems to be undocumented.

From what I get in the code, the inteded behavior is: if we are migrating with a remote connection (e.g. not with a backup file) and the remote connection is ok, and the remote plugin is the same version as the local, then show the media files checkbox, otherwise hide it.

I've tried entering the correct connection informations and the checkbox does show up. Problem solved, thanks.