Commit Graph

151 Commits

Author SHA1 Message Date
Robin Cornett 15248de451 Improve term checking
Only update the term metadata if a term exists. Only add to the list if
a term exists.
2016-08-18 14:38:34 -04:00
Robin Cornett 9d97325e12 Change to wp_load_alloptions instead of direct DB query 2016-08-18 09:24:34 -04:00
Robin Cornett cec3de04d6 Update version, readme, .pot 2016-08-17 16:25:49 -04:00
Robin Cornett 016aee4163 Cast term_id as int, escape term option 2016-08-17 15:59:26 -04:00
Robin Cornett 43f9a33630 Make query more specific 2016-08-17 15:58:46 -04:00
Robin Cornett e8bb9d030e Update DB query 2016-08-17 15:16:06 -04:00
Robin Cornett 9c906b4426 Update term meta updater
Conditional not needed as it's only run if the condition is already met.
2016-08-17 15:15:50 -04:00
Robin Cornett 7609740fa7 Set the db query as a class variable so the query only happens once 2016-08-17 12:09:35 -04:00
Robin Cornett 0010799d5e Extract term checker function 2016-08-17 11:34:21 -04:00
Robin Cornett 7ae9dd9979 Mark deprecated function 2016-08-17 10:37:40 -04:00
Robin Cornett f4cb5244f3 Update term notice check 2016-08-17 10:05:24 -04:00
Robin Cornett 2ab8175f14 Check term image check on settings page
Query db directly rather than cycling through all taxonomies/terms in
order to reduce load on server.
2016-08-17 09:49:13 -04:00
Robin Cornett b1efda929a Only allow max_height to return empty value 2016-08-16 16:33:12 -04:00
Robin Cornett 60bf3eb9e2 Allow number fields to be empty 2016-07-16 18:05:19 -04:00
Robin Cornett 356db8115c Add backstretch settings to the customizer 2016-07-07 20:16:42 -04:00
Robin Cornett 822174817d Add backstretch variables to settings page
Image centering/fade values for javascript. Includes radio buttons and
making a new style tab.
2016-07-06 09:42:48 -04:00
Robin Cornett 13c4d67e4f Update/add doc blocks 2016-07-03 07:42:41 -04:00
Robin Cornett e296e864b8 Extract settings setup to new class
Generally extended by the helper class.
2016-07-03 07:32:02 -04:00
Robin Cornett 72a50ea505 Add setting to always use default image 2016-07-02 14:02:54 -04:00
Robin Cornett 8a5ba28360 Old value can be retained, even if empty 2016-07-02 13:07:22 -04:00
Robin Cornett d47611bb40 Fix validation method 2016-07-02 12:11:35 -04:00
Robin Cornett d8598a8be1 Move help tabs to unique class 2016-07-02 10:17:38 -04:00
Robin Cornett 1a69832c07 Add max-height setting/CSS via inline style 2016-07-02 09:13:30 -04:00
Robin Cornett 642359bcb1 Refactor settings fields definitions 2016-07-02 09:11:14 -04:00
Robin Cornett 725cc0f020 Update comments, .pot 2016-04-30 14:20:30 -04:00
Robin Cornett 9a30b702bb Clean up settings variables definitions 2016-04-30 14:20:04 -04:00
Robin Cornett c20ab82e13 Remove duplicate image validation function 2016-04-27 08:15:24 -04:00
Robin Cornett cfcf4404cb Add new function to return public content types, including built ins 2016-04-25 11:50:27 -04:00
Robin Cornett 1dd17de8e9 Fix label for number input accessibility 2016-04-18 11:53:43 -04:00
Robin Cornett 967af40305 Fix image accessibility on settings page 2016-04-18 11:53:13 -04:00
Robin Cornett ae28629210 Fix settings tabs for accessibility 2016-04-16 16:08:19 -04:00
Robin Cornett 82d1447a72 Move/simplify fields declaration 2016-04-04 15:51:28 -04:00
Robin Cornett 9ddea13072 Add filter to modify defaults 2016-04-04 10:33:11 -04:00
Robin Cornett 9d19d5ddcb Tidy settings/validation 2016-04-04 10:31:57 -04:00
Robin Cornett 648a6317a9 Update readme/copyright 2016-04-01 20:18:20 -04:00
Robin Cornett df882c51c0 Refactor validation for numbers/special pages 2016-04-01 17:07:27 -04:00
Robin Cornett e7d138eb6c Convert settings page to tabs 2016-04-01 17:06:57 -04:00
Robin Cornett 22d12180fd Move skip setting to content types section 2016-03-31 16:00:15 -04:00
Robin Cornett 916b5e2b02 Fix settings page
Adds post, page to skip, adds margin to checkbox label
2016-03-31 12:39:35 -04:00
Robin Cornett 4223fcb55b Move skip setting to main section 2016-03-31 12:38:55 -04:00
Robin Cornett 38e078859d Add setting to skip featured image output for custom content types 2016-03-31 11:37:21 -04:00
Robin Cornett 1b4e5e8bf8 Add fallback setting for custom content types 2016-03-31 11:36:55 -04:00
Robin Cornett 963a170e4c Change variable names for sanity 2016-03-31 11:35:12 -04:00
Robin Cornett 30707b2196 Update help/text, labels, .pot 2016-03-11 13:44:19 -05:00
Robin Cornett 8c6b7dfff6 Add featured images for search/404 pages 2016-03-11 12:34:23 -05:00
Robin Cornett 0778777368 Add setting to use term/cpt images as fallbacks for archive thumbnails 2016-03-07 13:08:59 -05:00
Robin Cornett dec8e3bf59 Merge redundant strings for translation
Thanks to @christophherr for finding this.
2015-12-15 07:43:14 -05:00
Robin Cornett 0189701db7 update readme 2015-12-04 12:13:54 -05:00
Robin Cornett f3209da3e3 Fix term_meta notice to only display for 4.4 2015-11-23 14:29:35 -05:00
Robin Cornett 4f6334b1aa Change term_meta message to include affected terms
Also needed to change function to get the terms, to return objects,
not just IDs.
2015-11-23 11:47:22 -05:00