Documentation

Markers

Table of Contents

src/admin/class-admin.php 5
src/admin/class-wysiwyg.php 5
src/admin/layout/class-engine.php 37
src/admin/layout/class-init.php 14
src/admin/layout/class-settings-page.php 18
src/footnotes.php 8
src/includes/class-activator.php 1
src/includes/class-config.php 6
src/includes/class-convert.php 25
src/includes/class-core.php 4
src/includes/class-deactivator.php 1
src/includes/class-i18n.php 2
src/includes/class-settings.php 8
src/includes/class-template.php 19
src/includes/settings/class-settings-group.php 1
src/includes/settings/general/class-amp-compat-settings-group.php 1
src/includes/settings/general/class-hard-links-settings-group.php 1
src/includes/settings/general/class-love-settings-group.php 8
src/includes/settings/general/class-numbering-settings-group.php 1
src/includes/settings/general/class-reference-container-settings-group.php 2
src/includes/settings/referrers-and-tooltips/class-referrers-in-labels-settings-group.php 2
src/includes/settings/referrers-and-tooltips/class-tooltip-text-settings-group.php 2
src/includes/settings/referrers-and-tooltips/class-tooltip-truncation-settings-group.php 1
src/includes/settings/scope-and-priority/class-wordpress-hooks-settings-group.php 8
src/public/class-general.php 6
src/public/class-parser.php 245
src/public/widget/class-base.php 7
src/public/widget/class-reference-container.php 8
src/uninstall.php 1

class-admin.php

Type Line Description
129 Append link to the WordPress Plugin page.
130 wordpress.org/support/plugin/footnotes" target="_blank">%s</a>', __( 'Support', 'footnotes' ) );
131 Append link to the settings page.
133 Append link to the PayPal donate function.
134 www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6Z6CZDW8PPBBJ" target="_blank">%s</a>', __( 'Donate', 'footnotes' ) );

class-wysiwyg.php

Type Line Description
51 phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped
53 phpcs:enable
77 Get start and end tag for the footnotes short code.
TODO 39 Should this be `static`?
TODO 65 Should this be `static`?

class-engine.php

Type Line Description
1 phpcs:disable WordPress.Security.ValidatedSanitizedInput.InputNotSanitized, WordPress.Security.EscapeOutput.OutputNotEscaped
111 Append tab to the tab-array.
120 $this->register_meta_boxes( $section['id'] );
123 phpcs:disable WordPress.Security.NonceVerification.Recommended, WordPress.Security.NonceVerification.Missing
131 check user capabilities
139 Store settings.
167 show error/update messages
173 output security fields for the registered setting "footnotes"
176 output setting sections and their fields
177 (sections are registered for "footnotes", each field is registered to a specific section)
180 do_meta_boxes( $active_section['id'], 'main', null );
182 Add submit button to active section if defined.
183 if ( $l_arr_active_section['submit'] ) {
185 }
191 phpcs:enable WordPress.Security.NonceVerification.Recommended, WordPress.Security.NonceVerification.Missing
199 Nothing yet.
323 Get current section.
368 softwareengineering.stackexchange.com/questions/234546/colons-in-internationalized-ui
469 Loop through all array keys.
474 Only check for equality, not identity, WRT backlink symbol arrows.
475 TODO convert to strict comparison
476 phpcs:disable WordPress.PHP.StrictComparisons.LooseComparison
478 phpcs:enable WordPress.PHP.StrictComparisons.LooseComparison
548 Iterate through each meta box.
575 phpcs:enable WordPress.Security.NonceVerification.Recommended, WordPress.Security.NonceVerification.Missing
577 phpcs:disable WordPress.Security.NonceVerification.Recommended, WordPress.Security.NonceVerification.Missing
598 Update settings.
TODO 130 Review nonce verification.
TODO 198 Required? Should be `abstract`?
TODO 266 Refactor sections into their own class?
TODO 296 Refactor meta boxes into their own class?
TODO 296 Pass actual functions rather than strings?
TODO 341 Refactor HTML generation.
TODO 355 Refactor HTML generation.
TODO 570 Move to {@see}.
TODO 589 Review nonce verification.
TODO 589 New settings require a page refresh to render correctly. Fix.

class-init.php

