{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":56460283,"defaultBranch":"master","name":"wordpress-custom-avatars","ownerLogin":"fahdi","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2016-04-17T21:47:24.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/434134?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1460929869.0","currentOid":""},"activityList":{"items":[{"before":"07dec6c7b1d7cf93ac73a136051b3713a6ed9c7a","after":"b1ff683698666c40c95902cc5e60b5a665482d8f","ref":"refs/heads/master","pushedAt":"2024-05-16T21:53:49.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"fahdi","name":"Fahad Murtaza","path":"/fahdi","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/434134?s=80&v=4"},"commit":{"message":"Add settings page and new features to Custom Avatars plugin\n\n- Added a settings page in the WordPress admin for plugin configuration.\r\n- Enabled users to specify a custom default avatar URL.\r\n- Added configuration for avatar size via settings page.\r\n- Improved Gravatar validation using `wp_remote_head` for reliable HTTP requests.\r\n- Simplified Gravatar URL and switched to `https` for secure requests.\r\n- Enhanced random image selection using `plugin_dir_path` and `plugin_dir_url` for better compatibility.\r\n- Filtered image files with `scandir` to exclude `.` and `..` directories.\r\n- Defaulted image width to `48` if not provided in attributes.\r\n- Added `esc_url` and `esc_attr` for secure URL and attribute escaping.\r\n- Included fallback to user-defined default avatar image or a built-in default.\r\n- Ensured better readability, maintainability, and adherence to WordPress coding standards.","shortMessageHtmlLink":"Add settings page and new features to Custom Avatars plugin"}},{"before":"4e130bc7d6d166908afcbc5ff67bb6e0316ae402","after":"07dec6c7b1d7cf93ac73a136051b3713a6ed9c7a","ref":"refs/heads/master","pushedAt":"2024-05-16T21:50:46.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"fahdi","name":"Fahad Murtaza","path":"/fahdi","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/434134?s=80&v=4"},"commit":{"message":"Update wordpress-custom-avatars.php\n\nAdd plugin URL","shortMessageHtmlLink":"Update wordpress-custom-avatars.php"}},{"before":"f896da0f12057a8dc8c8b694b1ecd6a5273d4676","after":"4e130bc7d6d166908afcbc5ff67bb6e0316ae402","ref":"refs/heads/master","pushedAt":"2024-05-16T21:50:10.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"fahdi","name":"Fahad Murtaza","path":"/fahdi","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/434134?s=80&v=4"},"commit":{"message":"Update wordpress-custom-avatars.php\n\nRefactor Custom Avatars plugin for improved functionality and security\r\n\r\n- Improved Gravatar validation using `wp_remote_head` for reliable HTTP requests.\r\n- Simplified Gravatar URL and switched to `https` for secure requests.\r\n- Enhanced random image selection using `plugin_dir_path` and `plugin_dir_url` for better compatibility.\r\n- Filtered image files with `scandir` to exclude `.` and `..` directories.\r\n- Defaulted image width to `48` if not provided in attributes.\r\n- Added `esc_url` and `esc_attr` for secure URL and attribute escaping.\r\n- Included fallback to default avatar image if no custom images are available.\r\n- Ensured better readability, maintainability, and adherence to WordPress coding standards.","shortMessageHtmlLink":"Update wordpress-custom-avatars.php"}},{"before":"5172265b344cc08b936f00115f1c75f2c4849611","after":"f896da0f12057a8dc8c8b694b1ecd6a5273d4676","ref":"refs/heads/master","pushedAt":"2024-05-16T21:47:51.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"fahdi","name":"Fahad Murtaza","path":"/fahdi","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/434134?s=80&v=4"},"commit":{"message":"Update wordpress-custom-avatars.php\n\nRefactor and improve Custom Avatars plugin\r\n\r\n- Removed pre-2.6 compatibility code for a cleaner, modern codebase.\r\n- Added proper documentation for functions with docstrings.\r\n- Improved readability and code consistency with PSR-2 standards.\r\n- Enhanced `wavatar_comment_author` function to handle missing Gravatar:\r\n - Added validation for global `$comment` object.\r\n - Implemented logic to display a random custom avatar from the `images` directory.\r\n - Added fallback to `default-avatar.png` if no custom images are available.\r\n- Ensured all functions are self-contained and follow best practices.","shortMessageHtmlLink":"Update wordpress-custom-avatars.php"}},{"before":"bf96517d21172d25a19e38e193bad4159b60eb27","after":"5172265b344cc08b936f00115f1c75f2c4849611","ref":"refs/heads/master","pushedAt":"2024-05-16T21:46:24.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"fahdi","name":"Fahad Murtaza","path":"/fahdi","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/434134?s=80&v=4"},"commit":{"message":"Update README.md","shortMessageHtmlLink":"Update README.md"}},{"before":"9924aa3c1a40af2159ab5951d91ef28f22c4a242","after":"bf96517d21172d25a19e38e193bad4159b60eb27","ref":"refs/heads/master","pushedAt":"2024-05-16T21:43:50.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"fahdi","name":"Fahad Murtaza","path":"/fahdi","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/434134?s=80&v=4"},"commit":{"message":"Update readme.txt","shortMessageHtmlLink":"Update readme.txt"}},{"before":"b14216fdc57191b49272605ab365d7a9fe1dc0f6","after":"9924aa3c1a40af2159ab5951d91ef28f22c4a242","ref":"refs/heads/master","pushedAt":"2024-05-16T21:40:47.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"fahdi","name":"Fahad Murtaza","path":"/fahdi","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/434134?s=80&v=4"},"commit":{"message":"Update wordpress-custom-avatars.php\n\nRefactor and improve Custom Avatars plugin\r\n\r\n- Removed pre-2.6 compatibility code for a cleaner, modern codebase.\r\n- Added proper documentation for functions with docstrings.\r\n- Improved readability and code consistency with PSR-2 standards.\r\n- Enhanced `wavatar_comment_author` function to handle missing Gravatar:\r\n - Added validation for global `$comment` object.\r\n - Implemented logic to display a random custom avatar from the `images` directory.\r\n - Added fallback to `default-avatar.png` if no custom images are available.\r\n- Ensured all functions are self-contained and follow best practices.","shortMessageHtmlLink":"Update wordpress-custom-avatars.php"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAETBlungA","startCursor":null,"endCursor":null}},"title":"Activity ยท fahdi/wordpress-custom-avatars"}