Changeset 3486892
- Timestamp:
- 03/20/2026 12:56:42 AM (10 days ago)
- Location:
- quick-download-button
- Files:
-
- 1 edited
- 13 copied
-
tags/1.3.0 (copied) (copied from quick-download-button/trunk)
-
tags/1.3.0/build/index.asset.php (copied) (copied from quick-download-button/trunk/build/index.asset.php)
-
tags/1.3.0/build/index.js (copied) (copied from quick-download-button/trunk/build/index.js)
-
tags/1.3.0/class/shortcode.class.php (copied) (copied from quick-download-button/trunk/class/shortcode.class.php)
-
tags/1.3.0/css/editor.css (copied) (copied from quick-download-button/trunk/css/editor.css)
-
tags/1.3.0/css/minified/style.min.css (copied) (copied from quick-download-button/trunk/css/minified/style.min.css)
-
tags/1.3.0/css/style.css (copied) (copied from quick-download-button/trunk/css/style.css)
-
tags/1.3.0/frontend/frontend.js (copied) (copied from quick-download-button/trunk/frontend/frontend.js)
-
tags/1.3.0/frontend/minified/frontend.js (copied) (copied from quick-download-button/trunk/frontend/minified/frontend.js)
-
tags/1.3.0/quick-download-button.php (copied) (copied from quick-download-button/trunk/quick-download-button.php)
-
tags/1.3.0/readme.txt (copied) (copied from quick-download-button/trunk/readme.txt)
-
tags/1.3.0/src/index.js (copied) (copied from quick-download-button/trunk/src/index.js)
-
tags/1.3.0/templates/download.php (copied) (copied from quick-download-button/trunk/templates/download.php)
-
trunk/quick-download-button.php (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
quick-download-button/trunk/quick-download-button.php
r3486889 r3486892 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.77 * Version: 1.3.0 8 8 * Author: Abidemi Kusimo 9 9 * … … 25 25 add_action( 'init', 'qdbu_quick_download_button_load_textdomain' ); 26 26 27 /** 28 * function qdbu_quick_download_button_load_textdomain 29 * 30 * @return void 31 */ 27 32 function qdbu_quick_download_button_load_textdomain() { 28 33 load_plugin_textdomain( 'quick-download-button', false, basename( __DIR__ ) . '/languages' ); … … 53 58 add_action( 'init', 'qdbu_quick_download_button_register_blocks' ); 54 59 60 /** 61 * function qdbu_quick_download_button_register_blocks 62 * 63 * @return void 64 */ 55 65 function qdbu_quick_download_button_register_blocks() { 56 66 //If Block Editor is not active, bail. … … 120 130 } 121 131 132 /** 133 * function qdbu_enqueue_block_editor_assets 134 * 135 * @return void 136 */ 122 137 function qdbu_enqueue_block_editor_assets() { 123 138 // Enqueue editor-specific styles … … 140 155 add_action('enqueue_block_editor_assets', 'qdbu_enqueue_block_editor_assets'); 141 156 142 157 /** 158 * function has_quick_download_button 159 * 160 * @param mixed $post_id 161 * 162 * @return bool 163 */ 143 164 function has_quick_download_button($post_id) { 144 165 $post = get_post($post_id); … … 159 180 160 181 /** 182 * function qdbu_enqueue_download_button_styles 183 * 161 184 * Front end CSS 185 * 186 * @return void 162 187 */ 163 188 function qdbu_enqueue_download_button_styles() { … … 176 201 177 202 /** 203 * function qdbu_button_front_end_script 204 * 178 205 * Front end Script 206 * 207 * @return void 179 208 */ 180 209 function qdbu_button_front_end_script() { … … 215 244 add_action( 'wp_ajax_quick-download-button-frontend-script', 'qdbu_download_ajax_referer' ); 216 245 217 218 /** 246 /** 247 * function qdbu_download_ajax_referer 248 * 219 249 * Nonce to be used for download page 220 */ 221 250 * 251 * @return mixed 252 */ 222 253 function qdbu_download_ajax_referer() { 223 254 //nonce-field is created on page … … 247 278 * */ 248 279 if ( ! function_exists( 'qdbu_default_url' ) ) { 280 281 /** 282 * function qdbu_default_url 283 * 284 * @return mixed 285 */ 249 286 function qdbu_default_url() { 250 287 … … 263 300 264 301 /** 302 * function qdbu_download_button_plugin_templates 303 * 265 304 * Get Custom Template for the download page 266 305 * 267 * @param mixed $template 268 * @return void 306 * @param mixed $template 307 * 308 * @return mixed 269 309 */ 270 310 function qdbu_download_button_plugin_templates( $template ) { … … 282 322 283 323 // register custom meta tag field 284 /** 324 325 /** 326 * function qdbu_register_post_meta 327 * 285 328 * Feature development - to store the download url in the cutom field. Do not uncomment qdbu_register_post_meta. 286 329 * 287 * @return void330 * @return mixed 288 331 */ 289 332 function qdbu_register_post_meta() {
Note: See TracChangeset
for help on using the changeset viewer.