Plugin Directory

Changeset 3257714


Ignore:
Timestamp:
03/18/2025 10:36:51 AM (13 months ago)
Author:
dbeja
Message:

Update to version 2.0.4 from GitHub

Location:
author-box-for-divi
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • author-box-for-divi/tags/2.0.4/index.php

    r3209293 r3257714  
    44Plugin URI: https://wordpress.org/plugins/author-box-for-divi/
    55Description: A plugin which provides an author box for your WordPress blog.
    6 Version: 2.0.3
     6Version: 2.0.4
    77Text Domain: author-box-for-divi
    88Domain Path: /languages
     
    9696
    9797            // update all keys old to new for all user_ids using a single query
    98             $wpdb->query($wpdb->prepare(
    99                 "UPDATE $wpdb->usermeta SET meta_key = %s WHERE meta_key = %s AND user_id IN (" . implode(',', $user_ids) . ")",
    100                 'abfd-user-social-networks-' . $new,
    101                 'abfd-user-social-networks-' . $old
    102             ));
     98            if (!empty($user_ids)) {
     99                $wpdb->query($wpdb->prepare(
     100                    "UPDATE $wpdb->usermeta SET meta_key = %s WHERE meta_key = %s AND user_id IN (" . implode(',', $user_ids) . ")",
     101                    'abfd-user-social-networks-' . $new,
     102                    'abfd-user-social-networks-' . $old
     103                ));
     104            }
    103105        }
    104106    }
     
    406408    static function wp_enqueue_scripts()
    407409    {
    408         wp_enqueue_style('abfd-author', plugins_url(null, __FILE__) . '/css/author.css');
     410        wp_enqueue_style('abfd-author', plugin_dir_url( __FILE__ ) . 'css/author.css');
    409411        // enqueue fontwesome free brands from cdn
    410412        wp_enqueue_style('abfd-font-awesome', 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css');
     
    419421            ($current_screen && ($current_screen->base === 'post' || $current_screen->base === 'post-new'))
    420422        ) {
    421             wp_enqueue_style('abfd-author', plugins_url(null, __FILE__) . '/css/author.css');
     423            wp_enqueue_style('abfd-author', plugin_dir_url( __FILE__ ) . 'css/author.css');
    422424            // Load the color picker
    423425            wp_enqueue_style('wp-color-picker');
  • author-box-for-divi/tags/2.0.4/readme.txt

    r3209365 r3257714  
    33Donate link: http://www.rhyzz.com/donate.html
    44Tags: author-box-for-divi, author-box-divi, divi-author-box, divi-author, divi-author-bio
    5 Requires PHP: 5.2.4
     5Requires PHP: 5.2
    66Requires at least: 3.0
    7 Stable tag: 2.0.3
     7Stable tag: 2.0.4
    88Tested up to: 6.7
    99License: GPLv2 or later
     
    1414== Description ==
    1515
    16 This plugin was originally known as “Author Box for Divi.”
     16This plugin was originally known as "Author Box for Divi."
    1717
    1818The [Author Box WP Lens](https://wplens.com/) plugin has been developed to work specifically with the Divi theme but has been upgraded to work with any WordPress theme or page builder. It will provide you with nice author boxes for your WordPress blog or website, whichever theme or page builder you use.
     
    2020Using this plugin, a simple author box that will show the WordPress author bio will be displayed automatically at the bottom of all your blog posts, pages, projects, or media. You can choose in the plugin's settings on which post types you want it to show.
    2121
    22 The plugin will show the authors gravatar icon by default. Or you can use your own image; just enter the URL of your profile image in Users > Your Profile. You can also specify the URLs for your social network profiles (only those that you enter will show in your author box).
     22The plugin will show the author's gravatar icon by default. Or you can use your own image; just enter the URL of your profile image in Users > Your Profile. You can also specify the URLs for your social network profiles (only those that you enter will show in your author box).
    2323
    24 Other features of this plugin allow you to specify the Name Prefix (you can write, e.g., “Author” or “Written by”), Text Color, Background Color and Border Color.
     24Other features of this plugin allow you to specify the Name Prefix (you can write, e.g., "Author" or "Written by"), Text Color, Background Color and Border Color.
    2525
    2626= Plugin Features: =
     
    7676== Changelog ==
    7777
     78= 2.0.4 =
     79* Fixed data migration process for existing users
     80* Updated CSS loading method for better compatibility
     81
    7882= 2.0.3 =
    7983* Fixed a bug when migrating the data from v1* to v2
     
    114118* Tested with WP 6.2
    115119* New feature added: to customize the color of the social media icons
    116 * New feature added: The possibility to make the authors name to be a hyperlink to the author page
     120* New feature added: The possibility to make the author's name to be a hyperlink to the author page
    117121* Fixed Photo
    118122
  • author-box-for-divi/trunk/index.php

    r3209293 r3257714  
    44Plugin URI: https://wordpress.org/plugins/author-box-for-divi/
    55Description: A plugin which provides an author box for your WordPress blog.
    6 Version: 2.0.3
     6Version: 2.0.4
    77Text Domain: author-box-for-divi
    88Domain Path: /languages
     
    9696
    9797            // update all keys old to new for all user_ids using a single query
    98             $wpdb->query($wpdb->prepare(
    99                 "UPDATE $wpdb->usermeta SET meta_key = %s WHERE meta_key = %s AND user_id IN (" . implode(',', $user_ids) . ")",
    100                 'abfd-user-social-networks-' . $new,
    101                 'abfd-user-social-networks-' . $old
    102             ));
     98            if (!empty($user_ids)) {
     99                $wpdb->query($wpdb->prepare(
     100                    "UPDATE $wpdb->usermeta SET meta_key = %s WHERE meta_key = %s AND user_id IN (" . implode(',', $user_ids) . ")",
     101                    'abfd-user-social-networks-' . $new,
     102                    'abfd-user-social-networks-' . $old
     103                ));
     104            }
    103105        }
    104106    }
     
    406408    static function wp_enqueue_scripts()
    407409    {
    408         wp_enqueue_style('abfd-author', plugins_url(null, __FILE__) . '/css/author.css');
     410        wp_enqueue_style('abfd-author', plugin_dir_url( __FILE__ ) . 'css/author.css');
    409411        // enqueue fontwesome free brands from cdn
    410412        wp_enqueue_style('abfd-font-awesome', 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css');
     
    419421            ($current_screen && ($current_screen->base === 'post' || $current_screen->base === 'post-new'))
    420422        ) {
    421             wp_enqueue_style('abfd-author', plugins_url(null, __FILE__) . '/css/author.css');
     423            wp_enqueue_style('abfd-author', plugin_dir_url( __FILE__ ) . 'css/author.css');
    422424            // Load the color picker
    423425            wp_enqueue_style('wp-color-picker');
  • author-box-for-divi/trunk/readme.txt

    r3209365 r3257714  
    33Donate link: http://www.rhyzz.com/donate.html
    44Tags: author-box-for-divi, author-box-divi, divi-author-box, divi-author, divi-author-bio
    5 Requires PHP: 5.2.4
     5Requires PHP: 5.2
    66Requires at least: 3.0
    7 Stable tag: 2.0.3
     7Stable tag: 2.0.4
    88Tested up to: 6.7
    99License: GPLv2 or later
     
    1414== Description ==
    1515
    16 This plugin was originally known as “Author Box for Divi.”
     16This plugin was originally known as "Author Box for Divi."
    1717
    1818The [Author Box WP Lens](https://wplens.com/) plugin has been developed to work specifically with the Divi theme but has been upgraded to work with any WordPress theme or page builder. It will provide you with nice author boxes for your WordPress blog or website, whichever theme or page builder you use.
     
    2020Using this plugin, a simple author box that will show the WordPress author bio will be displayed automatically at the bottom of all your blog posts, pages, projects, or media. You can choose in the plugin's settings on which post types you want it to show.
    2121
    22 The plugin will show the authors gravatar icon by default. Or you can use your own image; just enter the URL of your profile image in Users > Your Profile. You can also specify the URLs for your social network profiles (only those that you enter will show in your author box).
     22The plugin will show the author's gravatar icon by default. Or you can use your own image; just enter the URL of your profile image in Users > Your Profile. You can also specify the URLs for your social network profiles (only those that you enter will show in your author box).
    2323
    24 Other features of this plugin allow you to specify the Name Prefix (you can write, e.g., “Author” or “Written by”), Text Color, Background Color and Border Color.
     24Other features of this plugin allow you to specify the Name Prefix (you can write, e.g., "Author" or "Written by"), Text Color, Background Color and Border Color.
    2525
    2626= Plugin Features: =
     
    7676== Changelog ==
    7777
     78= 2.0.4 =
     79* Fixed data migration process for existing users
     80* Updated CSS loading method for better compatibility
     81
    7882= 2.0.3 =
    7983* Fixed a bug when migrating the data from v1* to v2
     
    114118* Tested with WP 6.2
    115119* New feature added: to customize the color of the social media icons
    116 * New feature added: The possibility to make the authors name to be a hyperlink to the author page
     120* New feature added: The possibility to make the author's name to be a hyperlink to the author page
    117121* Fixed Photo
    118122
Note: See TracChangeset for help on using the changeset viewer.