Type Line Description
1 phpcs:disable WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
77 Register hooks/actions.
86 Register AJAX callbacks for Plugin information.
116 codex.wordpress.org/Function_Reference/add_menu_page
129 phpcs:disable WordPress.Security.NonceVerification.Missing
137 TODO: add nonce verification?
139 Get plugin internal name from POST data.
148 api.wordpress.org/plugins/info/1.0/' . $plugin_name . '.json';
149 Call URL and collect data.
151 Check if response is valid.
160 Get the body of the response.
162 Get plugin object.
173 Return Plugin information as JSON encoded string.
221 phpcs:enable WordPress.Security.NonceVerification.Missing

class-settings-page.php

Type Line Description
1 phpcs:disable Squiz.Commenting.FileComment.Missing
148 Load footnotes starting and end tag.
153 Load user defined starting and end tag.
172 Load template file.
174 Replace all placeholders.
184 Translators: %1$s, %2$s: anchor element with hyperlink to the Support Forum.
185 wordpress.org/support/plugin/footnotes" target="_blank" class="footnote_plugin">', '</a>' ),
199 Display template with replaced placeholders.
200 phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped
202 phpcs:enable
211 Load template file.
213 Replace all placeholders.
219 Display template with replaced placeholders.
220 phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped
222 phpcs:enable
254 Sync tab name with mirror in task.php.
257 Sync tab name with mirror in public function custom_css_migration().
TODO 145 Review in light of admin/public split.

footnotes.php

Type Line Description
15 wordpress.org/plugins/footnotes/
21 cheret.org/footnotes
25 www.gnu.org/licenses/gpl-3.0.html
32 If this file is called directly, abort.
40 github.com/markcheret/footnotes/wiki/Versioning Versioning Guide
TODO 47 Draw from envfile rather than hard-coding.
TODO 61 Draw from envfile rather than hard-coding.
TODO 61 Replace with string for >2 environment options.

class-activator.php

Type Line Description
55 Nothing yet.

class-config.php

Type Line Description
TODO 51 Remove.
TODO 61 Remove.
TODO 78 Remove.
TODO 89 Remove.
TODO 100 Remove.
TODO 111 Remove.

class-convert.php

Type Line Description
61 Convert string to lower-case to make it easier.
63 Check if string seems to contain a "true" value.
72 Nothing found that says "true", so we return false.
87 Define all possible arrows.
90 Return the whole arrow array.
97 Return a single arrow.
101 phpcs:disable WordPress.PHP.DevelopmentFunctions.error_log_var_dump, WordPress.PHP.DevelopmentFunctions.error_log_print_r
149 Output string.
152 Check if the value is higher then 26 = Z.
154 Increase offset and reduce counter.
158 If offset set (more then Z), then add a new letter in front.
162 Add the origin letter.
164 Return the latin character representing the integer.
180 Add a leading 0 if number lower then 10.
195 Table containing all necessary roman letters.
211 Return value.
213 Iterate through integer value until it is reduced to 0.
223 Return roman letters as string.
229 phpcs:enable WordPress.PHP.DevelopmentFunctions.error_log_var_dump, WordPress.PHP.DevelopmentFunctions.error_log_print_r
TODO 58 Replace with built-in type casting.
TODO 86 Review.
TODO 86 Single return type.
TODO 111 Replace with proper logging/debug functions.
TODO 148 Replace with built-in char casting.
TODO 179 Replace with built-in string formatting.

class-core.php

Type Line Description
247 phpcs:disable
248 'footnotes_getTags' must match its instance in wysiwyg-editor.js.
249 'footnotes_getTags' must match its instance in editor-button.html.
252 phpcs:enable

class-deactivator.php

Type Line Description
33 Nothing yet.

class-i18n.php

Type Line Description
1 phpcs:disable PEAR.NamingConventions.ValidClassName.StartWithCapital
23 translate.wordpress.org/projects/wp-plugins/footnotes/ GlotPress listing

class-settings.php

Type Line Description
1 phpcs:disable Squiz.Commenting.FileComment.Missing
TODO 115 This is an _O(n)_ linear search. Explore more scaleable alternatives.
TODO 136 This is an _O(n)_ linear search. Explore more scaleable alternatives.
TODO 136 How to handle settings with a value of `null`?
TODO 157 This is an _O(n)_ linear search. Explore more scaleable alternatives.
TODO 157 How to handle settings with a default value of `null`?
TODO 179 This is an _O(n)_ linear search. Explore more scaleable alternatives.
TODO 179 How to handle settings with a value of `null`?

class-template.php

