HeyPublisher / amazon-book-store

WordPress plugin: Sell Amazon products in sidebar of your WordPress site
GNU General Public License v2.0
0 stars 1 forks source link

Code clean up for 3.1.1 release #22

Closed aguywithanidea closed 4 years ago

aguywithanidea commented 4 years ago

Adding some TODO's where code cleanup is needed in the future, specifically related to how the ASIN must be stringified to be used as a hash key. This requires padding and stripping this key in various places and it's less than streamlined.

Fixed bug #21 by ensuring that when the default set of asins is used that the ASIN_ padding is removed before display.

Added some global variable declarations in the common library to ensure that the vars are accessible whenever they are loaded. This is important when publisher is using multiple HeyPublisher plugins that use the Base set of classes, as the load order may should be unimportant to accessing the var when it's called.