Getting Right with Image Rights: Workflow and Major Minor Upgrade

I discovered many non-rights-cleared images that I now think may have detracted from the posts in some ways, even if they initially seemed to make them more attractive or striking.

After announcing the WP-RUBI Beta (0.91) a bit more than a week ago, I installed and began to work with it at this very blog, and I immediately began to notice that “workflow” improvements I had thought to save for a later day – or even reserve for a “premium” version – had to be considered “basic” to using the plug-in effectively. So, I began another week of fairly intensive work now represented in the Beta numbered 0.93. I could “re-up” or “re-announce,” but I’ll think I’ll save doing so for submission of “1.0” to the WordPress Plug-In Repo.

The enhancements include the following:

  • Set and View Image Removal/Replacement Status from Post Edit and All Posts/Pages (Quick and Bulk Edit) Screens
  • Category and Author Inclusion/Exclusion by Display Name instead of ID #
  • Category Inclusion/Exclusion Includes “Child” Categories
  • Option to Replace Images without Standard Image File Extensions (Mainly Served Images)
  • Admin Convenience Improvements (Expandable Text Areas instead of Text Boxes, Additional Editing Instructions)
  • Expanded Reset Options: Reset Main Settings and Post Settings Separately if Desired

In terms of actual workflow as I worked and flowed it, I think that the first and third above were the most significant (code samples at end):

Set and View Image Removal/Replacement Status from Post Edit and All Posts/Pages (Quick and Bulk Edit) Screens

In 0.91 and every version going back to Replace Old Images, individual post inclusions or exclusions were handled strictly via the main settings page, where included/excluded posts would be listed by ID. I realized that it would be much simpler if I could include or exclude (“clear”) a post from its own edit screen or from All Posts listings. The answer was to use “post meta” instead of global settings, and to add new columns to All Posts (and All Pages). A related convenience feature is the display of discrepancies, if any, between all images found and all images matched. Users may wish to examine “discrepant” posts for images served or sourced elsewhere than in the usual uploads directories, and adjust the “rights clearing” process accordingly.

Category Inclusion/Exclusion Includes “Child” Categories

In 0.91, category-based exclusions/inclusions did not include “child” categories (sub-categories). I quickly realized that at different points, depending on the number and character of posts in a given category or its child categories, it would be easier to be able to work with a “parent” as such instead of having to deal one by one with its children. Upon successful clearing of an entire parent category, it would also be more practical on the settings page to exclude the parent from general removal without having to list each individual child as well.

Workflow Notes

I found myself proceeding as follows:

PHASE I – Initial implementation: Prior To Date

  1. Set current date as “Prior To Date.”
  2. Clear “front page” posts of questionable/dangerous images – move “Prior To Date” back.

At that point, I felt I had a safe and initially presentable site.

PHASE II – Priority Categories

  1. Identify, exclude, and view high priority category.
  2. Open all posts in tabs, page by page: In most cases I could tell by featured image whether they next had to be opened for editing.
  3. Clear priority category – post by post.
  4. Exclude category from image removal and replacement.
  5. View effects on later pages: If appropriate, move “Prior To Date” back again.
  6. Move to new priority category and repeat.

After the 0.93 changes, I could easily move through All Posts, and bulk clear large numbers of posts at a glance. If I had an archive of 10s of 1000s of posts, however, I might prefer to work by author or category. Even then, however, a WordPresser can filter for Author or Category fairly easily via All Posts, so in many instances working through All Posts rather than category by category from Front End archives might still end up being the most efficient way to proceed.

General Observations: On Getting Honest

If fear of a lawsuit or threat of one – as a low probability, high impact danger – is not enough to motivate a blogger to get right with image rights, and the moral question also doesn’t move him or her, there’s something to be said for going gray anyway – as writers mostly have had to do for thousands of years up until the present (oh so fallen) era.

Along my image-curing way, I discovered many non-rights-cleared images that I now think may have detracted from the posts in some ways, even if they initially seemed to make them more attractive or striking.

So, for example, my first “priority” category was “Featured” – posts from my archives that I think of or thought of as best representing my work. If I ever put together a Selected Works by CK MacLeod anthology, I would begin with these. Among them was a series of posts I wrote in 2013 on the political, moral, and international-legal ramifications and possible historical significance of the chemical attack in East Ghouta, Syria, and the reaction of the Obama Administration. I had used several news photos depicting either the physical destruction of Syrian cities or the direct casualties of the attack, but I wonder now whether they oversold my argument, putting me in the position of someone scolding my moral inferiors (everyone) or seeming to blame them (you) for an indifference or callousness that exploitative use of, say, a photograph of assembled children’s corpses, may actually reinforce and hypocritically demonstrate.