Type Line Description
82 No template file type and/or file name set.
110 No placeholders set.
114 Template content is empty.
118 Iterate through each placeholder and replace it with its value.
122 Success.
160 phpcs:disable WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents
162 phpcs:enable
199 Look in active theme.
203 Look in parent theme in case active is child.
207 Look in custom plugin directory.
211 Fall back to the templates shipped with the plugin.
TODO 30 Refactor templating.
TODO 81 Refactor templating.
TODO 109 Refactor templating.
TODO 134 Refactor templating.
TODO 146 Refactor templating.
TODO 159 Refactor templating.
TODO 184 Refactor templating.
TODO 184 Single return type.

class-settings-group.php

Type Line Description
TODO 159 Remove settings from options group when not found.

class-amp-compat-settings-group.php

Type Line Description
58 wordpress.org/plugins/amp/" target="_blank" style="font-style: normal;">AMP-WP</a> plugin is required when this option is enabled. This option enables hard links with configurable scroll offset in % viewport height.',

class-hard-links-settings-group.php

Type Line Description
124 wordpress.org/support/topic/making-it-amp-compatible/#post-13837359

class-love-settings-group.php

Type Line Description
77 Logo only.
79 Logo followed by heart symbol.
81 Logo preceded by heart symbol.
83 Translators: 2: heart symbol 1: footnotes logogram.
85 Translators: %s: Footnotes plugin logo.
87 Translators: %s: Footnotes plugin logo.
89 Translators: %s: Footnotes plugin logo.
92 Translators: 1: Plugin logo.2: heart symbol.

class-numbering-settings-group.php

Type Line Description
45 wordpress.org/support/topic/add-support-for-ibid-notation

class-reference-container-settings-group.php

Type Line Description
417 Unicode character names are conventionally uppercase.
488 Unicode 1.0 name of RIGHT PARENTHESIS (represented as a left parenthesis in right-to-left scripts).

class-referrers-in-labels-settings-group.php

Type Line Description
49 wordpress.org/support/topic/compatibility-issue-with-wpforms/#post-14212318
TODO 59 Review, remove?

class-tooltip-text-settings-group.php

Type Line Description
74 wordpress.org/support/topic/change-tooltip-text/#post-13935050
75 wordpress.org/support/topic/change-tooltip-text/#post-13935488

class-tooltip-truncation-settings-group.php

Type Line Description
TODO 55 The mouse-over content truncation should be enabled by default to raise awareness of the functionality, prevent the screen from being filled on mouse-over, and allow the use of ‘Continue Reading’ functionality.

class-wordpress-hooks-settings-group.php

Type Line Description
50 wordpress.org/support/topic/more-feature-ideas/ here} for more
66 developer.wordpress.org/reference/hooks/the_title/" target="_blank">https://developer.wordpress.org/reference/hooks/the_title/</a>',
105 developer.wordpress.org/reference/hooks/the_content/" target="_blank">https://developer.wordpress.org/reference/hooks/the_content/</a>',
123 wordpress.org/plugins/yet-another-related-posts-plugin/
161 developer.wordpress.org/reference/hooks/the_excerpt/" target="_blank">https://developer.wordpress.org/reference/hooks/the_excerpt/</a>',
200 codex.wordpress.org/Plugin_API/Filter_Reference/widget_title" target="_blank">https://codex.wordpress.org/Plugin_API/Filter_Reference/widget_title</a>',
244 codex.wordpress.org/Plugin_API/Filter_Reference/widget_text" target="_blank">https://codex.wordpress.org/Plugin_API/Filter_Reference/widget_text</a>. The <code>widget_text()</code> hook must be enabled either when footnotes are present in theme text widgets, or when Elementor accordions or toggles shall have a reference container per section. If they should not, this hook must be disabled.',
TODO 63 In titles, footnotes are still buggy, because WordPress uses the title string in menus and in the title element, but Footnotes doesn't delete footnotes in them.

class-general.php

Type Line Description
130 Set conditions re-used for stylesheet enqueuing and in class/task.php.
149 TODO: neaten up and document once placements and names are settled.
174 Set tooltip mode for use in stylesheet name.
195 Set basic responsive page layout mode for use in stylesheet name.
213 Enqueue the tailored united minified stylesheet.
TODO 51 Review null init.

class-parser.php

