Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Commit

Permalink
Version 2309 (#155)
Browse files Browse the repository at this point in the history
* Update to WordPress CS 3.0

* Redo XSS nonce check
Apply some WordPress CS 3.0 recommendations
Reorder files/code

* Implements sub-menus [sitemap_pages child_of="current"] and [sitemap_pages child_of="1234"] (#153)

* Update class-toc-plus.php

Implementation of:
use [ sitemap_pages child_of="current" ] to get TOC of current page
use [ sitemap_pages child_of="1234" ] to get TOC with given page id

* Update class-toc-plus.php implements sub menus (works with PHP8.2 and WordPress 6.3))

Implements [ sitemap_pages child_of="current" ] and
[ sitemap_pages child_of="1234" ]
status:works, tested with PHP 8.2 and WordPress 6.3

* Clean up code, remove debugs

---------

Co-authored-by: Michael Tran <[email protected]>

* Yoda string comparison

* Add description for 2309

---------

Co-authored-by: Michael <[email protected]>
  • Loading branch information
zedzedzed and flagsoft authored Sep 19, 2023
1 parent 5c111e0 commit c1aa6bc
Show file tree
Hide file tree
Showing 11 changed files with 503 additions and 106 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
.svn
.DS_Store
Thumbs.db
.nfs.*
.nfs.*
/vendor/
16 changes: 16 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "dublue/table-of-contents-plus",
"authors": [
{
"name": "Michael Tran"
}
],
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"require-dev": {
"wp-coding-standards/wpcs": "^3.0"
}
}
356 changes: 356 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c1aa6bc

Please sign in to comment.