{"id":35137,"date":"2015-03-17T18:03:27","date_gmt":"2015-03-17T18:03:27","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/one-liners\/"},"modified":"2015-03-20T13:30:35","modified_gmt":"2015-03-20T13:30:35","slug":"one-liners","status":"publish","type":"plugin","link":"https:\/\/da.wordpress.org\/plugins\/one-liners\/","author":14319780,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"3.1.0","stable_tag":"3.1.0","tested":"4.11","requires":"3.0.1","requires_php":"","requires_plugins":"","header_name":"One Liners","header_author":"Brent Maxwell","header_description":"","assets_banners_color":"","last_updated":"2015-03-20 13:30:35","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/thebrent.net\/projects\/one-liners\/","header_author_uri":"http:\/\/thebrent.net\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1336,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"3.0.0":"<p>This update will completely break compatibility with previous versions. The name has been changed to prevent conflicts, and there was a complete rebuild of the class structure.<\/p>","1.1.1":"<p>This update fixes a security issue where the shortcode parameters could be used to query any post type in the system.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["3.1.0"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[34442,354,357,241],"plugin_category":[43],"plugin_contributors":[87352],"plugin_business_model":[],"class_list":["post-35137","plugin","type-plugin","status-publish","hentry","plugin_tags-one-liners","plugin_tags-quotes","plugin_tags-shortcodes","plugin_tags-widgets","plugin_category-customization","plugin_contributors-thebrent","plugin_committers-thebrent"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/one-liners.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>A custom post type, shortcode, and widget to display random one-line quips on your site. Can be used for random quotes, jokes, etc.<\/p>\n\n<h3>Use and Options<\/h3>\n\n<h4>Options<\/h4>\n\n<p>Options are accessible under the 'Oneliners' menu. The only option is the slug for the post type.<\/p>\n\n<h4>Widget<\/h4>\n\n<p>The widget has only two options: \"Title\" and \"Display as permalink\".<\/p>\n\n<h4>Shortcode<\/h4>\n\n<pre><code>random-oneliner\n<\/code><\/pre>\n\n<p>The shortcode can take any parameters that the <a href=\"http:\/\/codex.wordpress.org\/Class_Reference\/WP_Query#Parameters\"><code>WP_Query()<\/code><\/a> object can take, with the exception of <code>post_type<\/code>. The defaults are: <code>posts_per_page=\"1\" orderby=\"rand\"<\/code><\/p>\n\n<p>In addition, the <code>display_as_link<\/code> parameter can be set to <code>true<\/code> to output the oneliner with it's permalink.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the contents of the zip file to the <code>\/wp-content\/plugins\/<\/code> directory or use the WordPress plugin uploader.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>What is the format and parameters for the shortcode?<\/dt>\n<dd><p>random-oneliner<\/p>\n\n<p>The shortcode can take any parameters that the <a href=\"http:\/\/codex.wordpress.org\/Class_Reference\/WP_Query#Parameters\"><code>WP_Query()<\/code><\/a> object can take, with the exception of <code>post_type<\/code>. The defaults are: <code>posts_per_page=\"1\" orderby=\"rand\"<\/code><\/p>\n\n<p>In addition, the <code>display_as_link<\/code> parameter can be set to <code>true<\/code> to output the oneliner with it's permalink.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>3.1.0<\/h4>\n\n<ul>\n<li>Added options for custom slug<\/li>\n<\/ul>\n\n<h4>3.0.0<\/h4>\n\n<ul>\n<li>Total and complete update<\/li>\n<li>Renamed to One Liners<\/li>\n<li>Restructured the base class<\/li>\n<li>Created a dedicated widget class<\/li>\n<li>Activation\/deactivation hook<\/li>\n<li>Options for displaying quote as link<\/li>\n<\/ul>\n\n<h4>2.0.0<\/h4>\n\n<ul>\n<li>Updated names and post type cause it was more clear<\/li>\n<\/ul>\n\n<h4>1.1.1<\/h4>\n\n<ul>\n<li>security update on shortcode<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<ul>\n<li>added initialization hook: thebrent_oneliners_init;<\/li>\n<li>added three filter hooks: thebrent_oneliners_random_quote_args, thebrent_oneliners_random_quote, thebrent_oneliners_show;<\/li>\n<li>added the ability to parametarize the shortcode<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>moved everything into a class; added internationalization capability<\/li>\n<\/ul>\n\n<h4>0.4.0<\/h4>\n\n<ul>\n<li>added widget<\/li>\n<\/ul>\n\n<h4>0.3.0<\/h4>\n\n<ul>\n<li>added shortcode<\/li>\n<\/ul>\n\n<h4>0.2.2<\/h4>\n\n<ul>\n<li>added post type icon<\/li>\n<\/ul>\n\n<h4>0.2.1<\/h4>\n\n<ul>\n<li>added menu icons<\/li>\n<\/ul>\n\n<h4>0.2.0<\/h4>\n\n<ul>\n<li>not sure why it went to 1.1, but it did<\/li>\n<\/ul>\n\n<h4>0.1.0<\/h4>\n\n<ul>\n<li>First stable working version<\/li>\n<\/ul>","raw_excerpt":"Custom post type for short oneliners, including a widget and shortcode.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/35137","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=35137"}],"author":[{"embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/thebrent"}],"wp:attachment":[{"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=35137"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=35137"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=35137"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=35137"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=35137"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/da.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=35137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}