In any event, I feel comfortable letting the words stand for themselves. I think the argument and perhaps the descriptions stand forth more strongly without exploitation in the common sensationalistic and therefore (quite observably) de-sensitizing, way. In other posts I found use of images from popular culture mainly adding a comedic effect that, again, in retrospect, seemed to detract from the seriousness of the presentation, even when they were not, as in a few cases, simply clichés or destined to become cliché (like using a “Terminator” image in a discussion of drone warfare).

If and when I construct and publish an anthology or anthologies, leaving the images out ought to simplify the project: I’ll have less to worry about as far as adaptation to “e-pub” or print formats is concerned, and I’ll also not have to worry about getting permissions.

Code Example 1: Include Child Categories

This function detects whether the given Post is in any of the designated categories (from $options) and returns “true” if so. I had some difficulty getting it right (see commented portions).

Code Example 2: Adding columns and options to Quick and Bulk Editor

screenshot-6This process was much more complicated: worth a post in itself. Or, rather, it might be if  WordPresser Rachel Carden (@bamadesigner) hadn’t already done most of the groundwork at her blog and at Github.

Getting the output I wanted for the two new columns did involve more “original” work: Nothing terribly fancy, and I’ve no doubt it could be improved, but here it is, with one unsolved mystery noted at the end.

First, the code for the Featured Image column, which, as you can see from the annotated screenshot above, is among other things designed to tell you via fallback image and color-coding both whether the Post or Page has a “Featured Image” (aka “Thumbnail,” but not always displayed at “thumbnail” size), and whether the Post or Page is included in Image Removal and Replacement.

A second helper function counts occurrences of images found in posts, returning one number for all images actually matched, another for all actually found. [29 June: Had to change this file to address relatively rare Regex results producing “catastrophic backtracking” in some cases – also refined search pattern – still working on it, but for latest results check plugin file admin.php, currently ca. lines 682 – 708]

And here are the both-columns content functions:

The above columns need to be enabled by familiar add_filter and add_action functions…

…which need to be copied and run a second time under different names to produce a display in All Pages. That’s the mystery.

IOW, the first time out, I tried

But it didn’t work until I wrote the new virtually identical functions (I ended up changing “Post” to “Page” in the messages) under new names, producing the following:

…and all of this is a small part of how I went from a plug-in whose code required all of around 200 lines in one PHP file to more than 2000 lines in a set of PHP, CSS, and jQuery files.

Home Page  Public Email  Twitter  Facebook  YouTube  Github   

Writing since ancient times, blogging, e-commercing, and site installing-designing-maintaining since 2001; WordPress theme and plugin configuring and developing since 2004 or so; a lifelong freelancer, not associated nor to be associated with any company, publication, party, university, church, or other institution. 

Posts in this series

Commenter Ignore Button by CK's Plug-Ins

Leave a Reply

Your email address will not be published. Required fields are marked *


