From 41ac69efae33f6189eefab4080f118f86ce51b61 Mon Sep 17 00:00:00 2001 From: Arun Basil Lal Date: Sun, 6 May 2018 12:03:37 +0530 Subject: [PATCH 01/16] First real commit to Readme.md --- README.md | 88 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 86 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2f5c6ca..717a479 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,86 @@ -# Auto-Image-Attributes-From-Filename-With-Bulk-Updater -Automatically add WordPress image attributes such as image title, image caption, description and alt txt from image filename. This WordPress plugin can update image attributes for both new images and existing images in the media library. +# Auto Image Attributes From Filename With Bulk Updater + +Automatically Add Image Title, Caption, Description And Alt Text From Filename. Includes a bulk updater to update existing images in the Media Library + +The plugin can update image attributes for both new images and existing images in the media library. + +With this plugin you can: + +* Set the image filename as the image Title. +* Set the image filename as the image Caption. +* Set the image filename as the image Description. +* Set the image filename as the image Alt Text. This was a default feature in WordPress before 4.7. The plugin restores this essential feature which is great for SEO. +* Insert Image Title into post HTML. WordPress stopped adding Image Titles to images since WordPress 3.5. The plugin restores it. +* Remove hyphens from the image filename. +* Remove underscores from the image filename. +* Remove full stops from filename. +* Remove commas from filename. +* Remove all numbers from filename. +* Choose to turn off any of the above mentioned features. + +With the bulk updater you can: + +* Set the image filename as image Title, Caption, Description and Alt Text after removing hyphens and underscores from the filename. +* Update any number of images in your Media Library in one click. + +If your image filename is *My_image-name.jpg*, your Image Title, Caption, Description And Alt Text will be *My image name*. + +The plugin settings and bulk updater are in WordPress Admin > Settings > Image Attributes. Here you can choose which attributes to update for NEW uploads. + +Please remember to take a database backup before running the bulk updater. The bulk updater updates ALL attributes for existing images in the Media Library and ignores the settings set for NEW uploads. + +**Image Attributes Pro** + +A pro add-on is now available for the plugin. Check out [Image Attributes Pro](https://imageattributespro.com/?utm_source=wordpress&utm_medium=readme). + +What the pro add-on you get these additional features: + +* Remove apostrophe ( ' ) from filename +* Remove tilde ( ~ ) from filename +* Remove plus ( + ) from filename +* Remove pound ( # ) from filename +* Remove ampersand ( & ) from filename +* Remove round brackets ( ( ) ) from filename +* Remove square brackets ( [ ] ) from filename +* Remove curly brackets ( { } ) from filename +* Filter words or characters from filename +* Filter filename with regex +* convert image attributes to lowercase +* CONVERT IMAGE ATTRIBUTES TO UPPERCASE +* Use title casing for image attributes. First Letter Of Each Word Will Be Capitalized. +* Use sentence casing for image attributes. First letter of a sentence will be capitalized. +* Clean the actual image filename after upload. +* Use post title as title text. If image is not attached to a post, image filename will be used instead. +* Use post title as alt text. If image is not attached to a post, image filename will be used instead. +* Use post title as caption. If image is not attached to a post, image filename will be used instead. +* Use post title as description. If image is not attached to a post, image filename will be used instead. +* Choose to turn off any of the above mentioned features. + +With the pro bulk updater you can: + +* Update image title and alt text for images inserted into posts and custom post types. +* Fine tune all settings. Choose what to update. +* Update image titles / alt text in media library only. Image titles / alt text in existing posts will be left unchanged. +* Update image titles / alt text in media library and existing posts. +* Update image titles / alt text in existing posts only if no title / alt text is set. All image titles/ alt text in media library will be updated. +* Choose to turn off any of the above mentioned features. + +For screenshots, FAQ and further details, please see the [product website](https://imageattributespro.com/?utm_source=wordpress&utm_medium=readme). + +== Installation == + +To install this plugin: + +1. Install the plugin through the WordPress admin interface, or upload the plugin folder to /wp-content/plugins/ using ftp. +2. Activate the plugin through the 'Plugins' screen in WordPress. +3. Go to WordPress Admin > Settings > Image Attributes. + +== Frequently Asked Questions == + += Will this plugin update existing images in the media library? = + +Yes, the plugin will update image Title, Caption, Description And Alt Text from the image filename for both existing images in the media library and new uploads. + += I need more features. Can I hire you? = + +Please checkout the [Image Attributes Pro add-on](https://imageattributespro.com/?utm_source=wordpress&utm_medium=readme) to see if it suits your requirement. If not, please [get in touch via my contact form](http://millionclues.com/contact/) with a brief description of your requirement and budget for the project. I will be in touch shortly. \ No newline at end of file From 0ca6f23b135e188226ff379cd1ab2311b7a90f4b Mon Sep 17 00:00:00 2001 From: Arun Basil Lal Date: Sun, 6 May 2018 12:06:16 +0530 Subject: [PATCH 02/16] Updated headings and UTM tracking parameters --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 717a479..8910d37 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ Please remember to take a database backup before running the bulk updater. The b **Image Attributes Pro** -A pro add-on is now available for the plugin. Check out [Image Attributes Pro](https://imageattributespro.com/?utm_source=wordpress&utm_medium=readme). +A pro add-on is now available for the plugin. Check out [Image Attributes Pro](https://imageattributespro.com/?utm_source=github&utm_medium=readme.md). What the pro add-on you get these additional features: @@ -65,9 +65,9 @@ With the pro bulk updater you can: * Update image titles / alt text in existing posts only if no title / alt text is set. All image titles/ alt text in media library will be updated. * Choose to turn off any of the above mentioned features. -For screenshots, FAQ and further details, please see the [product website](https://imageattributespro.com/?utm_source=wordpress&utm_medium=readme). +For screenshots, FAQ and further details, please see the [product website](https://imageattributespro.com/?utm_source=github&utm_medium=readme.md). -== Installation == +## Installation To install this plugin: @@ -75,12 +75,12 @@ To install this plugin: 2. Activate the plugin through the 'Plugins' screen in WordPress. 3. Go to WordPress Admin > Settings > Image Attributes. -== Frequently Asked Questions == +## Frequently Asked Questions -= Will this plugin update existing images in the media library? = +### Will this plugin update existing images in the media library? Yes, the plugin will update image Title, Caption, Description And Alt Text from the image filename for both existing images in the media library and new uploads. -= I need more features. Can I hire you? = +### I need more features. Can I hire you? -Please checkout the [Image Attributes Pro add-on](https://imageattributespro.com/?utm_source=wordpress&utm_medium=readme) to see if it suits your requirement. If not, please [get in touch via my contact form](http://millionclues.com/contact/) with a brief description of your requirement and budget for the project. I will be in touch shortly. \ No newline at end of file +Please checkout the [Image Attributes Pro add-on](https://imageattributespro.com/?utm_source=github&utm_medium=readme.md) to see if it suits your requirement. From ce78e915b2db1753d434395b9adbd4625029c706 Mon Sep 17 00:00:00 2001 From: Arun Basil Lal Date: Sun, 6 May 2018 12:16:58 +0530 Subject: [PATCH 03/16] Enhancement: Changed text domain from abl_iaff_td to auto-image-attributes-from-filename-with-bulk-updater to make the plugin translation ready in translate.wordpress.org --- ...e-attributes-from-filename-admin-setup.php | 48 ++--- ...tributes-from-filename-admin-ui-render.php | 196 +++++++++--------- ...e-attributes-from-filename-basic-setup.php | 8 +- ...iaff_image-attributes-from-filename-do.php | 4 +- iaff_image-attributes-from-filename.php | 2 +- readme.txt | 4 + 6 files changed, 133 insertions(+), 129 deletions(-) diff --git a/admin/iaff_image-attributes-from-filename-admin-setup.php b/admin/iaff_image-attributes-from-filename-admin-setup.php index 30ec4a7..f039bbd 100644 --- a/admin/iaff_image-attributes-from-filename-admin-setup.php +++ b/admin/iaff_image-attributes-from-filename-admin-setup.php @@ -52,7 +52,7 @@ function iaff_register_settings() { // Register Basic Settings Section add_settings_section( 'iaff_basic_settings_section_id', // ID - __('Basic Settings','abl_iaff_td'), // Title + __('Basic Settings','auto-image-attributes-from-filename-with-bulk-updater'), // Title '__return_false', // Callback Function 'iaff_basic_settings_section' // Page slug ); @@ -60,7 +60,7 @@ function iaff_register_settings() { // Global Switch add_settings_field( 'iaff_global_switch', // ID - __('Global Switch', 'abl_iaff_td'), // Title + __('Global Switch', 'auto-image-attributes-from-filename-with-bulk-updater'), // Title 'iaff_global_switch_callback', // Callback function 'iaff_basic_settings_section', // Page slug 'iaff_basic_settings_section_id' // Settings Section ID @@ -69,7 +69,7 @@ function iaff_register_settings() { // General Settings add_settings_field( 'iaff_general_settings', // ID - __('General Settings', 'abl_iaff_td'), // Title + __('General Settings', 'auto-image-attributes-from-filename-with-bulk-updater'), // Title 'iaff_general_settings_callback', // Callback function 'iaff_basic_settings_section', // Page slug 'iaff_basic_settings_section_id' // Settings Section ID @@ -78,7 +78,7 @@ function iaff_register_settings() { // Filter Settings add_settings_field( 'iaff_filter_settings', // ID - __('Filter Settings', 'abl_iaff_td'), // Title + __('Filter Settings', 'auto-image-attributes-from-filename-with-bulk-updater'), // Title 'iaff_filter_settings_callback', // Callback function 'iaff_basic_settings_section', // Page slug 'iaff_basic_settings_section_id' // Settings Section ID @@ -87,7 +87,7 @@ function iaff_register_settings() { // Basic SEO Settings add_settings_field( 'iaff_basic_seo_settings', // ID - __('Basic SEO Settings', 'abl_iaff_td'), // Title + __('Basic SEO Settings', 'auto-image-attributes-from-filename-with-bulk-updater'), // Title 'iaff_basic_seo_settings_callback', // Callback function 'iaff_basic_settings_section', // Page slug 'iaff_basic_settings_section_id' // Settings Section ID @@ -98,7 +98,7 @@ function iaff_register_settings() { add_settings_field( 'iaff_preview_pro_settings', // ID - __('Preview Pro Features', 'abl_iaff_td'), // Title + __('Preview Pro Features', 'auto-image-attributes-from-filename-with-bulk-updater'), // Title 'iaff_preview_pro_settings_callback', // Callback function 'iaff_basic_settings_section', // Page slug 'iaff_basic_settings_section_id' // Settings Section ID @@ -108,7 +108,7 @@ function iaff_register_settings() { // Register Advanced Settings Section add_settings_section( 'iaff_advanced_settings_section_id', // ID - __('Advanced Settings','abl_iaff_td'), // Title + __('Advanced Settings','auto-image-attributes-from-filename-with-bulk-updater'), // Title '__return_false', // Callback Function 'iaff_advanced_settings_section' // Page slug ); @@ -116,7 +116,7 @@ function iaff_register_settings() { // Advanced Filter add_settings_field( 'iaff_advanced_filter_settings', // ID - __('Advanced Filter', 'abl_iaff_td'), // Title + __('Advanced Filter', 'auto-image-attributes-from-filename-with-bulk-updater'), // Title 'iaff_advanced_filter_callback', // Callback function 'iaff_advanced_settings_section', // Page slug 'iaff_advanced_settings_section_id' // Settings Section ID @@ -125,7 +125,7 @@ function iaff_register_settings() { // Custom Filter add_settings_field( 'iaff_custom_filter_settings', // ID - __('Custom Filter', 'abl_iaff_td'), // Title + __('Custom Filter', 'auto-image-attributes-from-filename-with-bulk-updater'), // Title 'iaff_custom_filter_callback', // Callback function 'iaff_advanced_settings_section', // Page slug 'iaff_advanced_settings_section_id' // Settings Section ID @@ -134,7 +134,7 @@ function iaff_register_settings() { // Capitalization Settings add_settings_field( 'iaff_capitalization_settings', // ID - __('Capitalization Settings', 'abl_iaff_td'),// Title + __('Capitalization Settings', 'auto-image-attributes-from-filename-with-bulk-updater'),// Title 'iaff_capitalization_callback', // Callback function 'iaff_advanced_settings_section', // Page slug 'iaff_advanced_settings_section_id' // Settings Section ID @@ -143,7 +143,7 @@ function iaff_register_settings() { // Image Title Settings add_settings_field( 'iaff_image_title_settings', // ID - __('Image Title Settings', 'abl_iaff_td'), // Title + __('Image Title Settings', 'auto-image-attributes-from-filename-with-bulk-updater'), // Title 'iaff_advanced_image_title_callback', // Callback function 'iaff_advanced_settings_section', // Page slug 'iaff_advanced_settings_section_id' // Settings Section ID @@ -152,7 +152,7 @@ function iaff_register_settings() { // Image Alt Text Settings add_settings_field( 'iaff_image_alt_text_settings', // ID - __('Image Alt Text Settings', 'abl_iaff_td'),// Title + __('Image Alt Text Settings', 'auto-image-attributes-from-filename-with-bulk-updater'),// Title 'iaff_advanced_image_alt_text_callback', // Callback function 'iaff_advanced_settings_section', // Page slug 'iaff_advanced_settings_section_id' // Settings Section ID @@ -161,7 +161,7 @@ function iaff_register_settings() { // Image Caption Settings add_settings_field( 'iaff_image_caption_settings', // ID - __('Image Caption Settings', 'abl_iaff_td'),// Title + __('Image Caption Settings', 'auto-image-attributes-from-filename-with-bulk-updater'),// Title 'iaff_advanced_image_caption_callback', // Callback function 'iaff_advanced_settings_section', // Page slug 'iaff_advanced_settings_section_id' // Settings Section ID @@ -170,7 +170,7 @@ function iaff_register_settings() { // Image Description Settings add_settings_field( 'iaff_image_description_settings', // ID - __('Image Description Settings', 'abl_iaff_td'),// Title + __('Image Description Settings', 'auto-image-attributes-from-filename-with-bulk-updater'),// Title 'iaff_advanced_image_description_callback', // Callback function 'iaff_advanced_settings_section', // Page slug 'iaff_advanced_settings_section_id' // Settings Section ID @@ -179,7 +179,7 @@ function iaff_register_settings() { // Miscellaneous Settings add_settings_field( 'iaff_miscellaneous_settings', // ID - __('Miscellaneous Settings', 'abl_iaff_td'),// Title + __('Miscellaneous Settings', 'auto-image-attributes-from-filename-with-bulk-updater'),// Title 'iaff_miscellaneous_callback', // Callback function 'iaff_advanced_settings_section', // Page slug 'iaff_advanced_settings_section_id' // Settings Section ID @@ -188,7 +188,7 @@ function iaff_register_settings() { // Register Bulk Updater Settings Section add_settings_section( 'iaff_bu_settings_section_id', // ID - __('Bulk Updater Settings','abl_iaff_td'), // Title + __('Bulk Updater Settings','auto-image-attributes-from-filename-with-bulk-updater'), // Title '__return_false', // Callback Function 'iaff_bu_settings_section' // Page slug ); @@ -196,7 +196,7 @@ function iaff_register_settings() { // General Settings add_settings_field( 'iaff_bu_general_settings', // ID - __('General Settings', 'abl_iaff_td'), // Title + __('General Settings', 'auto-image-attributes-from-filename-with-bulk-updater'), // Title 'iaff_bu_general_settings_callback', // Callback function 'iaff_bu_settings_section', // Page slug 'iaff_bu_settings_section_id' // Settings Section ID @@ -205,7 +205,7 @@ function iaff_register_settings() { // Filter Settings add_settings_field( 'iaff_bu_filter_settings', // ID - __('Filter Settings', 'abl_iaff_td'), // Title + __('Filter Settings', 'auto-image-attributes-from-filename-with-bulk-updater'), // Title 'iaff_bu_filter_settings_callback', // Callback function 'iaff_bu_settings_section', // Page slug 'iaff_bu_settings_section_id' // Settings Section ID @@ -214,7 +214,7 @@ function iaff_register_settings() { // Custom Filter add_settings_field( 'iaff_bu_custom_filter_settings', // ID - __('Custom Filter', 'abl_iaff_td'), // Title + __('Custom Filter', 'auto-image-attributes-from-filename-with-bulk-updater'), // Title 'iaff_bu_custom_filter_callback', // Callback function 'iaff_bu_settings_section', // Page slug 'iaff_bu_settings_section_id' // Settings Section ID @@ -223,7 +223,7 @@ function iaff_register_settings() { // Capitalization Settings add_settings_field( 'iaff_bu_capitalization_settings', // ID - __('Capitalization Settings', 'abl_iaff_td'), // Title + __('Capitalization Settings', 'auto-image-attributes-from-filename-with-bulk-updater'), // Title 'iaff_bu_capitalization_settings_callback', // Callback function 'iaff_bu_settings_section', // Page slug 'iaff_bu_settings_section_id' // Settings Section ID @@ -232,7 +232,7 @@ function iaff_register_settings() { // Image Title Settings add_settings_field( 'iaff_bu_image_title_settings', // ID - __('Image Title Settings', 'abl_iaff_td'), // Title + __('Image Title Settings', 'auto-image-attributes-from-filename-with-bulk-updater'), // Title 'iaff_bu_image_title_settings_callback', // Callback function 'iaff_bu_settings_section', // Page slug 'iaff_bu_settings_section_id' // Settings Section ID @@ -241,7 +241,7 @@ function iaff_register_settings() { // Image Alt Text Settings add_settings_field( 'iaff_bu_alt_text_settings', // ID - __('Image Alt Text Settings', 'abl_iaff_td'), // Title + __('Image Alt Text Settings', 'auto-image-attributes-from-filename-with-bulk-updater'), // Title 'iaff_bu_alt_text_settings_callback', // Callback function 'iaff_bu_settings_section', // Page slug 'iaff_bu_settings_section_id' // Settings Section ID @@ -250,7 +250,7 @@ function iaff_register_settings() { // Image Caption Settings add_settings_field( 'iaff_bu_image_caption_settings', // ID - __('Image Caption Settings', 'abl_iaff_td'), // Title + __('Image Caption Settings', 'auto-image-attributes-from-filename-with-bulk-updater'), // Title 'iaff_bu_image_caption_settings_callback', // Callback function 'iaff_bu_settings_section', // Page slug 'iaff_bu_settings_section_id' // Settings Section ID @@ -259,7 +259,7 @@ function iaff_register_settings() { // Image Description Settings add_settings_field( 'iaff_bu_image_description_settings', // ID - __('Image Description Settings', 'abl_iaff_td'),// Title + __('Image Description Settings', 'auto-image-attributes-from-filename-with-bulk-updater'),// Title 'iaff_bu_image_description_settings_callback', // Callback function 'iaff_bu_settings_section', // Page slug 'iaff_bu_settings_section_id' // Settings Section ID diff --git a/admin/iaff_image-attributes-from-filename-admin-ui-render.php b/admin/iaff_image-attributes-from-filename-admin-ui-render.php index 5fea157..8de943f 100644 --- a/admin/iaff_image-attributes-from-filename-admin-ui-render.php +++ b/admin/iaff_image-attributes-from-filename-admin-ui-render.php @@ -45,7 +45,7 @@ function iaff_global_switch_callback() {
@@ -71,25 +71,25 @@ function iaff_general_settings_callback() {



@@ -114,31 +114,31 @@ function iaff_filter_settings_callback() {




@@ -162,7 +162,7 @@ function iaff_basic_seo_settings_callback() {
@@ -186,7 +186,7 @@ function iaff_preview_pro_settings_callback() {
@@ -212,49 +212,49 @@ function iaff_advanced_filter_callback() {







@@ -302,31 +302,31 @@ function iaff_capitalization_callback() {




@@ -349,12 +349,12 @@ function iaff_advanced_image_title_callback() {

@@ -377,12 +377,12 @@ function iaff_advanced_image_alt_text_callback() {

@@ -405,12 +405,12 @@ function iaff_advanced_image_caption_callback() {

@@ -433,12 +433,12 @@ function iaff_advanced_image_description_callback() {

@@ -462,7 +462,7 @@ function iaff_miscellaneous_callback() {
@@ -486,25 +486,25 @@ function iaff_bu_general_settings_callback() {



@@ -528,79 +528,79 @@ function iaff_bu_filter_settings_callback() {












@@ -648,31 +648,31 @@ function iaff_bu_capitalization_settings_callback() {




@@ -695,29 +695,29 @@ function iaff_bu_image_title_settings_callback() {

Bulk Updater Behaviour




@@ -740,29 +740,29 @@ function iaff_bu_alt_text_settings_callback() {

Bulk Updater Behaviour




@@ -785,12 +785,12 @@ function iaff_bu_image_caption_settings_callback() {

@@ -813,12 +813,12 @@ function iaff_bu_image_description_settings_callback() {

@@ -856,13 +856,13 @@ function iaff_admin_interface_render () {
@@ -872,10 +872,10 @@ function iaff_admin_interface_render () {
-

-

+

+

- +
@@ -883,14 +883,14 @@ function iaff_admin_interface_render () {
-

+

-

-

+

+

- +
@@ -898,14 +898,14 @@ function iaff_admin_interface_render () {
-

+

-

-

+

+

- + @@ -913,15 +913,15 @@ function iaff_admin_interface_render () {
-

+

-

+

-

-

+

+

-

a-lot-like_love.jpg, your Image Title, Caption, Description and Alt Text will be: a lot like love. Upgrade to Pro for more options.', 'abl_iaff_td' ), 'https://imageattributespro.com/?utm_source=iaff-basic&utm_medium=bulk-updater-notice' ); ?>

+

a-lot-like_love.jpg, your Image Title, Caption, Description and Alt Text will be: a lot like love. Upgrade to Pro for more options.', 'auto-image-attributes-from-filename-with-bulk-updater' ), 'https://imageattributespro.com/?utm_source=iaff-basic&utm_medium=bulk-updater-notice' ); ?>

@@ -933,12 +933,12 @@ function iaff_admin_interface_render () {

-

+

-

+

- + @@ -947,9 +947,9 @@ function iaff_admin_interface_render () {  Event Log 
-

+

-

+

@@ -979,9 +979,9 @@ function iaff_admin_interface_render () {
-

+

-

+

diff --git a/admin/iaff_image-attributes-from-filename-basic-setup.php b/admin/iaff_image-attributes-from-filename-basic-setup.php index 30aa465..043dd30 100644 --- a/admin/iaff_image-attributes-from-filename-basic-setup.php +++ b/admin/iaff_image-attributes-from-filename-basic-setup.php @@ -33,7 +33,7 @@ function iaff_activate_plugin() { * @since 1.0 */ function iaff_load_plugin_textdomain() { - load_plugin_textdomain( 'abl_iaff_td', FALSE, IAFF_IMAGE_ATTRIBUTES_FROM_FILENAME_DIR . '/languages/' ); + load_plugin_textdomain( 'auto-image-attributes-from-filename-with-bulk-updater', FALSE, IAFF_IMAGE_ATTRIBUTES_FROM_FILENAME_DIR . '/languages/' ); } add_action( 'plugins_loaded', 'iaff_load_plugin_textdomain' ); @@ -46,7 +46,7 @@ function iaff_load_plugin_textdomain() { function iaff_settings_link( $links ) { return array_merge( array( - 'settings' => '' . __( 'Settings', 'abl_iaff_td' ) . '' + 'settings' => '' . __( 'Settings', 'auto-image-attributes-from-filename-with-bulk-updater' ) . '' ), $links ); @@ -93,13 +93,13 @@ function iaff_footer_text($default) { return $default; } - $iaff_footer_text = sprintf( __( 'If you like this plugin, please upgrade to pro or leave a ★★★★★ rating to support continued development. Thanks a bunch!', 'abl_iaff_td' ), + $iaff_footer_text = sprintf( __( 'If you like this plugin, please upgrade to pro or leave a ★★★★★ rating to support continued development. Thanks a bunch!', 'auto-image-attributes-from-filename-with-bulk-updater' ), 'https://imageattributespro.com/?utm_source=iaff-basic&utm_medium=footer', 'https://wordpress.org/support/plugin/auto-image-attributes-from-filename-with-bulk-updater/reviews/?rate=5#new-post' ); if( iaff_is_pro() ) { - $iaff_footer_text = __( 'Thank you for choosing Image Attributes Pro! Use the support tab if you have any questions or feedback.', 'abl_iaff_td' ); + $iaff_footer_text = __( 'Thank you for choosing Image Attributes Pro! Use the support tab if you have any questions or feedback.', 'auto-image-attributes-from-filename-with-bulk-updater' ); } return $iaff_footer_text; diff --git a/admin/iaff_image-attributes-from-filename-do.php b/admin/iaff_image-attributes-from-filename-do.php index 6b7ebeb..9c13a5c 100644 --- a/admin/iaff_image-attributes-from-filename-do.php +++ b/admin/iaff_image-attributes-from-filename-do.php @@ -106,7 +106,7 @@ function iaff_rename_old_image() { $image_url = wp_get_attachment_url($image->ID); // Update Event log - echo __('Image attributes updated for: ', 'abl_iaff_td') . ''. $image_url .''; + echo __('Image attributes updated for: ', 'auto-image-attributes-from-filename-with-bulk-updater') . ''. $image_url .''; wp_die(); } @@ -179,7 +179,7 @@ function iaff_reset_bulk_updater_counter() { update_option( 'iaff_bulk_updater_counter', '0' ); $response = array( - 'message' => __('Counter reset. The bulk updater will start from scratch in the next run.', 'abl_iaff_td'), + 'message' => __('Counter reset. The bulk updater will start from scratch in the next run.', 'auto-image-attributes-from-filename-with-bulk-updater'), 'remaining_images' => iaff_count_remaining_images(true), ); wp_send_json($response); diff --git a/iaff_image-attributes-from-filename.php b/iaff_image-attributes-from-filename.php index 335ceb3..8c6ac35 100644 --- a/iaff_image-attributes-from-filename.php +++ b/iaff_image-attributes-from-filename.php @@ -6,7 +6,7 @@ * Author: Arun Basil Lal * Author URI: http://millionclues.com * Version: 1.4 - * Text Domain: abl_iaff_td + * Text Domain: auto-image-attributes-from-filename-with-bulk-updater * Domain Path: /languages * License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html */ diff --git a/readme.txt b/readme.txt index b90117e..c3d465c 100644 --- a/readme.txt +++ b/readme.txt @@ -110,6 +110,10 @@ I am glad to hear that! You can either [upgrade to pro](https://imageattributesp == Changelog == += 1.5 = +* Date: +* Enhancement: Changed text domain from abl_iaff_td to auto-image-attributes-from-filename-with-bulk-updater to make the plugin translation ready in translate.wordpress.org + = 1.4 = * Date: 22.November.2017 * NEW: Global switch to enable or disable the plugin. From 27c366a022b9fd2b26a62ea848d1bfee49bee8e9 Mon Sep 17 00:00:00 2001 From: Arun Basil Lal Date: Sun, 6 May 2018 12:19:53 +0530 Subject: [PATCH 04/16] Version bump to 1.5 Also removed the todo in the file since the todo is now handled in the internal project tracker. --- iaff_image-attributes-from-filename.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/iaff_image-attributes-from-filename.php b/iaff_image-attributes-from-filename.php index 8c6ac35..e0e28f6 100644 --- a/iaff_image-attributes-from-filename.php +++ b/iaff_image-attributes-from-filename.php @@ -5,7 +5,7 @@ * Description: Automatically Add Image Title, Image Caption, Description And Alt Text From Image Filename. Since this plugin includes a bulk updater this can update both existing images in the Media Library and new images. * Author: Arun Basil Lal * Author URI: http://millionclues.com - * Version: 1.4 + * Version: 1.5 * Text Domain: auto-image-attributes-from-filename-with-bulk-updater * Domain Path: /languages * License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html @@ -31,12 +31,6 @@ * uninstall.php - Fired when the plugin is uninstalled. */ -/** - * :TODO: - * - * - Update IAFF_VERSION_NUM in iaff_starter-plugin.php (keep this line for future updates) - */ - // Exit if accessed directly if ( ! defined('ABSPATH') ) exit; @@ -68,7 +62,7 @@ * @refer https://www.smashingmagazine.com/2011/03/ten-things-every-wordpress-plugin-developer-should-know/ */ if (!defined('IAFF_VERSION_NUM')) - define('IAFF_VERSION_NUM', '1.4'); + define('IAFF_VERSION_NUM', '1.5'); /** * Upgrade database settings on update From 09b29d89b096a3b299a10ebf1f569a2684303376 Mon Sep 17 00:00:00 2001 From: Arun Basil Lal Date: Sun, 6 May 2018 12:36:58 +0530 Subject: [PATCH 05/16] Updated website and donate URLs --- iaff_image-attributes-from-filename.php | 4 ++-- readme.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/iaff_image-attributes-from-filename.php b/iaff_image-attributes-from-filename.php index e0e28f6..cab6f8f 100644 --- a/iaff_image-attributes-from-filename.php +++ b/iaff_image-attributes-from-filename.php @@ -1,10 +1,10 @@ Date: Sun, 6 May 2018 12:41:17 +0530 Subject: [PATCH 06/16] Updated UTM params in Plugin and Author URI These links are used not just on wordpress.org but also in the plugins list in wp-admin as well. --- iaff_image-attributes-from-filename.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iaff_image-attributes-from-filename.php b/iaff_image-attributes-from-filename.php index cab6f8f..918a174 100644 --- a/iaff_image-attributes-from-filename.php +++ b/iaff_image-attributes-from-filename.php @@ -1,10 +1,10 @@ Date: Sun, 6 May 2018 13:40:45 +0530 Subject: [PATCH 07/16] Using esc_attr instead of esc_attr_e for escaping text input fields Based on this feedback: https://millionclues.com/wordpress-tips/sanitize-and-escape-text-input-in-wordpress/#comment-671191 --- ...ge-attributes-from-filename-admin-ui-render.php | 14 +++++++------- readme.txt | 3 ++- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/admin/iaff_image-attributes-from-filename-admin-ui-render.php b/admin/iaff_image-attributes-from-filename-admin-ui-render.php index 8de943f..94e08f7 100644 --- a/admin/iaff_image-attributes-from-filename-admin-ui-render.php +++ b/admin/iaff_image-attributes-from-filename-admin-ui-render.php @@ -276,10 +276,10 @@ function iaff_custom_filter_callback() {

Enter words or characters to filter separated by commas. Filter is case sensitive.

-

+

Filter with regular expression

-
+
@@ -622,10 +622,10 @@ function iaff_bu_custom_filter_callback() {

Enter words or characters to filter separated by commas. Filter is case sensitive.

-

+

Filter with regular expression

-
+
@@ -926,11 +926,11 @@ function iaff_admin_interface_render () {

- + - + - +

diff --git a/readme.txt b/readme.txt index eddd3b4..9425ecb 100644 --- a/readme.txt +++ b/readme.txt @@ -112,7 +112,8 @@ I am glad to hear that! You can either [upgrade to pro](https://imageattributesp = 1.5 = * Date: -* Enhancement: Changed text domain from abl_iaff_td to auto-image-attributes-from-filename-with-bulk-updater to make the plugin translation ready in translate.wordpress.org +* Enhancement: Changed text domain from abl_iaff_td to auto-image-attributes-from-filename-with-bulk-updater to make the plugin translation ready in translate.wordpress.org. +* Enhancement: Code improvements. = 1.4 = * Date: 22.November.2017 From 5c11b218f9bb06ad3a10f8aefe1f995862d614b1 Mon Sep 17 00:00:00 2001 From: Arun Basil Lal Date: Sun, 6 May 2018 13:57:26 +0530 Subject: [PATCH 08/16] Removed support forum link and replaced with support email link --- admin/iaff_image-attributes-from-filename-admin-ui-render.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/iaff_image-attributes-from-filename-admin-ui-render.php b/admin/iaff_image-attributes-from-filename-admin-ui-render.php index 94e08f7..edf95eb 100644 --- a/admin/iaff_image-attributes-from-filename-admin-ui-render.php +++ b/admin/iaff_image-attributes-from-filename-admin-ui-render.php @@ -1002,7 +1002,7 @@ function iaff_admin_interface_render () {

Premium Support

From 66c4fd46eca2c516aa7660fd59fed999e0513ffe Mon Sep 17 00:00:00 2001 From: Arun Basil Lal Date: Sun, 6 May 2018 14:21:13 +0530 Subject: [PATCH 09/16] Updated the upgrader function and renamed it as iaff_upgrader() --- iaff_image-attributes-from-filename.php | 51 ++++++++++++++++--------- 1 file changed, 33 insertions(+), 18 deletions(-) diff --git a/iaff_image-attributes-from-filename.php b/iaff_image-attributes-from-filename.php index 918a174..a73b713 100644 --- a/iaff_image-attributes-from-filename.php +++ b/iaff_image-attributes-from-filename.php @@ -55,41 +55,56 @@ define('IAFF_IMAGE_ATTRIBUTES_FROM_FILENAME_URL', plugin_dir_url( __FILE__ )); /** - * Add plugin version to database + * A constant with current version of plugin * - * @since 1.3 - * @constant IAFF_VERSION_NUM the version number of the current version - * @refer https://www.smashingmagazine.com/2011/03/ten-things-every-wordpress-plugin-developer-should-know/ + * IAFF_VERSION_NUM will be current version of the plugin. + * This is useful for database upgrades and doing stuff after plugin update. + * + * @since 1.3 */ -if (!defined('IAFF_VERSION_NUM')) - define('IAFF_VERSION_NUM', '1.5'); +if ( ! defined( 'IAFF_VERSION_NUM' ) ) { + define( 'IAFF_VERSION_NUM', '1.5' ); +} /** - * Upgrade database settings on update + * Do stuff after a plugin upgrade. * * @since 1.4 */ -function iaff_upgrade_db_settings() { +function iaff_upgrader() { - $current_ver = get_option('abl_iaff_version'); + /** + * Get the current version of the plugin stored in the db. + * Version was added in 1.3, defaults to 1.2 + */ + $current_ver = get_option( 'abl_iaff_version', '1.2' ); - if ( ($current_ver >= 1.4 ) ) { - return; // Version was added in 1.3. Return if version is above 1.3. + // Return if we have already done this todo + if ( version_compare( $current_ver, IAFF_VERSION_NUM, '==' ) ) { + return; } - $settings = get_option('iaff_settings'); + /** + * Upgrade database settings when upgrading from 1.3 or lower + * A global swith with setting name global_switch was introduce in 1.4 + */ + if ( version_compare( $current_ver, '1.3', '<=' ) ) { + + $settings = get_option( 'iaff_settings' ); - if ( $settings != false ) { - $settings['global_switch'] = 1; // Global switch was introduced in ver 1.4 - update_option('iaff_settings', $settings); + if ( $settings !== false ) { + + $settings['global_switch'] = 1; // Global switch was introduced in ver 1.4 + update_option('iaff_settings', $settings); + } } - update_option('abl_iaff_version', IAFF_VERSION_NUM); + update_option( 'abl_iaff_version', IAFF_VERSION_NUM ); } -add_action( 'plugins_loaded', 'iaff_upgrade_db_settings' ); +add_action( 'admin_init', 'iaff_upgrader' ); // Load everything require_once( IAFF_IMAGE_ATTRIBUTES_FROM_FILENAME_DIR . '/admin/iaff_image-attributes-from-filename-loader.php'); -// Register activation hook (this has to be in the main plugin file.) +// Register activation hook register_activation_hook( __FILE__ , 'iaff_activate_plugin' ); \ No newline at end of file From 2ef2816981daf3951cf117a989c262e80df1f1a1 Mon Sep 17 00:00:00 2001 From: Arun Basil Lal Date: Sun, 6 May 2018 14:28:38 +0530 Subject: [PATCH 10/16] Removed constant IAFF_IMAGE_ATTRIBUTES_FROM_FILENAME and readability updates --- ...e-attributes-from-filename-basic-setup.php | 2 +- iaff_image-attributes-from-filename.php | 32 +++++++++++-------- 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a/admin/iaff_image-attributes-from-filename-basic-setup.php b/admin/iaff_image-attributes-from-filename-basic-setup.php index 043dd30..180e6fb 100644 --- a/admin/iaff_image-attributes-from-filename-basic-setup.php +++ b/admin/iaff_image-attributes-from-filename-basic-setup.php @@ -51,7 +51,7 @@ function iaff_settings_link( $links ) { $links ); } -add_filter( 'plugin_action_links_' . IAFF_IMAGE_ATTRIBUTES_FROM_FILENAME . '/iaff_image-attributes-from-filename.php', 'iaff_settings_link' ); +add_filter( 'plugin_action_links_auto-image-attributes-from-filename-with-bulk-updater/iaff_image-attributes-from-filename.php', 'iaff_settings_link' ); /** diff --git a/iaff_image-attributes-from-filename.php b/iaff_image-attributes-from-filename.php index a73b713..35097c3 100644 --- a/iaff_image-attributes-from-filename.php +++ b/iaff_image-attributes-from-filename.php @@ -35,24 +35,28 @@ if ( ! defined('ABSPATH') ) exit; /** - * Plugin name and directory constants + * Plugin directory path and URL constants * * @since 1.3 + * @since 1.5 Removed IAFF_IMAGE_ATTRIBUTES_FROM_FILENAME constant */ -// The name of the plugin -// 'auto-image-attributes-from-filename-with-bulk-updater' -if (!defined('IAFF_IMAGE_ATTRIBUTES_FROM_FILENAME')) - define('IAFF_IMAGE_ATTRIBUTES_FROM_FILENAME', trim(dirname(plugin_basename(__FILE__)), '/')); - -// The absolute path to the plugin directory without the trailing slash. Useful for using with includes -// eg - C:\xampp\htdocs\wp/wp-content/plugins/auto-image-attributes-from-filename-with-bulk-updater -if (!defined('IAFF_IMAGE_ATTRIBUTES_FROM_FILENAME_DIR')) - define('IAFF_IMAGE_ATTRIBUTES_FROM_FILENAME_DIR', plugin_dir_path( __FILE__ )); +if ( ! defined( 'IAFF_IMAGE_ATTRIBUTES_FROM_FILENAME_DIR' ) ) { + + /** + * The absolute path to the plugin directory without the trailing slash. Useful for using with includes + * eg - C:\xampp\htdocs\wp/wp-content/plugins/auto-image-attributes-from-filename-with-bulk-updater + */ + define( 'IAFF_IMAGE_ATTRIBUTES_FROM_FILENAME_DIR', plugin_dir_path( __FILE__ ) ); +} -// The url to the plugin folder. Useful for referencing src -// eg - http://localhost/wp/wp-content/plugins/auto-image-attributes-from-filename-with-bulk-updater/ -if (!defined('IAFF_IMAGE_ATTRIBUTES_FROM_FILENAME_URL')) - define('IAFF_IMAGE_ATTRIBUTES_FROM_FILENAME_URL', plugin_dir_url( __FILE__ )); +if ( ! defined( 'IAFF_IMAGE_ATTRIBUTES_FROM_FILENAME_URL' ) ) { + + /** + * The url to the plugin folder. Useful for referencing src + * eg - http://localhost/wp/wp-content/plugins/auto-image-attributes-from-filename-with-bulk-updater/ + */ + define( 'IAFF_IMAGE_ATTRIBUTES_FROM_FILENAME_URL', plugin_dir_url( __FILE__ ) ); +} /** * A constant with current version of plugin From 5fba58a19f26d5d555cdfcb6432821cf65ea4b71 Mon Sep 17 00:00:00 2001 From: Arun Basil Lal Date: Sun, 6 May 2018 15:30:16 +0530 Subject: [PATCH 11/16] Improved preview warning for clarity and marketing Probably prevents cases like this: https://wordpress.org/support/topic/worked-very-well-but-added-captions-when-it-shouldnt/ --- ...aff_image-attributes-from-filename-admin-ui-render.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/admin/iaff_image-attributes-from-filename-admin-ui-render.php b/admin/iaff_image-attributes-from-filename-admin-ui-render.php index edf95eb..e5c16dd 100644 --- a/admin/iaff_image-attributes-from-filename-admin-ui-render.php +++ b/admin/iaff_image-attributes-from-filename-admin-ui-render.php @@ -882,8 +882,8 @@ function iaff_admin_interface_render () {
-
-

+
+

Image Attributes Pro. Please upgrade to use them.', 'auto-image-attributes-from-filename-with-bulk-updater' ), 'https://imageattributespro.com/?utm_source=iaff-basic&utm_medium=preview-warning-advanced-tab' ); ?>

@@ -897,8 +897,8 @@ function iaff_admin_interface_render () {
-
-

+
+

Image Attributes Pro. Please upgrade to use them.', 'auto-image-attributes-from-filename-with-bulk-updater' ), 'https://imageattributespro.com/?utm_source=iaff-basic&utm_medium=preview-warning-bu-settings-tab' ); ?>

From 07f76227947565c2282e1915278ea63d0bc5700b Mon Sep 17 00:00:00 2001 From: Arun Basil Lal Date: Sun, 6 May 2018 16:04:41 +0530 Subject: [PATCH 12/16] Enhancement: Added an actvation notice with link to the settings page for better onboarding experience. --- ...e-attributes-from-filename-basic-setup.php | 33 +++++++++++++++---- 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/admin/iaff_image-attributes-from-filename-basic-setup.php b/admin/iaff_image-attributes-from-filename-basic-setup.php index 180e6fb..d11deb1 100644 --- a/admin/iaff_image-attributes-from-filename-basic-setup.php +++ b/admin/iaff_image-attributes-from-filename-basic-setup.php @@ -7,15 +7,14 @@ * @function iaff_load_plugin_textdomain() Load plugin text domain * @function iaff_settings_link() Print direct link to plugin settings in plugins list in admin * @function iaff_plugin_row_meta() Add donate and other links to plugins list + * @function iaff_admin_notices() Admin notices * @function iaff_footer_text() Admin footer text * @function iaff_footer_version() Admin footer version */ - // Exit if accessed directly if ( ! defined('ABSPATH') ) exit; - /** * Plugin activatation todo list * @@ -23,10 +22,14 @@ * @since 1.0 */ function iaff_activate_plugin() { - add_option( 'iaff_bulk_updater_counter', '0' ); // Setting numer of images processed as zero + + // Set the counter to 0 for the number of images updated by bulk updater. + add_option( 'iaff_bulk_updater_counter', '0' ); // Setting numer of images processed as zero + + // Show admin notice + set_transient( 'iaff_activation_admin_notice', true, 5 ); } - /** * Load plugin text domain * @@ -37,7 +40,6 @@ function iaff_load_plugin_textdomain() { } add_action( 'plugins_loaded', 'iaff_load_plugin_textdomain' ); - /** * Print direct link to plugin settings in plugins list in admin * @@ -53,7 +55,6 @@ function iaff_settings_link( $links ) { } add_filter( 'plugin_action_links_auto-image-attributes-from-filename-with-bulk-updater/iaff_image-attributes-from-filename.php', 'iaff_settings_link' ); - /** * Add donate and other links to plugins list * @@ -76,6 +77,26 @@ function iaff_plugin_row_meta( $links, $file ) { } add_filter( 'plugin_row_meta', 'iaff_plugin_row_meta', 10, 2 ); +/** + * Admin notices + * + * @since 1.5 Added admin notice for plugin upgrade. + */ +function iaff_admin_notices() { + + // Return if transient is not set + if ( get_transient( 'iaff_activation_admin_notice' ) ) { + + echo '

' . sprintf( __( 'Thank you for installing Auto Image Attributes From Filename With Bulk Updater! Change settings →', 'auto-image-attributes-from-filename-with-bulk-updater' ), admin_url( 'options-general.php?page=image-attributes-from-filename' ) ) . '

'; + + // Delete transient + delete_transient( 'iaff_activation_admin_notice' ); + + return; + } + +} +add_action( 'admin_notices', 'iaff_admin_notices' ); /** * Admin footer text From a9700f3e6623c3eee1dd876cf2384781985f9ab6 Mon Sep 17 00:00:00 2001 From: Arun Basil Lal Date: Sun, 6 May 2018 16:05:18 +0530 Subject: [PATCH 13/16] Enhancement: Added an actvation notice with link to the settings page for better onboarding experience. --- readme.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/readme.txt b/readme.txt index 9425ecb..8e5158a 100644 --- a/readme.txt +++ b/readme.txt @@ -114,6 +114,7 @@ I am glad to hear that! You can either [upgrade to pro](https://imageattributesp * Date: * Enhancement: Changed text domain from abl_iaff_td to auto-image-attributes-from-filename-with-bulk-updater to make the plugin translation ready in translate.wordpress.org. * Enhancement: Code improvements. +* Enhancement: Added an actvation notice with link to the settings page for better onboarding experience. = 1.4 = * Date: 22.November.2017 From 2fb0a29465af8ccc3052b8c6a0ca8cc309b3baee Mon Sep 17 00:00:00 2001 From: Arun Basil Lal Date: Sun, 6 May 2018 16:27:32 +0530 Subject: [PATCH 14/16] Upgrade successfully complete admin notice --- ...e-attributes-from-filename-basic-setup.php | 20 +++++++++++++++++-- iaff_image-attributes-from-filename.php | 7 ++++++- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/admin/iaff_image-attributes-from-filename-basic-setup.php b/admin/iaff_image-attributes-from-filename-basic-setup.php index d11deb1..6ae203d 100644 --- a/admin/iaff_image-attributes-from-filename-basic-setup.php +++ b/admin/iaff_image-attributes-from-filename-basic-setup.php @@ -80,11 +80,11 @@ function iaff_plugin_row_meta( $links, $file ) { /** * Admin notices * - * @since 1.5 Added admin notice for plugin upgrade. + * @since 1.5 */ function iaff_admin_notices() { - // Return if transient is not set + // Plugin activation notice if ( get_transient( 'iaff_activation_admin_notice' ) ) { echo '

' . sprintf( __( 'Thank you for installing Auto Image Attributes From Filename With Bulk Updater! Change settings →', 'auto-image-attributes-from-filename-with-bulk-updater' ), admin_url( 'options-general.php?page=image-attributes-from-filename' ) ) . '

'; @@ -92,9 +92,25 @@ function iaff_admin_notices() { // Delete transient delete_transient( 'iaff_activation_admin_notice' ); + // No more notices on plugin activation. return; } + // Upgrade complete notice + if ( get_transient( 'iaff_upgrade_complete_admin_notice' ) ) { + + $iaff_suggest_pro = ''; + + // Suggest IAFF Pro if Pro add-on isn't installed. + if ( ! iaff_is_pro() ) { + $iaff_suggest_pro = sprintf( __( '
Want to use Post Titles as attributes and fine tune Bulk Updater settings? Check out the Image Attributes Pro add-on.', 'auto-image-attributes-from-filename-with-bulk-updater' ), 'https://imageattributespro.com/?utm_source=iaff-basic&utm_medium=upgrade-complete-admin-notice' ); + } + + echo '

' . __( 'Auto Image Attributes From Filename With Bulk Updater successfully updated. ', 'auto-image-attributes-from-filename-with-bulk-updater' ) . $iaff_suggest_pro . '

'; + + // Delete transient + delete_transient( 'iaff_upgrade_complete_admin_notice' ); + } } add_action( 'admin_notices', 'iaff_admin_notices' ); diff --git a/iaff_image-attributes-from-filename.php b/iaff_image-attributes-from-filename.php index 35097c3..db3dcf7 100644 --- a/iaff_image-attributes-from-filename.php +++ b/iaff_image-attributes-from-filename.php @@ -73,7 +73,8 @@ /** * Do stuff after a plugin upgrade. * - * @since 1.4 + * @since 1.4 + * @since 1.5 Switched to version_compare for version check and added iaff_upgrade_complete_admin_notice transient. */ function iaff_upgrader() { @@ -103,6 +104,10 @@ function iaff_upgrader() { } } + // Set transient to show upgrade complete notice + set_transient( 'iaff_upgrade_complete_admin_notice', true, 5 ); + + // Finally add the current version to the database. Upgrade todo complete. update_option( 'abl_iaff_version', IAFF_VERSION_NUM ); } add_action( 'admin_init', 'iaff_upgrader' ); From 4b3c0f128df396628e523da2c34192961133dc32 Mon Sep 17 00:00:00 2001 From: Arun Basil Lal Date: Sun, 6 May 2018 18:01:50 +0530 Subject: [PATCH 15/16] Readme.txt updated for version 1.5 --- readme.txt | 53 ++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 40 insertions(+), 13 deletions(-) diff --git a/readme.txt b/readme.txt index 8e5158a..eee2f01 100644 --- a/readme.txt +++ b/readme.txt @@ -16,6 +16,18 @@ Automatically add Image attributes such as Image Title, Image Caption, Descripti The plugin can update image attributes for both new images and existing images in the media library. +> **Life-Saver** - +> It allowed me to save tons of time. Further, the support is nice and ready to help. +> - [thnk4](https://wordpress.org/support/topic/life-saver-188/) + +Image alt text and title is critical for your image SEO and will help users discover your images (and there by your website) in Google / Yahoo / Bing image search. + +Proper alt text also helps people who are blind or who have low vision understand your images there by improving the accessibility of your website. This will open up your website to a new segment of visitors and increase your traffic. + +> **Wow!** - +> If I could give this 1 more star I would! +> - [jdev](https://wordpress.org/support/topic/wow-550/) + With this plugin you can: * Set the image filename as the image Title. @@ -43,10 +55,20 @@ Please remember to take a database backup before running the bulk updater. The b **Image Attributes Pro** -A pro add-on is now available for the plugin. Check out [Image Attributes Pro](https://imageattributespro.com/?utm_source=wordpress&utm_medium=readme). +A pro add-on is now available for the plugin. Check out [Image Attributes Pro](https://imageattributespro.com/?utm_source=wordpress.org&utm_medium=readme). + +The pro add-on can update the image attributes from not just the image filename, but also from the post / page / product / custom post type title. You can fine tune the bulk updater settings and even clean up the actual image filename. + +> Thank you so much for all your help in trying to fix this, its very much appreciated indeed. You've gone above and beyond what I was expecting in support! +> Rest assured I will give great feedback on your plugin anywhere I can!! +> - James Barber, for [Image Attributes Pro](https://imageattributespro.com/?utm_source=wordpress.org&utm_medium=readme) via email. What the pro add-on you get these additional features: +* Use post title as title text. If image is not attached to a post, image filename will be used instead. +* Use post title as alt text. If image is not attached to a post, image filename will be used instead. +* Use post title as caption. If image is not attached to a post, image filename will be used instead. +* Use post title as description. If image is not attached to a post, image filename will be used instead. * Remove apostrophe ( ' ) from filename * Remove tilde ( ~ ) from filename * Remove plus ( + ) from filename @@ -62,22 +84,22 @@ What the pro add-on you get these additional features: * Use title casing for image attributes. First Letter Of Each Word Will Be Capitalized. * Use sentence casing for image attributes. First letter of a sentence will be capitalized. * Clean the actual image filename after upload. -* Use post title as title text. If image is not attached to a post, image filename will be used instead. -* Use post title as alt text. If image is not attached to a post, image filename will be used instead. -* Use post title as caption. If image is not attached to a post, image filename will be used instead. -* Use post title as description. If image is not attached to a post, image filename will be used instead. * Choose to turn off any of the above mentioned features. With the pro bulk updater you can: -* Update image title and alt text for images inserted into posts and custom post types. +* Update image title and alt text **for images inserted into posts and custom post types**. Not just the media library. * Fine tune all settings. Choose what to update. * Update image titles / alt text in media library only. Image titles / alt text in existing posts will be left unchanged. * Update image titles / alt text in media library and existing posts. * Update image titles / alt text in existing posts only if no title / alt text is set. All image titles/ alt text in media library will be updated. * Choose to turn off any of the above mentioned features. -For screenshots, FAQ and further details, please see the [product website](https://imageattributespro.com/?utm_source=wordpress&utm_medium=readme). +For screenshots, FAQ and full list of features, please see the [product website](https://imageattributespro.com/?utm_source=wordpress.org&utm_medium=readme). + +> **No Competitors** - +> This is the only one that enables you to add missing tags to your images in one go, simple! ... This one is very well coded and the author pays great attentions to users feedback / requests / support. +> - [arsenalemusica](https://wordpress.org/support/topic/no-competitors/) == Installation == @@ -95,11 +117,11 @@ Yes, the plugin will update image Title, Caption, Description And Alt Text from = I need more features. Can I hire you? = -Please checkout the [Image Attributes Pro add-on](https://imageattributespro.com/?utm_source=wordpress&utm_medium=readme) to see if it suits your requirement. If not, please [get in touch via my contact form](http://millionclues.com/contact/) with a brief description of your requirement and budget for the project. I will be in touch shortly. +Please checkout the [Image Attributes Pro add-on](https://imageattributespro.com/?utm_source=wordpress.org&utm_medium=readme) to see if it suits your requirement. If not, please [send in a feature request](https://imageattributespro.com/contact/?utm_source=wordpress.org&utm_medium=faq-feature-request) with a brief description of your requirement and I will be in touch shortly. = This plugin saved me a lot of time, how can I show my appreciation? = -I am glad to hear that! You can either [upgrade to pro](https://imageattributespro.com/?utm_source=wordpress&utm_medium=readme) or leave a [rating](https://wordpress.org/support/plugin/auto-image-attributes-from-filename-with-bulk-updater/reviews/?rate=5#new-post) to motivate me to keep working on the plugin. +I am glad to hear that! You can either [upgrade to pro](https://imageattributespro.com/?utm_source=wordpress.org&utm_medium=readme-faq) or leave a [rating](https://wordpress.org/support/plugin/auto-image-attributes-from-filename-with-bulk-updater/reviews/?rate=5#new-post) to motivate me to keep working on the plugin. == Screenshots == @@ -111,10 +133,10 @@ I am glad to hear that! You can either [upgrade to pro](https://imageattributesp == Changelog == = 1.5 = -* Date: +* Date: 06.May.2018 * Enhancement: Changed text domain from abl_iaff_td to auto-image-attributes-from-filename-with-bulk-updater to make the plugin translation ready in translate.wordpress.org. * Enhancement: Code improvements. -* Enhancement: Added an actvation notice with link to the settings page for better onboarding experience. +* Enhancement: Added an activation notice with link to the settings page for better on-boarding experience. = 1.4 = * Date: 22.November.2017 @@ -125,7 +147,7 @@ I am glad to hear that! You can either [upgrade to pro](https://imageattributesp * Improvement: Changed source of filename from guid to wp_get_attachment_url() to prevent conflicts with other plugins. GUID was being replaced by other plugins. Thanks to @niresh12495 for [bringing this up] (https://wordpress.org/support/topic/image-title-description-and-alt-tag-replaced-with-attachment-idnumber/). * Impreovement: Added checks to check if attachment is image before processing. * FIX: Added [boolval() function for backwards compatibility](https://millionclues.com/wordpress-tips/solved-fatal-error-call-to-undefined-function-boolval/) with servers with PHP older than PHP 5.5. -* Added preview of premium options that ship with [Image Attributes Pro](https://imageattributespro.com/docs?utm_source=wordpressorg&utm_medium=changelog) +* Added preview of premium options that ship with [Image Attributes Pro](https://imageattributespro.com/docs?utm_source=wordpress.org&utm_medium=changelog) * UI Improvements. * Code improvements. @@ -158,6 +180,11 @@ I am glad to hear that! You can either [upgrade to pro](https://imageattributesp == Upgrade Notice == += 1.5 = +* Enhancement: Changed text domain from abl_iaff_td to auto-image-attributes-from-filename-with-bulk-updater to make the plugin translation ready in translate.wordpress.org. +* Enhancement: Code improvements. +* Enhancement: Added an activation notice with link to the settings page for better on-boarding experience. + = 1.4 = * Date: 22.November.2017 * NEW: Global switch to enable or disable the plugin. @@ -167,7 +194,7 @@ I am glad to hear that! You can either [upgrade to pro](https://imageattributesp * Improvement: Changed source of filename from guid to wp_get_attachment_url() to prevent conflicts with other plugins. GUID was being replaced by other plugins. Thanks to @niresh12495 for [bringing this up] (https://wordpress.org/support/topic/image-title-description-and-alt-tag-replaced-with-attachment-idnumber/). * Impreovement: Added checks to check if attachment is image before processing. * FIX: Added [boolval() function for backwards compatibility](https://millionclues.com/wordpress-tips/solved-fatal-error-call-to-undefined-function-boolval/) with servers with PHP older than PHP 5.5. -* Added preview of premium options that ship with [Image Attributes Pro](https://imageattributespro.com/docs?utm_source=wordpressorg&utm_medium=changelog) +* Added preview of premium options that ship with [Image Attributes Pro](https://imageattributespro.com/docs?utm_source=wordpress.org&utm_medium=changelog) * UI Improvements. * Code improvements. From ca7cfa273e7714cc5877b42a9f9d6748a13000b1 Mon Sep 17 00:00:00 2001 From: Arun Basil Lal Date: Sun, 6 May 2018 18:21:21 +0530 Subject: [PATCH 16/16] Updated the IAP suggestion after upgrade notice. --- admin/iaff_image-attributes-from-filename-basic-setup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/iaff_image-attributes-from-filename-basic-setup.php b/admin/iaff_image-attributes-from-filename-basic-setup.php index 6ae203d..d00bef6 100644 --- a/admin/iaff_image-attributes-from-filename-basic-setup.php +++ b/admin/iaff_image-attributes-from-filename-basic-setup.php @@ -103,7 +103,7 @@ function iaff_admin_notices() { // Suggest IAFF Pro if Pro add-on isn't installed. if ( ! iaff_is_pro() ) { - $iaff_suggest_pro = sprintf( __( '
Want to use Post Titles as attributes and fine tune Bulk Updater settings? Check out the Image Attributes Pro add-on.', 'auto-image-attributes-from-filename-with-bulk-updater' ), 'https://imageattributespro.com/?utm_source=iaff-basic&utm_medium=upgrade-complete-admin-notice' ); + $iaff_suggest_pro = sprintf( __( '
Want to use Post Titles for image attributes? Check out the Image Attributes Pro add-on.', 'auto-image-attributes-from-filename-with-bulk-updater' ), 'https://imageattributespro.com/?utm_source=iaff-basic&utm_medium=upgrade-complete-admin-notice' ); } echo '

' . __( 'Auto Image Attributes From Filename With Bulk Updater successfully updated. ', 'auto-image-attributes-from-filename-with-bulk-updater' ) . $iaff_suggest_pro . '

';