Changeset 2901151
- Timestamp:
- 04/19/2023 11:13:24 AM (3 years ago)
- Location:
- quick-download-button
- Files:
-
- 6 edited
- 1 copied
-
tags/1.2.5 (copied) (copied from quick-download-button/trunk)
-
tags/1.2.5/class/create.downloadpage.class.php (modified) (2 diffs)
-
tags/1.2.5/quick-download-button.php (modified) (1 diff)
-
tags/1.2.5/readme.txt (modified) (4 diffs)
-
trunk/class/create.downloadpage.class.php (modified) (2 diffs)
-
trunk/quick-download-button.php (modified) (1 diff)
-
trunk/readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
quick-download-button/tags/1.2.5/class/create.downloadpage.class.php
r2767237 r2901151 20 20 21 21 global $wpdb; 22 22 23 $this->title = 'Quick Download Button'; 23 24 24 if ( null == get_page_by_title( $this->title, 'OBJECT', 'post' ) & $this->post_check_duplicates( $this->title ) !== 1) {25 if ( null == $this->get_page_by_title() ) { 25 26 26 27 $this->current_user = wp_get_current_user(); … … 50 51 } 51 52 53 } 54 55 /** 56 * Used to check that the page exist before creating another page 57 * after the plugin is activated. 58 */ 59 public function get_page_by_title() { 60 $page_got_by_title = null; 61 $query = new WP_Query( 62 array( 63 'post_type' => 'page', 64 'title' => $this->title, 65 'post_status' => 'publish', 66 'posts_per_page' => 1, 67 'no_found_rows' => true, 68 'ignore_sticky_posts' => true, 69 'update_post_term_cache' => false, 70 'update_post_meta_cache' => false, 71 'orderby' => 'post_date ID', 72 'order' => 'ASC', 73 ) 74 ); 75 76 if ( ! empty( $query->post ) ) { 77 $page_got_by_title = $query->post; 78 } 79 80 return $page_got_by_title; 52 81 } 53 82 -
quick-download-button/tags/1.2.5/quick-download-button.php
r2880020 r2901151 5 5 * Plugin URI: https://github.com/kusimo/quick-download-button 6 6 * Description: Use to add download button link to post or page. 7 * Version: 1.2. 47 * Version: 1.2.5 8 8 * Author: Abidemi Kusimo 9 9 * -
quick-download-button/tags/1.2.5/readme.txt
r2880020 r2901151 1 1 === Quick Download Button === 2 2 Contributors: kusimo 3 Donate link: https://www.buymeacoffee.com/kusimo 3 4 Tags: media download, hide download link, download button 4 5 License: GPLv2 or later … … 6 7 Requires at least: 3.0.1 7 8 Tested up to: 6.0.2 8 Stable tag: 1.2. 39 Stable tag: 1.2.5 9 10 Requires PHP: 5.6 10 11 License: GPLv3 … … 126 127 echo do_shortcode('[quick_download_button title="Download" url="http://yoursite/wp-content/upload/fileto_download.pdf"]'); 127 128 ` 129 130 == Donations == 131 132 Would you like to support the advancement of this plugin? [Donate](https://www.buymeacoffee.com/kusimo) 133 128 134 129 135 == Documentation == … … 226 232 == Changelog == 227 233 234 = 1.2.5 April 19th, 2023 = 235 * Minor fixes of 404 error that occurs when quick download button page is deleted. After deletion of the QDB page, please deactivate and reactive the plugin. 236 228 237 = 1.2.4 March 13th, 2023 = 229 238 * Fixed the error nonce did not verify when download link is external URL -
quick-download-button/trunk/class/create.downloadpage.class.php
r2767237 r2901151 20 20 21 21 global $wpdb; 22 22 23 $this->title = 'Quick Download Button'; 23 24 24 if ( null == get_page_by_title( $this->title, 'OBJECT', 'post' ) & $this->post_check_duplicates( $this->title ) !== 1) {25 if ( null == $this->get_page_by_title() ) { 25 26 26 27 $this->current_user = wp_get_current_user(); … … 50 51 } 51 52 53 } 54 55 /** 56 * Used to check that the page exist before creating another page 57 * after the plugin is activated. 58 */ 59 public function get_page_by_title() { 60 $page_got_by_title = null; 61 $query = new WP_Query( 62 array( 63 'post_type' => 'page', 64 'title' => $this->title, 65 'post_status' => 'publish', 66 'posts_per_page' => 1, 67 'no_found_rows' => true, 68 'ignore_sticky_posts' => true, 69 'update_post_term_cache' => false, 70 'update_post_meta_cache' => false, 71 'orderby' => 'post_date ID', 72 'order' => 'ASC', 73 ) 74 ); 75 76 if ( ! empty( $query->post ) ) { 77 $page_got_by_title = $query->post; 78 } 79 80 return $page_got_by_title; 52 81 } 53 82 -
quick-download-button/trunk/quick-download-button.php
r2880020 r2901151 5 5 * Plugin URI: https://github.com/kusimo/quick-download-button 6 6 * Description: Use to add download button link to post or page. 7 * Version: 1.2. 47 * Version: 1.2.5 8 8 * Author: Abidemi Kusimo 9 9 * -
quick-download-button/trunk/readme.txt
r2880020 r2901151 1 1 === Quick Download Button === 2 2 Contributors: kusimo 3 Donate link: https://www.buymeacoffee.com/kusimo 3 4 Tags: media download, hide download link, download button 4 5 License: GPLv2 or later … … 6 7 Requires at least: 3.0.1 7 8 Tested up to: 6.0.2 8 Stable tag: 1.2. 39 Stable tag: 1.2.5 9 10 Requires PHP: 5.6 10 11 License: GPLv3 … … 126 127 echo do_shortcode('[quick_download_button title="Download" url="http://yoursite/wp-content/upload/fileto_download.pdf"]'); 127 128 ` 129 130 == Donations == 131 132 Would you like to support the advancement of this plugin? [Donate](https://www.buymeacoffee.com/kusimo) 133 128 134 129 135 == Documentation == … … 226 232 == Changelog == 227 233 234 = 1.2.5 April 19th, 2023 = 235 * Minor fixes of 404 error that occurs when quick download button page is deleted. After deletion of the QDB page, please deactivate and reactive the plugin. 236 228 237 = 1.2.4 March 13th, 2023 = 229 238 * Fixed the error nonce did not verify when download link is external URL
Note: See TracChangeset
for help on using the changeset viewer.