WordPress Plug-In Notes

  1. Realizing the Commentariat (May 8, 2015)
  2. Child of Mog; Extraordinary Comments (May 25, 2015)
  3. Patronize 'Em: WordPress Draft Post Docket with Subscription and Donation Options (June 9, 2015)
  4. Realizing The Commentariat: Phase 2 (June 22, 2015)
  5. Pseudo-Redacting Spoilerer (July 25, 2015)
  6. Spoiling you some more (August 5, 2015)
  7. Testing Ajaxified Comments - Experiment Halted (August 11, 2015)
  8. New New Since Last Visit Comments Comments (August 16, 2015)
  9. WordPress Comment Nesting Unbound (August 22, 2015)
  10. The Snake Is Implemented (August 25, 2015)
  11. Comments Since Last Visit Reloaded, Reloaded, Testing Post (August 31, 2015)
  12. Comments Since Last Visit, Reloaded, Augmented, Installed, In Two Steps (September 13, 2015)
  13. Coming Soon (I Think!): Author Bios (September 25, 2015)
  14. How to Do Backlinking Footnotes (November 30, 2015)
  15. Who or What Is Using "Commenter Archive" and "commenter-thread"? (February 16, 2016)
  16. Enabling WordPress Press This for HostGator Sites (March 9, 2016)
  17. Linkback Your Xpost: A Simple WordPress Filter Function (March 14, 2016)
  18. Add Amazon Affiliate Tags to WordPress Posts <i>and</i> Comments Automatically (March 19, 2016)
  19. Finding Lost WordPress Widgets after Core Upgrade (March 21, 2016)
  20. Plug-In Away... and the Iron Law of Irony (April 16, 2016)
  21. To o-b or not to o-b (output-buffering in WordPress) - UPDATED (April 24, 2016)
  22. Output-Buffering and Extensible WordPress Plug-Ins (May 21, 2016)
  23. Getting Right with Image Rights: WP Replace Unlicensed and Broken Images Plug-In (June 17, 2016)
  24. Getting Right with Image Rights: Workflow and Major Minor Upgrade (June 27, 2016)
  25. Getting to Better WordPress Twitter oEmbed (June 28, 2016)
  26. An Alliance of Digital Artists (Art and Work in the Age of Instant Reproducibility) (July 8, 2016)
  27. Comparative Page Loads with and without Image Errors (July 14, 2016)
  28. jQuery-Filling an Input Box in WordPress Admin (July 15, 2016)
  29. Drilling a Hole in the Universe with WP_Query in a Shortcode (September 1, 2016)
  30. Troll-Stomping and Other Sensible Things: #WordPress Plug-In Beta Test/Preview (November 12, 2016)
  31. Commenter Ignore Button Preview Video (November 30, 2016)
  32. Is This Solution for Caches vs Cookies Going to Get Me in Trouble? (November 30, 2016)
  33. Commenter Ignore Button 0.99 (December 21, 2016)
  34. Adding Multiple Image Selection to WordPress Plug-Ins (January 5, 2017)
  35. Working around an Unexplained Failure of WordPress {$taxonomy} Hooks (January 10, 2017)In Progress: Subscribe!
  36. Better Twitter Embeds 2: Stripping the Convo for the Sake of the Convo (February 19, 2017)

Noted & Quoted

[E]ven Fox didn’t tout Bartiromo’s big scoops on Trump’s legislative agenda, because 10 months into the Trump presidency, nobody is so foolish as to believe that him saying, “We’re doing a big infrastructure bill,” means that the Trump administration is, in fact, doing a big infrastructure bill. The president just mouths off at turns ignorantly and dishonestly, and nobody pays much attention to it unless he says something unusually inflammatory.On some level, it’s a little bit funny. On another level, Puerto Rico is still languishing in the dark without power (and in many cases without safe drinking water) with no end in sight. Trump is less popular at this point in his administration than any previous president despite a generally benign economic climate, and shows no sign of changing course. Perhaps it will all work out for the best, and someday we’ll look back and chuckle about the time when we had a president who didn’t know anything about anything that was happening and could never be counted on to make coherent, factual statements on any subject. But traditionally, we haven’t elected presidents like that — for what have always seemed like pretty good reasons — and the risks of compounding disaster are still very much out there.

Comment →

So, does Mitchell make any money on the work, which has been shared so many times? He uploaded a high-res image of the symbol and granted permission for anyone to use it personally for free. But for those who want to support his work or simply want something readymade, you can also buy T-shirts, sweatshirts, mugs, and journals emblazoned with the symbol through Threadless.“I really just want to spread the image as much as possible and cement it in history,” Mitchell says. “In all honesty, the amount I’ve made from my Threadless shop so far is still less than my hourly rate, so I don’t really see it as a big deal. If you look at my Twitter, half the replies are people wanting to know where they can buy a shirt. Threadless is happy to help them out with that, and so I’m happy to let that happen.”Now that the symbol has flooded our streets and our timelines, Mitchell just has one request: “Impeach this idiot already,” he says.

Comment →

This is a Waterloo moment for Trump, the tea party and their alliance. They have been stopped in their tracks not only by Democratic opposition but because of a mutiny within their own ranks. Although never particularly liked or respected, it is now clear that they are no longer feared. The bankruptcy of their ideas and their incompetence have been exposed. Their momentum has been dissipated. Their rejection of political norms has itself been scorned. Our long national nightmare may finally be coming to an end.

Comment →

State of the Discussion

+ You filled out your email address as a "" not "" I edited the comment just above, and it's now showing the gravatar associated with [. . .]
The Video of Our Moment – This is America
+ btw I didn't get the confirmation email and it wasn't in spam. also my icon didn't show up here so if you do restart blogging [. . .]
The Video of Our Moment – This is America
+ Don't know whether I'll start blogging again, or why exactly this video led me to post again after such a long hiatus. Not sure why you [. . .]
The Video of Our Moment – This is America

Extraordinary Comments

CK's WP Plugins