Type Line Description
1 phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped
288 TODO: Reorg dependencies.
294 TODO: Move to `General`.
308 Get values from settings.
315 PHP_INT_MAX can be set by -1.
322 Append custom css to the header.
329 Append the love and share me slug to the footer.
344 Configurable priority level for reference container relative positioning; default 98.
360 docs.woocommerce.com/document/allow-html-in-term-category-tag-descriptions/
376 wordpress.org/support/topic/footnotes-use-in-popup-maker/
425 Reset stored footnotes when displaying the header.
438 Insert start tag without switching out of PHP.
466 Reference container display on home page.
472 Reference container top and bottom margins.
481 Reference container label bottom border.
501 Adapt left padding to the presence of a border.
506 Ref container first column width and max-width.
547 Hard links scroll offset.
548 TODO: remove cast
551 Correct hard links enabled status depending on AMP-compatible or alternative reference container enabled status.
563 Tooltips.
567 Tooltip appearance: Tooltip font size.
577 Tooltip Text color.
583 Tooltip Background color.
589 Tooltip Border width.
595 Tooltip Border color.
601 Tooltip Corner radius.
607 Tooltip Shadow color.
615 Tooltip position, dimensions and timing.
629 AMP-compatible and alternative tooltips.
632 Dimensions.
637 Set also as max-width wrt short tooltip shrinking.
640 Position.
659 Timing.
714 Insert end tag without switching out of PHP.
748 Get setting for love and share this plugin.
750 Check if the admin allows to add a link to the footer.
754 Set a hyperlink to the word "footnotes" in the Love slug.
755 wordpress.org/plugins/footnotes/" target="_blank" style="text-decoration:none;">%s</a>', Config::PLUGIN_PUBLIC_NAME );
756 Get random love me text.
761 Options named wrt backcompat, simplest is default.
804 Appends the reference container if set to "post_end".
822 TODO: Replace with `str_contains()`, but currently breaks Rector downgrade.
823 https://github.com/rectorphp/rector/issues/6315
826 phpcs:disable WordPress.PHP.YodaConditions.NotYoda
827 Appends the reference container if set to "post_end".
829 phpcs:enable WordPress.PHP.YodaConditions.NotYoda
841 TODO: Replace with `str_contains()`, but currently breaks Rector downgrade.
842 https://github.com/rectorphp/rector/issues/6315
885 developer.wordpress.org/reference/functions/wp_trim_excerpt/
886 developer.wordpress.org/reference/functions/wp_trim_words/
895 Discard existing excerpt and start on the basis of the post.
898 Get footnote delimiter shortcodes and unify them.
901 Remove footnotes.
904 Apply WordPress excerpt processing.
908 Here the footnotes would be processed as part of WordPress content processing.
911 According to Advanced Excerpt, this is some kind of precaution against malformed CDATA in RSS feeds.
918 Function wp_trim_words() calls wp_strip_all_tags() that wrecks the footnotes.
931 wordpress.org/plugins/advanced-excerpt/
940 Discard existing excerpt and start on the basis of the post.
943 Get footnote delimiter shortcodes and unify them.
946 Apply WordPress excerpt processing.
950 But do not process footnotes at this point; do only this.
953 Prepare the excerpt length argument.
957 Prepare the Read-on string.
960 Safeguard the footnotes.
967 Prevent the footnotes from altering the excerpt: previously hard-coded '5ED84D6'.
975 Replace line breaking markup with a separator.
984 To count words like Advanced Excerpt does it.
989 Tokenize into tags and words as in Advanced Excerpt.
992 Count words following one option of Advanced Excerpt.
998 If token is not a tag, increment word count.
1002 Append the token to the output.
1006 Complete unbalanced markup, used by Advanced Excerpt.
1009 Readd footnotes in excerpt.
1021 Append the Read-on string as in wp_trim_words().
1024 Process readded footnotes without appending the reference container.
1040 Appends the reference container if set to "post_end".
1053 phpcs:disable WordPress.PHP.YodaConditions.NotYoda
1054 Appends the reference container if set to "post_end".
1056 phpcs:enable WordPress.PHP.YodaConditions.NotYoda
1069 Process content.
1076 Append the reference container or insert at shortcode.
1094 Increment the container ID.
1098 Delete position shortcode should any remain.
1101 Take a look if the LOVE ME slug should NOT be displayed on this page/post, remove the short code if found.
1106 Return the content with replaced footnotes and optional reference container appended.
1124 Get footnotes start and end tag short codes.
1132 If any footnotes short code is empty, return the content without changes.
1142 Harmonize footnotes without escaping any HTML special characters in delimiter shortcodes.
1143 The footnote has been added in the Block Editor code editor (doesn’t work in Classic Editor text mode).
1147 Harmonize footnotes while escaping HTML special characters in delimiter shortcodes.
1148 The footnote has been added in the Classic Editor visual mode.
1152 Harmonize footnotes while escaping HTML special characters except greater-than sign in delimiter shortcodes.
1153 The footnote has been added in the Block Editor visual mode.
1157 Assign the delimiter shortcodes.
1161 Assign the regex-conformant shortcodes.
1167 Assign the delimiter shortcodes.
1171 Make shortcodes conform to regex syntax.
1191 Get footnote delimiter shortcodes and unify them.
1201 If enabled.
1204 Apply different regex depending on whether start shortcode is double/triple opening parenthesis.
1207 This prevents from catching a script containing e.g. a double opening parenthesis.
1212 Catch all only if the start shortcode is not double/triple opening parenthesis, i.e. is unlikely to occur in scripts.
1216 Check syntax and get error locations.
1222 Prevent generating and inserting the warning multiple times.
1225 Get plain text string for error location.
1228 Limit string length to 300 characters.
1233 Compose warning box.
1238 Syntax validation setting in the dashboard under the General settings tab.
1248 Prepend the warning box to the content.
1251 Checked, set flag to false to prevent duplicate warning.
1270 Optionally moves footnotes outside at the end of the label element.
1288 wordpress.org/support/topic/compatibility-issue-with-wpforms/#post-14212318
1301 Post ID to make everything unique wrt infinite scroll and archive view.
1321 Resets the footnote number.
1324 Contains the starting position for the lookup of a footnote.
1331 Set to null in case all templates are unnecessary.
1335 On the condition that the footnote text is not hidden.
1338 Whether AMP compatibility mode is enabled.
1341 Whether first clicking a referrer needs to expand the reference container.
1344 Load 'public/partials/amp-footnote-expand.html'.
1349 Load 'public/partials/amp-footnote.html'.
1354 Load 'public/partials/footnote-alternative.html'.
1357 Else jQuery tooltips are enabled.
1360 Load 'public/partials/footnote.html'.
1363 Load tooltip inline script.
1368 Search footnotes short codes in the content.
1370 Get first occurrence of the footnote start tag short code.
1376 No short code found, stop here.
1380 Get first occurrence of the footnote end tag short code.
1382 No short code found, stop here.
1386 Calculate the length of the footnote.
1389 Get footnote text.
1392 Get tooltip text if present.
1411 webmasters.stackexchange.com/questions/93540/are-spaces-in-href-valid
1420 [^\\s<]+)#',
1426 Text to be displayed instead of the footnote.
1429 Whether hard links are enabled.
1432 Get the configurable parts.
1437 Streamline ID concatenation.
1446 Display the footnote referrers and the tooltips.
1450 Display only a truncated footnote text if option enabled.
1454 Define excerpt text as footnote text by default.
1474 If AMP compatibility mode is enabled.
1477 If the reference container is also collapsed by default.
1490 Don’t add onclick event in AMP compatibility mode.
1491 Reverted wrong linting.
1499 If enabled, add the hard link fragment ID.
1511 Configurable read-on button label.
1532 Whether hard links are enabled.
1537 Self::$link_open_tag will be defined as needed.
1539 Compose hyperlink address (leading space is in template).
1565 The link element is set independently as it may be needed for styling.
1575 Determine tooltip content.
1590 Determine shrink width if alternative tooltips are enabled.
1601 Fill in 'public/partials/footnote.html'.
1620 Reset the template.
1623 If tooltips are enabled but neither AMP nor alternative are.
1633 Fill in 'public/partials/tooltip.html'.
1652 Replace the footnote with the template.
1655 Add footnote only if not empty.
1657 Set footnote to the output box at the end.
1659 Increase footnote index.
1685 Add offset to the new starting position.
1690 Return content.
1702 No footnotes have been replaced on this page.
1711 If the backlink symbol is enabled.
1715 Get html arrow.
1718 Get user defined arrow.
1724 Wrap the arrow in a @media print { display:hidden } span.
1730 If the backlink symbol isn’t enabled, set it to empty.
1746 If it is not, check which option is on.
1748 TODO: replace with `match` (but currently it breaks the Rector
1749 downgrade to PHP 7.4.
1750 https://github.com/rectorphp/rector/issues/6315
1780 If it is not, check which option is on.
1782 TODO: replace with `match` (but currently it breaks the Rector
1783 downgrade to PHP 7.4.
1784 https://github.com/rectorphp/rector/issues/6315
1829 AMP compatibility requires a full set of AMP compatible table row templates.
1831 When combining identical footnotes is turned on, another template is needed.
1833 The combining template allows for backlink clusters and supports cell clicking for single notes.
1841 Default is the standard template.
1846 The combining template allows for backlink clusters and supports cell clicking for single notes.
1854 Default is the standard template.
1864 Loop through all footnotes found in the page.
1868 Get footnote text.
1871 If footnote is empty, go to the next one;.
1872 With combine identicals turned on, identicals will be deleted and are skipped.
1877 Generate content of footnote index cell.
1880 Get the footnote index string and.
1881 Keep supporting legacy index placeholder.
1889 Define anyway.
1898 wordpress.org/support/topic/making-it-amp-compatible/#post-13837359
1920 Compose optional hard link address.
1929 Define as empty, too.
1943 Set a flag to check for the combined status of a footnote item.
1946 Set otherwise unused variables as empty to avoid screwing up the placeholder array.
1953 ID, optional hard link address, and class.
1981 The dedicated template enumerating backlinks uses another variable.
1984 Append the click event right to the backlink item for enumerations;.
1985 Else it goes in the table cell.
1989 Append the optional offset anchor for hard links.
1995 Continue both single note and notes cluster, depending on switch option status.
2008 If that is the only footnote with this text, we’re almost done..
2010 Check if it isn't the last footnote in the array.
2013 Get all footnotes that haven't passed yet.
2017 Check if a further footnote is the same as the actual one.
2020 If so, set the further footnote as empty so it won't be displayed later.
2023 Set the flag to true for the combined status.
2026 Update the footnote ID.
2029 Resume composing the backlinks enumeration.
2039 Insert the optional hard link address.
2050 Reverted wrong linting.
2060 Append the offset anchor for optional hard links.
2077 Append terminator and end tag.
2083 Line wrapping of URLs already fixed, see above.
2085 Get reference container item text if tooltip text goes separate.
2102 Replace all placeholders in table row template.
2106 Placeholder used in all templates.
2109 Used in standard layout W/O COMBINED FOOTNOTES.
2120 Used in standard layout WITH COMBINED IDENTICALS TURNED ON.
2125 Legacy placeholders for use in legacy layout templates.
2133 Extra line breaks for page source readability.
2140 Call again for robustness when priority levels don't match any longer.
2141 TODO: remove cast
2144 Streamline.
2156 Select the reference container template.
2157 Whether AMP compatibility mode is enabled.
2160 Whether the reference container is collapsed by default.
2163 Load 'public/partials/amp-reference-container-collapsed.html'.
2168 Load 'public/partials/amp-reference-container.html'.
2173 Load 'public/partials/js-reference-container.html'.
2178 Load 'public/partials/reference-container.html'.
2226 Free all found footnotes if reference container will be displayed.
TODO 279 Reorganise dependencies.
TODO 279 Move call to `register_hooks()` to {@see}.
TODO 307 Move to {@see}.
TODO 436 Refactor to enqueue stylesheets properly in {@see}.
TODO 1189 Refactor to parse DOM rather than using RegEx.
TODO 1189 Decompose.
TODO 176 Remove.
TODO 184 Remove.
TODO 192 Remove.

class-base.php

Type Line Description
23 developer.wordpress.org/reference/classes/wp_widget/#description `WP_Widget`}.
88 Registers the Widget.
90 Unique ID for the widget, has to be lowercase.
91 Plugin name to be displayed.
92 Optional Widget Options.
93 Optional Widget Control Options.
TODO 31 Review implemenation of Widgets API.

class-reference-container.php

Type Line Description
1 phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped
13 TODO: Disabled pending WPWidget AP review.
94 developer.wordpress.org/reference/classes/wp_widget/form/ `WP_Widget::form()`
106 developer.wordpress.org/reference/classes/wp_widget/widget/ `WP_Widget::widget()`
114 Reference container positioning is set to "widget area".
116 phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped
118 phpcs:enable
TODO 31 Review implemenation of Widgets API.

uninstall.php

Type Line Description
21 If uninstall not called from WordPress, then exit.

Search results