Changeset 2994472
- Timestamp:
- 11/11/2023 03:45:43 PM (9 months ago)
- Location:
- export-media-urls
- Files:
-
- 18 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
export-media-urls/trunk/export-media-urls.php
r2342237 r2994472 1 1 <?php 2 2 3 /** 3 4 * Plugin Name: Export Media URLs 4 5 * Plugin URI: https://wordpress.org/plugins/export-media-urls/ 5 6 * Description: This plugin allows you to extract all URLs of your media, along with title, date, and type. It supports writing output in CSV file, or you can view URLs within the dashboard. It can be very useful during migration, seo analysis and security audit. 6 * Version: 1.07 * Version: .0 7 8 * Author: Atlas Gondal 8 9 * Author URI: https://AtlasGondal.com/ … … 27 28 */ 28 29 29 if ( ! defined( 'WPINC' )) {30 if () { 30 31 die; 31 32 } 32 33 33 define( 'Export_Media_URLs__FILE__', __FILE__);34 define(); 34 35 35 add_action( 'plugins_loaded', 'export_media_urls_load_textdomain');36 add_action(); 36 37 37 function activate_export_media_urls() { 38 if ( version_compare( PHP_VERSION, '5.4', '<' ) ) { 39 deactivate_plugins( plugin_basename( Export_Media_URLs__FILE__ ) ); 40 $plugin_data = get_plugin_data( Export_Media_URLs__FILE__ ); 38 function activate_export_media_urls() 39 { 40 if (version_compare(PHP_VERSION, '5.4', '<')) { 41 deactivate_plugins(plugin_basename(Export_Media_URLs__FILE__)); 42 $plugin_data = get_plugin_data(Export_Media_URLs__FILE__); 41 43 $plugin_version = $plugin_data['Version']; 42 44 $plugin_name = $plugin_data['Name']; 43 wp_die( '<h1>' . __('Could not activate plugin: PHP version error') . '</h1><h2>PLUGIN: <i>' . $plugin_name . ' ' . $plugin_version . '</i></h2><p><strong>' . __('You are using PHP version') . ' ' . PHP_VERSION . '</strong>. ' . __( 'This plugin has been tested with PHP versions 5.4 and greater.') . '</p><p>' . __('WordPress itself recommends using PHP version 7.3 or greater') . ': <a href="https://wordpress.org/about/requirements/" target="_blank">' . __('Official WordPress requirements') . '</a>' . '. ' . __('Please upgrade your PHP version or contact your Server administrator.') . '</p>', __('Could not activate plugin: PHP version error'), array( 'back_link' => true ) ); 44 45 wp_die('<h1>' . __('Could not activate plugin: PHP version error') . '</h1><h2>PLUGIN: <i>' . $plugin_name . ' ' . $plugin_version . '</i></h2><p><strong>' . __('You are using PHP version') . ' ' . PHP_VERSION . '</strong>. ' . __('This plugin has been tested with PHP versions 5.4 and greater.') . '</p><p>' . __('WordPress itself recommends using PHP version 7.3 or greater') . ': <a href="https://wordpress.org/about/requirements/" target="_blank">' . __('Official WordPress requirements') . '</a>' . '. ' . __('Please upgrade your PHP version or contact your Server administrator.') . '</p>', __('Could not activate plugin: PHP version error'), array('back_link' => true)); 45 46 } 46 set_transient( 'export_media_urls_activation_redirect', true, 30);47 ); 47 48 } 48 49 49 register_activation_hook( __FILE__, 'activate_export_media_urls');50 register_activation_hook(); 50 51 51 52 52 function export_media_urls_load_textdomain() { 53 load_plugin_textdomain( 'export-media-urls' ); 53 function export_media_urls_load_textdomain() 54 { 55 load_plugin_textdomain('export-media-urls'); 54 56 } 55 57 56 if ( ! class_exists( 'MediaFromZipAdmin' )) {57 require_once dirname( Export_Media_URLs__FILE__ ) . '/lib/class-export-media-urls-admin.php';58 if () { 59 require_once dirname(/class-export-media-urls-admin.php'; 58 60 } -
export-media-urls/trunk/readme.txt
r2956488 r2994472 4 4 Tags: export media urls, media links, extract media urls, export, utilities, export, csv 5 5 Requires at least: 3.1 6 Tested up to: 6. 36 Tested up to: 6. 7 7 Stable tag: 5.9 8 8 Requires PHP: 5.4 … … 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html 11 11 12 Th is plugin allows you to extract all URLs of your media, along with title, date, and type. It supports writing output in CSV file, or you can view URLs within the dashboard. It can be very useful during migration, seo analysis, and security audit.12 Th. 13 13 14 14 == Description == 15 15 16 This plugin allows you to extract all URLs of your media, along with title, date, and type. It supports writing output in CSV file, or you can view URLs within the dashboard. It can be very useful during migration, seo analysis, and security audit. You can export Media's: 16 The ultimate solution for seamlessly managing and extracting information from your media library. This user-friendly plugin simplifies the task of gathering essential details like title, date, caption, alt-text, description and type of media file. It facilitates the generation of CSV output or allows you to conveniently view URLs directly within the dashboard, proving invaluable for tasks such as migration, SEO analysis, and security audits. 17 18 You can export Media's: 17 19 18 20 * ID 19 21 * Title 22 23 24 25 20 26 * URL 21 27 * Date Uploaded … … 86 92 We couldn't find a plugin that would export media URLs, along with additional data such as name, date and type. So, we make this utility, and it works just like that. 87 93 94 95 96 97 98 99 100 101 88 102 = Why the file name is randomly generated? = 89 103 90 104 Exporting the file with static name can be easily found by malicious attacker, and may result in sensitive information leakage. So we decided to generate random name, which are harder to guess. 105 106 107 108 109 110 111 112 113 114 115 116 91 117 92 118 = Does Export All URLs make changes to the database? = … … 94 120 No. It has no settings / configurations to store so it does not touch the database. 95 121 122 123 124 125 96 126 = Which PHP version do I need? = 97 127 98 This plugin has been tested and works with PHP versions 5.4 and greater. WordPress itself [recommends using PHP version 7. 3or greater](https://wordpress.org/about/requirements/). If you're using a PHP version lower than 5.4 please upgrade your PHP version or contact your Server administrator.128 This plugin has been tested and works with PHP versions 5.4 and greater. WordPress itself [recommends using PHP version 7. or greater](https://wordpress.org/about/requirements/). If you're using a PHP version lower than 5.4 please upgrade your PHP version or contact your Server administrator. 99 129 100 130 = Are there any server requirements? = … … 111 141 == Changelog == 112 142 143 144 145 146 147 148 149 150 113 151 = 1.0 = 114 152 … … 117 155 == Upgrade Notice == 118 156 119 = 1.0 =157 = .0 = 120 158 121 * initial release 159 * Added - additional data fields (file name, caption, alt-text, description) 160 * Added - enables user to delete the file once downloaded 161 * Added - support for the translation 162 * Fixed - patched a security vulnerability 163 * Improvement - a few code refinements and validation checks 164 * Compatibility - tested with wordpress 6.4.1 & PHP 8.2.0
Note: See TracChangeset
for help on using the changeset viewer.