Skip to content

Commit

Permalink
5.13.6.1
Browse files Browse the repository at this point in the history
* [update] Copyright notices for 2025
* [update] Compatibility info for WordPress and ClassicPress
* [change] Removed stray debug code
  • Loading branch information
adegans committed Dec 17, 2024
1 parent 5699cbe commit 7366157
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 17 deletions.
14 changes: 0 additions & 14 deletions adrotate-output.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
/*-------------------------------------------------------------
Name: adrotate_ad
Purpose: Show requested ad
Since: 3.0
-------------------------------------------------------------*/
function adrotate_ad($banner_id, $opt = null) {
global $wpdb, $adrotate_config;
Expand Down Expand Up @@ -58,7 +57,6 @@ function adrotate_ad($banner_id, $opt = null) {
/*-------------------------------------------------------------
Name: adrotate_group
Purpose: Fetch ads in specified group(s) and show a random ad
Since: 3.0
-------------------------------------------------------------*/
function adrotate_group($group_ids, $opt = null) {
global $wpdb, $adrotate_config;
Expand Down Expand Up @@ -201,7 +199,6 @@ function adrotate_group($group_ids, $opt = null) {
/*-------------------------------------------------------------
Name: adrotate_group_post_inject
Purpose: Prepare group for post injection
Since: 5.10
-------------------------------------------------------------*/
function adrotate_group_post_inject($group_id) {
global $wpdb, $adrotate_config;
Expand Down Expand Up @@ -261,7 +258,6 @@ function adrotate_group_post_inject($group_id) {
/*-------------------------------------------------------------
Name: adrotate_shortcode
Purpose: Prepare function requests for calls on shortcodes
Since: 0.7
-------------------------------------------------------------*/
function adrotate_shortcode($atts, $content = null) {
global $adrotate_config;
Expand Down Expand Up @@ -314,7 +310,6 @@ function adrotate_shortcode($atts, $content = null) {
/*-------------------------------------------------------------
Name: adrotate_inject_posts_cache_wrapper
Purpose: Wrap post injection return with caching code?
Since: 5.10
-------------------------------------------------------------*/
function adrotate_inject_posts_cache_wrapper($group_id) {
global $adrotate_config;
Expand Down Expand Up @@ -347,10 +342,6 @@ function adrotate_inject_posts_cache_wrapper($group_id) {
function adrotate_inject_posts($post_content) {
global $wpdb, $post;

echo '<pre>';
print_r($post);
echo '</pre>';

$categories_top = $categories_bottom = $categories_inside = array();
if(is_page()) {
// Inject ads into pages
Expand Down Expand Up @@ -459,7 +450,6 @@ function adrotate_inject_posts($post_content) {
/*-------------------------------------------------------------
Name: adrotate_preview
Purpose: Show preview of selected advert (Dashboard)
Since: 3.0
-------------------------------------------------------------*/
function adrotate_preview($banner_id) {
global $wpdb;
Expand Down Expand Up @@ -488,7 +478,6 @@ function adrotate_preview($banner_id) {
/*-------------------------------------------------------------
Name: adrotate_ad_output
Purpose: Prepare the output for viewing
Since: 3.0
-------------------------------------------------------------*/
function adrotate_ad_output($id, $group, $name, $bannercode, $tracker, $image) {
global $blog_id, $adrotate_config;
Expand Down Expand Up @@ -606,7 +595,6 @@ function adrotate_scripts() {
/*-------------------------------------------------------------
Name: adrotate_custom_javascript
Purpose: Add required JavaScript to adrotate_scripts()
Since: 3.10.5
-------------------------------------------------------------*/
function adrotate_custom_javascript() {
global $wpdb, $adrotate_config;
Expand All @@ -632,7 +620,6 @@ function adrotate_custom_javascript() {
/*-------------------------------------------------------------
Name: adrotate_nonce_error
Purpose: Display a formatted error if Nonce fails
Since: 3.7.4.2
-------------------------------------------------------------*/
function adrotate_nonce_error() {
echo " <h2 style=\"text-align: center;\">".__("Oh no! Something went wrong!", 'adrotate')."</h2>";
Expand All @@ -644,7 +631,6 @@ function adrotate_nonce_error() {
/*-------------------------------------------------------------
Name: adrotate_error
Purpose: Show errors for problems in using AdRotate, should they occur
Since: 3.0
-------------------------------------------------------------*/
function adrotate_error($action, $arg = null) {
switch($action) {
Expand Down
2 changes: 1 addition & 1 deletion adrotate.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Author URI: https://www.arnan.me/
Description: Manage all your adverts with all the features you need while keeping things simple.
Text Domain: adrotate
Version: 5.13.6
Version: 5.13.6.1
License: GPLv3
*/

Expand Down
5 changes: 3 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
=== AdRotate Banner Manager - The only ad manager you'll need ===
Contributors: adegans
Stable tag: 5.13.6
Stable tag: 5.13.6.1
Requires at least: 4.9
Tested up to: 6.7.1
Requires PHP: 7.4
Expand Down Expand Up @@ -105,9 +105,10 @@ For more detailed instructions check out the [installation steps](https://ajdg.s

For the full changelog check out the [development page](https://ajdg.solutions/support/adrotate-development/).

= AdRotate 5.13.6 =
= AdRotate 5.13.6 & 5.13.6.1=
* [update] Copyright notices for 2025
* [update] Compatibility info for WordPress and ClassicPress
* [change] Removed stray debug code

= AdRotate 5.13.5 =
* [update] WordPress media uploader only lists and allows relevant files
Expand Down

0 comments on commit 7366157

Please sign in to comment.