{"id":28694,"date":"2014-04-01T19:17:43","date_gmt":"2014-04-01T19:17:43","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/published-by\/"},"modified":"2018-06-11T08:06:19","modified_gmt":"2018-06-11T08:06:19","slug":"published-by","status":"publish","type":"plugin","link":"https:\/\/kea.wordpress.org\/plugins\/published-by\/","author":3606,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.3","stable_tag":"1.3","tested":"4.9.29","requires":"4.6","requires_php":"","requires_plugins":"","header_name":"Published By","header_author":"Scott Reilly","header_description":"","assets_banners_color":"3390b5","last_updated":"2018-06-11 08:06:19","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=6ARCFJ9TX3522","header_plugin_uri":"http:\/\/coffee2code.com\/wp-plugins\/published-by\/","header_author_uri":"http:\/\/coffee2code.com\/","rating":5,"author_block_rating":0,"active_installs":60,"downloads":4017,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"1.3":"<p>Recommended feature update: added dropdown to filter post listings by published-by user, fixed bug preventing &#039;Published By&#039; column from showing when post listing is filtered, delete meta field when user is deleted, noted compatibility through WP 4.9+, updated copyright date (2018), and more<\/p>","1.2":"<p>Recommended feature update: linked usernames to profiles, noted guessed publisher with italics and question mark, referred to currenet user as &quot;you&quot;, registered meta field for REST API compatibility, compatibility is now WP 4.6-4.7+, updated copyright date (2017), and more<\/p>","1.1":"<p>Minor update: improved support for localization; verified compatibility through WP 4.4; updated copyright date (2016)<\/p>","1.0.3":"<p>Minor bugfix release for users running PHP 5.2.x: reverted use of a constant only defined in PHP 5.3+. You really should upgrade your PHP or your host if this affects you. Also noted compatibility with WP 4.3+.<\/p>","1.0.2":"<p>Trivial update: minor additions to unit tests; noted compatibility through WP 4.1+; updated copyright date (2015)<\/p>","1.0.1":"<p>Trivial update: noted compatibility through WP 4.0+; added plugin icon.<\/p>","1.0":"<p>Initial public release.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"972925","resolution":"128x128","location":"assets"}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"885841","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.0.1","1.0.2","1.0.3","1.1","1.2","1.3"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1585445","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1585445","resolution":"2","location":"assets"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1585445","resolution":"3","location":"assets"}},"screenshots":{"1":"A screenshot of the admin post listing showing the added \"Published By\" column. It demonstrates the mix of a post puublished by the current user, a post poblished by another user and two posts that existed before the plugin was activated (one guessed to be published by the current user and one guessed to be published by yet another user).","2":"A screenshot of the Publish metabox for a published post showing the current user who published the post.","3":"A screenshot of the Publish metabox for a published post showing another user who published the post.","4":"A screenshot of the post listing dropdown for filtering posts by publishing user."},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[132,1332,86,2970,4123],"plugin_category":[36,46],"plugin_contributors":[78189],"plugin_business_model":[],"class_list":["post-28694","plugin","type-plugin","status-publish","hentry","plugin_tags-author","plugin_tags-editor","plugin_tags-post","plugin_tags-publish","plugin_tags-publisher","plugin_category-analytics","plugin_category-editor-and-writing","plugin_contributors-coffee2code","plugin_committers-coffee2code"],"banners":{"banner":"https:\/\/ps.w.org\/published-by\/assets\/banner-772x250.png?rev=885841","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/published-by\/assets\/icon-128x128.png?rev=972925","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/published-by\/assets\/screenshot-1.png?rev=1585445","caption":"A screenshot of the admin post listing showing the added \"Published By\" column. It demonstrates the mix of a post puublished by the current user, a post poblished by another user and two posts that existed before the plugin was activated (one guessed to be published by the current user and one guessed to be published by yet another user)."},{"src":"https:\/\/ps.w.org\/published-by\/assets\/screenshot-2.png?rev=1585445","caption":"A screenshot of the Publish metabox for a published post showing the current user who published the post."},{"src":"https:\/\/ps.w.org\/published-by\/assets\/screenshot-3.png?rev=1585445","caption":"A screenshot of the Publish metabox for a published post showing another user who published the post."}],"raw_content":"<!--section=description-->\n<p>This plugin records which user actually published a post, which in a multi-author environment may not always be the original post author. This helps to maintain accountability for who was ultimately responsible for a post appearing live on a site.<\/p>\n\n<p>The admin listing of posts is amended with a new \"Published By\" column that shows the name of the person who published the post (for those posts that have actually been published). A dropdown above admin post listings allows for the listing to be filtered by a particular publishing user (but only includes posts with a known publishing user).<\/p>\n\n<p>For posts that were published prior to the use of this plugin (and thus the plugin could not directly record who published those posts), the plugin makes a best guess attempt to ascertain who published the post. After failing to find the publisher of the post as recorded by the plugin, it checks for who last edited the post, then who is responsible for the latest revision of the post, and finally failing those, it assumes it was the post author. In cases where it had to go through this process, the name of the person it deduced as the likely publisher appears italicized and with a question mark at the end. If you'd rather the plugin not make an attempt to guess the publisher, you can disable the checks by including this snippet in your theme's functions.php (or, ideally, a site-specific mu-plugin):<\/p>\n\n<pre><code>&lt;?php add_filter( 'c2c_published_by_skip_guessing', '__return_true' ); ?&gt;\n<\/code><\/pre>\n\n<p>Links: <a href=\"http:\/\/coffee2code.com\/wp-plugins\/published-by\/\">Plugin Homepage<\/a> | <a href=\"https:\/\/wordpress.org\/plugins\/published-by\/\">Plugin Directory Page<\/a> | <a href=\"https:\/\/github.com\/coffee2code\/published-by\/\">GitHub<\/a> | <a href=\"http:\/\/coffee2code.com\">Author Homepage<\/a><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install via the built-in WordPress plugin installer. Or download and unzip <code>published-by.zip<\/code> inside the plugins directory for your site (typically <code>wp-content\/plugins\/<\/code>)<\/li>\n<li>Activate the plugin through the 'Plugins' admin menu in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><ol>\n<li>Install via the built-in WordPress plugin installer. Or download and unzip <code>published-by.zip<\/code> inside the plugins directory for your site (typically <code>wp-content\/plugins\/<\/code>)<\/li>\n<li>Activate the plugin through the 'Plugins' admin menu in WordPress<\/li>\n<\/ol><\/dd>\n<dt>If a post is published, then changed back to a draft, and then published a second time by a different user, who is noted as the publishing user?<\/dt>\n<dd><p>The user most recently responsible for a post getting published will be recorded as the publishing user. Editing a published post does not change the publishing user.<\/p><\/dd>\n<dt>How do I see (or hide) the \"Published By\" column in an admin listing of posts?<\/dt>\n<dd><p>In the upper-right of the page is a \"Screen Options\" link that reveals a panel of options. In the \"Columns\" section, check (to show) or uncheck (to hide) the \"Published By\" option.<\/p><\/dd>\n<dt>Why does the person's name listed as the \"Published By\" user appear in italics with a question mark at the end?<\/dt>\n<dd><p>It's an indication that for the given post the name shown is a guess by the plugin based on existing post data. For posts that were published prior to the use of this plugin (and thus the plugin could not directly record who published those posts), the plugin makes a best guess attempt to ascertain who published the post. After failing to find the publisher of the post as recorded by the plugin, it checks for who last edited the post, then who is responsible for the latest revision of the post, and finally failing those, it assumes it was the post author. It's likely that the guess is correct, but it's impossible to say for certain when the plugin isn't activated when posts were published.<\/p><\/dd>\n<dt>Does this plugin include unit tests?<\/dt>\n<dd><p>Yes.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.3 (2018-04-24)<\/h4>\n\n<ul>\n<li>New: Add ability to filter the admin listing of posts by the publishing user<\/li>\n<li>New: Delete reference to user when user is deleted, or reassign to another user if deleted user's posts\/comments get reassigned<\/li>\n<li>Fix: Show column even when post listing is being filtered<\/li>\n<li>Fix: Properly close a 'span' tag<\/li>\n<li>Change: Ensure user profile URL is sanitized before display (hardening)<\/li>\n<li>New: Add README.md<\/li>\n<li>Change: Minor whitespace tweaks to unit test bootstrap<\/li>\n<li>Change: Add GitHub link to readme<\/li>\n<li>Change: Note compatibility through WP 4.9+<\/li>\n<li>Change: Update copyright date (2018)<\/li>\n<li>Change: Update installation instruction to prefer built-in installer over .zip file<\/li>\n<\/ul>\n\n<h4>1.2 (2017-01-12)<\/h4>\n\n<ul>\n<li>New: When showing the 'Published by' user, link their display name to their profile page.\n\n<ul>\n<li>Add <code>get_user_url()<\/code> to get the link to the user's profile<\/li>\n<li>Add styles for the 'Published by:' metabox appearance<\/li>\n<\/ul><\/li>\n<li>New: Visually indicate when the 'published by' user for a post is guessed\n\n<ul>\n<li>Add <code>is_publisher_id_guessed()<\/code> to determine if the publisher_id for a given post was guessed<\/li>\n<li>Display guessed publisher's name in italics with question mark at the end<\/li>\n<\/ul><\/li>\n<li>Change: Register meta field via <code>register_meta()<\/code>\n\n<ul>\n<li>Add own <code>register_meta()<\/code><\/li>\n<li>Remove <code>hide_meta()<\/code> in favor of use of <code>register_meta()<\/code><\/li>\n<li>Include meta field and value in REST API responses for posts<\/li>\n<\/ul><\/li>\n<li>Change: Modify handling for 'c2c_published_by_post_status' filter\n\n<ul>\n<li>Add and internally use<code>get_post_statuses()<\/code> as getter for post statuses that should have the 'Published By' column<\/li>\n<li>Allow more dynamic filtering by running the filter in <code>get_post_statuses()<\/code> rather than just once on 'init'<\/li>\n<\/ul><\/li>\n<li>Change: If the current user is the person who published the post, then simply state \"you\" as the name.<\/li>\n<li>Change: Add more unit tests.<\/li>\n<li>Change: Ensure <code>get_publisher_id()<\/code> returns an integer value.<\/li>\n<li>Change: Enable more error output for unit tests.<\/li>\n<li>Change: Default <code>WP_TESTS_DIR<\/code> to <code>\/tmp\/wordpress-tests-lib<\/code> rather than erroring out if not defined via environment variable.<\/li>\n<li>Change: Note compatibility through WP 4.7+.<\/li>\n<li>Change: Remove support for WordPress older than 4.6 (should still work for earlier versions)<\/li>\n<li>New: Add FAQ about showing or hiding the \"Published By\" column.<\/li>\n<li>Change: Update existing two screenshots and add a third.<\/li>\n<li>Change: Update copyright date (2017).<\/li>\n<\/ul>\n\n<h4>1.1 (2016-03-21)<\/h4>\n\n<ul>\n<li>Change: Add support for language packs:\n\n<ul>\n<li>Don't load plugin translations from file.<\/li>\n<li>Remove 'Domain Path' from plugin header.<\/li>\n<li>Remove .pot file and \/lang subdirectory.<\/li>\n<\/ul><\/li>\n<li>Change: Explicitly declare methods in unit tests as public.<\/li>\n<li>New: Add LICENSE file.<\/li>\n<li>New: Add empty index.php to prevent files from being listed if web server has enabled directory listings.<\/li>\n<li>Change: Note compatibility through WP 4.4+.<\/li>\n<li>Change: Update copyright date (2016).<\/li>\n<\/ul>\n\n<h4>1.0.3 (2015-09-02)<\/h4>\n\n<ul>\n<li>Change: Use <code>dirname(__FILE__)<\/code> instead of <code>__DIR__<\/code> since the latter is only available on PHP 5.3+.<\/li>\n<li>Change: Minor tweaks to formatting for inline docs.<\/li>\n<li>Change: Note compatibility through WP 4.3+.<\/li>\n<\/ul>\n\n<h4>1.0.2 (2015-02-17)<\/h4>\n\n<ul>\n<li>Minor additions to unit tests<\/li>\n<li>Use <strong>DIR<\/strong> instead of <code>dirname(__FILE__)<\/code><\/li>\n<li>Note compatibility through WP 4.1+<\/li>\n<li>Update copyright date (2015)<\/li>\n<li>Regenerate .pot<\/li>\n<\/ul>\n\n<h4>1.0.1 (2014-08-25)<\/h4>\n\n<ul>\n<li>Minor amendment to documentation<\/li>\n<li>Minor tweak to an FAQ question<\/li>\n<li>Change documentation links to wp.org to be https<\/li>\n<li>Change donate link<\/li>\n<li>Note compatibility through WP 4.0+<\/li>\n<li>Add plugin icon<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial public release<\/li>\n<\/ul>","raw_excerpt":"Track which user actually published a post, separate from who created the post. Display that info as a column in admin post listings.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/28694","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"author":[{"embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/users\/3606"}],"replies":[{"embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=28694"}],"wp:attachment":[{"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=28694"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=28694"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=28694"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=28694"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=28694"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/kea.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=28694"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}